So I’ve been working on a video hosting project for most of the year and ran into issues while trying to push all storage files thru a PHP script. For proper tracking of embedded videos this was/is a must. If you’re having this problem and can’t find a solution, maybe this will help…
The below code will pseudo stream any MP4 file on any browser (including iPads/tablets) with all functionality working properly (seek forward, seek backwards and displays correct time). This code has also been tested with Longtail JWPlayer 6 and HTML5 players.
If you’re interested in an advanced version of this script, I currently have an unreleased version which includes automatic rate limiting (buffer rate). I’m also playing with other ideas to further enhance it. If you have any suggestions or questions either contact us or leave a comment at the bottom.
I have added the script to GITHub so everyone can contribute to ehance this code. Please feel free to contact me if you have any questions. https://github.com/tuxxin/MP4Streaming
Genius! Really great.
Why did you comment out "Accept-Ranges" ?