SwiftAudio icon indicating copy to clipboard operation
SwiftAudio copied to clipboard

The currentTime still counting after the audio reaches to end

Open mahmoudOmara opened this issue 4 years ago • 1 comments

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

  1. configure the player ass follow:- -player.automaticallyWaitsToMinimizeStalling = false -player.automaticallyPlayNextSong = false

  2. add four audio to the player "SourceType = stream"

  3. jump to item at any index, 1 for example.

  4. 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

mahmoudOmara avatar Apr 27 '20 02:04 mahmoudOmara

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

cendolinside123 avatar Apr 28 '20 08:04 cendolinside123