mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 14:20:30 +05:30
Merge pull request #2720 from Bnyro/master
Fix unexpected audio queue behavior
This commit is contained in:
commit
0455db5768
@ -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…
Reference in New Issue
Block a user