views:

304

answers:

2

Hi!

Im trying to implement a progressive download audio player for the iphone, ie using http and fixed size mp3-files.

I found the AudioStreamer project but it seems very complicated and works best with endless streams.

I need to be able to find out the total length of audiofiles and I also need to be able to seek in the files. I found a hacked deviation from AudioStreamer but it doesnt seem to work very well for me. http://www.saygoodnight.com/?p=14

Im wondering if there is a more simple way to achieve my goals or if there are some better working samples out there? I found the bass library but not much documentation about it.

/Br Johannes

A: 

There's unfortunately nothing simple about playing audio streams on the iPhone. Here's the article that got me started: Streaming and playing an MP3 stream

It's an OSX project, but most of it will work with the iPhone too. As for getting the full play time of it, you'd probably have to figure that out based on the content-length property of http header, provided it's a CBR file. Otherwise, I imagine you'd have to download the entire file before determining that.

pzearfoss
A: 

I'm dealing with this issue too. I'd like to progressively download HE-AAC files and play them while they are downloading.

Richard Caetano