capacitor-plugin-playlist
capacitor-plugin-playlist copied to clipboard
Bug in IOS playing last song
If you create a playlists and try play the last track, either via ID or index, the first track plays. Problem code is in the AVBidirectionalQueuePlayer.swift file, line 187, just comment it out.
// OVERRIDDEN AVQUEUEPLAYER METHODS
override func play() {
if isAtEnd {
// we could add a flag here to indicate looping
setCurrentIndex(0)
}
super.play()
}