SwiftAudio
SwiftAudio copied to clipboard
The currentTime still counting after the audio reaches to end
Describe the bug after the current audio reach to end and ask the player to play next audio as I choose to not play automatically the current time continues counting
To Reproduce
-
configure the player ass follow:- -player.automaticallyWaitsToMinimizeStalling = false -player.automaticallyPlayNextSong = false
-
add four audio to the player "SourceType = stream"
-
jump to item at any index, 1 for example.
-
seek to near end and monitor the current time value
Expected behavior the current time reset to zero and wait to the next audio to load
Note I think the problem is that the player is loading the next audio and problem comes from this point
it's happend to me, for some case I set automaticallyWaitsToMinimizeStalling = false
The currentTime won't counting to the end of song. But it's still happend when I play song with audio format is flac after I seek a song. I already try adding AVURLAssetPreferPreciseDurationAndTimingKey : true
but it's cause error on flac format #110