Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you do true streaming with the video tag (i.e. not progressive download)? (html5)

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?

like image 470
Rella Avatar asked Jan 31 '10 10:01

Rella


People also ask

How does HTML5 video streaming work?

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.

How do I watch HTML5 video?

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.

What's the difference between a progressive download and streaming?

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).

What is HTML5 video tag?

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.


1 Answers

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.

like image 171
thor Avatar answered Oct 02 '22 20:10

thor