Always call prepare before starting playback,
otherwise resuming playback is difficult when the session was dismissed...
This commit is contained in:
parent
669b51c0d2
commit
608f86ac5f
|
@ -283,6 +283,7 @@ class MediaPlayerController(
|
||||||
if (jukeboxMediaPlayer.isEnabled) {
|
if (jukeboxMediaPlayer.isEnabled) {
|
||||||
jukeboxMediaPlayer.start()
|
jukeboxMediaPlayer.start()
|
||||||
} else {
|
} else {
|
||||||
|
controller?.prepare()
|
||||||
controller?.play()
|
controller?.play()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue