mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-29 00:10:32 +05:30
fix: starting video from queue when autoplay countdown enabled
This commit is contained in:
parent
3262eb8365
commit
78df8cd178
@ -182,15 +182,17 @@ open class OnlinePlayerService : AbstractPlayerService() {
|
||||
* Plays the next video from the queue
|
||||
*/
|
||||
private fun playNextVideo(nextId: String? = null) {
|
||||
if (nextId == null && PlayingQueue.repeatMode == Player.REPEAT_MODE_ONE) {
|
||||
exoPlayer?.seekTo(0)
|
||||
return
|
||||
}
|
||||
|
||||
saveWatchPosition()
|
||||
|
||||
if (!PlayerHelper.isAutoPlayEnabled(playlistId != null) && nextId == null) return
|
||||
if (!isAudioOnlyPlayer && PlayerHelper.autoPlayCountdown) return
|
||||
if (nextId == null) {
|
||||
if (PlayingQueue.repeatMode == Player.REPEAT_MODE_ONE) {
|
||||
exoPlayer?.seekTo(0)
|
||||
return
|
||||
}
|
||||
|
||||
if (!PlayerHelper.isAutoPlayEnabled(playlistId != null)) return
|
||||
if (!isAudioOnlyPlayer && PlayerHelper.autoPlayCountdown) return
|
||||
}
|
||||
|
||||
val nextVideo = nextId ?: PlayingQueue.getNext() ?: return
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user