I have cheap Apache PHP hosting. I have a mp4 and or Ogg video file. I want to dynamically stream this video to users. And let those users see it through HTML 5 video player.
How do you do true streaming (being able to scroll to any part of the video without previous download of full video) with the video tag (i.e. not progressive download) and Apache PHP?
HTML5 video is when you put a <video> tag in your web page and set a certain src for it. HTML5 streaming is the same thing but when src points not to a complete video file but rather to an ever-updating video stream. YouTube does HTML video, Twitch does HTML5 streaming.
The HTML5 video will be viewable in all modern day browsers, such as Internet Explorer, Google Chrome, Safari and Firefox. If you are downloading these browsers for the first time then just make sure you have all the latest updates downloaded for them as well. They usually prompt you automatically about the updates.
Technically, both streaming and progressive downloading are methods to deliver online video. Streaming is the delivery of video by means of a dedicated video streaming server to a client video channel. Progressive download is simply the delivery of video files over standard web servers (HTTP).
The HTML5 “video” element specifies a standard way to embed a video on a web page. There are three different formats that are commonly supported by web browsers – mp4, Ogg, and WebM.
There appears to be a slight mix-up between "true" streaming and "pseudo" streaming here. I believe true streaming is when video is streamed from a specialist media server over a streaming protocol such as rtsp, rtmp or mms whereby the media is not first downloaded before being available for viewing. I don't think any browser supports this with HTML5 - at least I've yet to see any support for it.
Pseudo streaming appears to be the one that you want, but it is still basically progressive streaming the only difference being is you tell the server at what position or time in the file you want to start streaming from.
Here is an example of HTML5 video using time offsets to move to any part of the video. It should give you all the information you need to try it out for yourself.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With