jorgenhenrichsen / SwiftAudio

Audio player for iOS
MIT License
226 stars 86 forks source link

progress bar on MPRemoteCommandCenter (sometime on AudioPlayer.currentTime) still update when player on .loading or .buffering state #102

Open cendolinside123 opened 4 years ago

cendolinside123 commented 4 years ago

Describe the bug I set my network link conditioner on 3g, when I play a song at music player at the middle of song music player state change to .loading or .buffering and progress bar on music player interface didn't update/moving but progress bar on MPRemoteCommandCenter still updateing the value

update:

it's happend on AudioPlayer.currentTime too, sometime when player still buffer AudioPlayer.currentTime keep updating the value too. For this condition I reproduce it by turn on network link conditioner to very bad network at the first time song is loaded

To Reproduce set network link conditioner to 3G edit: try to play network link conditioner from turn off to very bad network when song is playing and buffer position still updating like the example of this video

http://www.mediafire.com/file/hsrcb07siyypbhp/VID20200310132441.mp4/file

IMG20200310135558

in this video I use streaming song from https://www.eclassical.com/custom/eclassical/files/BIS1447-002-flac_24.flac because the duration of sample song that available on the SwiftAudio example is to short

make sure change network link conditioner to very bad network when song is playing but bufferedPosition still updating their value

Expected behavior not updating progress bar until player state change to .playing like progress bar on music player

Smartphone (please complete the following information):

cendolinside123 commented 4 years ago

after all it's look like I can create a handle for some error.

cendolinside123 commented 3 years ago

@jorgenhenrichsen