Merge pull request #2720 from Bnyro/master

Fix unexpected audio queue behavior
This commit is contained in:
Bnyro 2023-01-16 18:33:29 +01:00 committed by GitHub
commit 0455db5768
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
}
/**