mattgallagher / AudioStreamer

A streaming audio player class (AudioStreamer) for Mac OS X and iPhone.
http://cocoawithlove.com
1.93k stars 553 forks source link

Play duration (for playing remote files rather than streams) #14

Open jonnyijapan opened 14 years ago

jonnyijapan commented 14 years ago

Maybe I should just be suggesting more support for us wishing to play remote files, instead of streams :-)

Anyway, the play duration is of more importance when you play a remote file - and the current implementation doesn't show accurate time. It's quite accurate as long as you play CBR I assume, but the VBR naturally go up down (at least, I guess the duration is calculated using bits/second and file size...). Anyway to fix this in a simple way? Right now I serve files off the server (using PHP) and append the song duration in the HTTP header - fair enough so far, I could probably find a mp3 library server side later.