fix: Replay video from notification player

This commit is contained in:
Manish Kumar Verma 2024-01-24 00:47:58 +05:30
parent 12b5bfeab1
commit 9b7dcfacf3

View File

@ -302,7 +302,9 @@ class NowPlayingNotification(
PLAY_PAUSE -> {
if (player.playerError != null) player.prepare()
if (player.isPlaying) player.pause() else player.play()
if (player.isPlaying) player.pause()
else if (player.playbackState == Player.STATE_ENDED) player.seekTo(0)
else player.play()
}
STOP -> {