We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 997d4d7 commit 328943eCopy full SHA for 328943e
android/src/main/java/com/doublesymmetry/kotlinaudio/players/QueuedAudioPlayer.kt
@@ -91,8 +91,7 @@ class QueuedAudioPlayer(
91
if (queue.isEmpty()) {
92
add(item)
93
} else {
94
- exoPlayer.addMediaItem(currentIndex + 1, item.toMediaItem())
95
- exoPlayer.removeMediaItem(currentIndex)
+ replaceItem(currentIndex, item)
96
exoPlayer.seekTo(currentIndex, C.TIME_UNSET)
97
exoPlayer.prepare()
98
}
0 commit comments