alexcrichton / AudioStreamer

A streaming audio player class (AudioStreamer) for Mac OS X and iPhone.
69 stars 22 forks source link

Can't Seek #3

Closed johnrogers closed 12 years ago

johnrogers commented 12 years ago

Hi there!

Great job on the fork, however I'm unable to seek on most of the audio streams I'm trying to play.

Take for example this: http://feedproxy.google.com/~r/TheTerriblePodcast/~5/r_4Zhd_qFSM/terrible-podcast-2012-may-18-episode-175.mp3

It's safe - just an NFL stream. Anyways, notice how you can seek to the middle (or end, or wherever you like) in the browser.

When trying it in my app (or in fact the demo supplied with your files), when ever you try to seek to the middle or end, or wherever, it just starts the stream again.

Do you have any idea what may cause this, or any idea how to fix it? I first assumed it was something to do with the response header not sending the content length, until I discovered that it worked in the browser.

Look forward to hearing your response.

Cheers, John

alexcrichton commented 12 years ago

I just pushed an update so that mac app is actually working, are you able to seek with it now?

If not, one thing you might be running into is that seekToTime can return NO which means you'll have to try again later once calculatedBitRate returns YES .

alexcrichton commented 12 years ago

Whoops, forgot to actually push the commit... The updated files should be there now.

alexcrichton commented 12 years ago

Any update on whether this worked or not?

alexcrichton commented 12 years ago

The internals have changed slightly and now there's a notification for when you can seek. Closing this for now, feel free to reopen if this doesn't fix anything.