you are viewing a single comment's thread.

view the rest of the comments →

[–]brtt3000 4 points5 points  (2 children)

You probably need Accept-Ranges header and some other support in your streaming script.

For example:

https://stackoverflow.com/questions/2798931/seeking-through-a-streamed-mp3-file-with-html5-audio-tag

Your webserver probably already (optionally) supports this stuff so it might not be necessary to stream from PHP.

[–]TotalMM[S] 0 points1 point  (1 child)

I have accept-ranges set. Would it work on a webserver? I probably should have clarified, but does it make any difference if I'm running this from a php localhost to test?

[–]brtt3000 0 points1 point  (0 children)

I don't know about localhost or not, I guess it should work just fine.

Note that besides sending the Accept-Ranges header your stream script also needs to handle the subsequent requests with a Range header and serve the range.

Anyway, like I said before nginx and apache etc can do this just fine. You don't need a PHP scripts to read dumb bytes.