I dont know how I missed it but myPlaylist.next(); makes it jump to the next song :-) , but it doesnt work on the last song in the playlist?
And I still have to make the progressbar based on 30 seconds, any input about this, really appreciated, thanks!
User-Agent: AppleCoreMedia/1.0.0.9B176 (iPhone; U; CPU OS 5_1 like Mac OS X; en_us)
Accept: */* Range: bytes=0-1
The response to this request should look like this:
Expires: -1
Cache-Control: public, must-revalidate, max-age=0
Pragma: public
Accept-Ranges: bytes <----important
Content-Range: bytes 0-1/16534377 <----important
Content-Disposition: inline; filename=01.mp3
Content-Length: 1 <----important
Connection: close
Content-Transfer-Encoding: binary
User-Agent: AppleCoreMedia/1.0.0.9B176 (iPhone; U; CPU OS 5_1 like Mac OS X; en_us)
Accept: */* Range: bytes=0-16534377
Response headers should be......
Expires: -1
Cache-Control: public, must-revalidate, max-age=0
Pragma: public
Accept-Ranges: bytes <----important
Content-Range: bytes 0-16534376/16534377 <----important format should be bytes begin-(end-1)/end
Content-Disposition: inline; filename=01.mp3
Content-Length: 16534376 <----important
Connection: close
Content-Transfer-Encoding: binary
Like I had said, it may or may not make more range requests like Accept: */* Range: bytes= 6569866-16534376 and you will have to supply the correct content length and content range headers for the duration and all that to work on an iphone/ipad/iwhatever.
check the group for smartreadfile function for php. if you give the function a file location it will read the file size and create the correct headers to send back. I've also got a modified version that is a little different and has some extra steps to make sure it works in every browser since they all have their own set of rules with response headers on my mp3 files. I'd be happy to share it with the group, it has been working for me pretty well so far cross browser/platform www.audiobooksnow.com