dimitris-c / AudioStreaming

An AudioPlayer/Streaming library for iOS written in Swift using AVAudioEngine.
MIT License
266 stars 56 forks source link

seek a podcast mp3 then lost duration #5

Closed newbdez33 closed 3 years ago

newbdez33 commented 3 years ago

This podcast:

https://pdst.fm/e/chtbl.com/track/95538/traffic.megaphone.fm/ADL7076246752.mp3

Playing it is fine, but when you do "seek", the player lost duration(duration == 0). And it can not perform seek anymore( will cause crash ).

There are also other podcast have same issue. I'm looking into the issue, but unless you've already addressed it :)

dimitris-c commented 3 years ago

Hey

Since I can't reproduce this could you please let me know more of the environment. I'll need to setup an issue template to have more context of the issues raised.

newbdez33 commented 3 years ago

I'm using Xcode 12.2, iOS 14.2

With latest master branch of project Example. It's not all podcast can reproduce this. please try this mp3:

https://pdst.fm/e/chtbl.com/track/95538/traffic.megaphone.fm/ADL7076246752.mp3

To reproduce, Just drag progress slider once. then the play mode become to Liveboardcast (which means duration is missing)

dimitris-c commented 3 years ago

I reproduced this issue, nice catch 👍 This seems to be with the header fields of the response and I'm handling it, I didn't take into account the case insensitive that sometimes servers send back.

This is fixed by #7