muhku / FreeStreamer

A low-memory footprint streaming audio player for iOS and OS X
http://muhku.github.io/FreeStreamer/
Other
2.11k stars 434 forks source link

Streaming a file from an offset not working. #402

Open humayunharoon opened 6 years ago

humayunharoon commented 6 years ago

In my app i stream mp4's from a server, and i was trying to get the "resume audio after a phone call" feature to work and the code is already inside the Library. But the issue i am facing is, the audio stops just fine, but doesn't resume.

I investigated the issue and i get the following error 2018-03-07 17:56:45.780219+0500 xxxxxx[2032:842547] FSAudioStream: Error parsing the stream: Audio file stream parse bytes error: error code 'typ?' [FreeStreamer 3.8.2] URL: http://streaming.patari.pk/video/a0c72b14-cd71-4ed6-a7b3-9bf2a4049546.mp4

I then also tried and started a file normally with an offset, and it would still throw the same error. I also used https://github.com/danielgtaylor/qtfaststart to check if the file is correctly optimized for streaming by having the moov atom in the beginning and it indeed is. So i'm kinda bummed as to why i'm getting the typ? error. Any clues?