Bug Play m4a File auto pause not play
tolgatasci opened this issue · 3 comments
tolgatasci commented
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 commented
I think problem audiofocus
audioManager.requestAudioFocus(onAudioFocusListener, STREAM_MUSIC, AUDIOFOCUS_GAIN) == AUDIOFOCUS_REQUEST_GRANTED
test device false
EspoirX commented
Let me try the audio for you,Give me the address of your audio file
tolgatasci commented
if you downloaded. can you told to me for delete file