Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug Play m4a File auto pause not play #201

Open
tolgatasci opened this issue Dec 7, 2021 · 3 comments
Open

Bug Play m4a File auto pause not play #201

tolgatasci opened this issue Dec 7, 2021 · 3 comments

Comments

@tolgatasci
Copy link

LOG

2021-12-07 23:17:35.373 12950-12950/ I/StarrySky: title = xx
音频是否有改变 = false
是否立即播放 = true
url = /storage/emulated/0/Music/test.m4a
2021-12-07 23:17:35.374 12950-12950/ I/StarrySky: isPlayWhenReady = true
2021-12-07 23:17:35.374 12950-12950/ I/StarrySky: ---------------------------------------
Tested Device emulator 25 Google Api

    val info = SongInfo()
    info.songName = "xx"
    info.songId = "5"
    info.songUrl = "/storage/emulated/0/Music/test.m4a"
   //StarrySky.newPlayer(0)?.play(info, true) // Working
   //StarrySky.with().playMusicByInfo(info) // not work

My Application

        StarrySky.init(this)
        .setNotificationSwitch(true)

        .setNotificationType(INotification.SYSTEM_NOTIFICATION)
        .setNotificationConfig(notificationConfig)
        .apply()
@tolgatasci
Copy link
Author

I think problem audiofocus
audioManager.requestAudioFocus(onAudioFocusListener, STREAM_MUSIC, AUDIOFOCUS_GAIN) == AUDIOFOCUS_REQUEST_GRANTED
test device false

@EspoirX
Copy link
Owner

EspoirX commented Dec 10, 2021

Let me try the audio for you,Give me the address of your audio file

@tolgatasci
Copy link
Author

https://ufile.io/6cvghtek

if you downloaded. can you told to me for delete file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants