capacitor-plugin-playlist icon indicating copy to clipboard operation
capacitor-plugin-playlist copied to clipboard

Bug in IOS playing last song

Open ShaunBrassell opened this issue 3 years ago • 0 comments

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()
}

ShaunBrassell avatar Nov 25 '21 13:11 ShaunBrassell