mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-13 13:50:30 +05:30
fix: Replay video from notification player
This commit is contained in:
parent
12b5bfeab1
commit
9b7dcfacf3
@ -302,7 +302,9 @@ class NowPlayingNotification(
|
|||||||
|
|
||||||
PLAY_PAUSE -> {
|
PLAY_PAUSE -> {
|
||||||
if (player.playerError != null) player.prepare()
|
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 -> {
|
STOP -> {
|
||||||
|
Loading…
Reference in New Issue
Block a user