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

谁说胖子不能爱 提交于 2019-12-09 16:39:16

问题


I have I have cheap Apache PHP hosting. I have mp4 and or Ogg video file. I want to dynamically stream this video to users. And let that users see it through html 5 video player.

How do you do true streaming (beeng able to scroll to any part of wideo with out previous download of full video) with the video tag (i.e. not progressive download) and Apache PHP?


回答1:


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.



来源:https://stackoverflow.com/questions/2171322/how-do-you-do-true-streaming-with-the-video-tag-i-e-not-progressive-download

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!