mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-28 07:50:31 +05:30
Fix unexpected audio queue behavior
This commit is contained in:
parent
2f10b7ba23
commit
4e978faea3
@ -169,6 +169,9 @@ class BackgroundMode : Service() {
|
||||
|
||||
/**
|
||||
* Gets the video data and prepares the [player].
|
||||
* @param videoId The id of the video to play
|
||||
* @param seekToPosition The position of the video to seek to
|
||||
* @param keepQueue Whether to keep the queue or clear it instead
|
||||
*/
|
||||
private fun loadAudio(
|
||||
videoId: String,
|
||||
@ -298,7 +301,7 @@ class BackgroundMode : Service() {
|
||||
this.videoId = nextVideo
|
||||
this.streams = null
|
||||
this.segmentData = null
|
||||
loadAudio(videoId)
|
||||
loadAudio(videoId, keepQueue = true)
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user