你如何使用视频标签进行真正的流式传输(即不是渐进式下载)? (HTML5) [英] How do you do true streaming with the video tag (i.e. not progressive download)? (html5)

查看:369
本文介绍了你如何使用视频标签进行真正的流式传输(即不是渐进式下载)? (HTML5)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有便宜的Apache PHP托管。我有mp4和/或Ogg视频文件。我想动态地将此视频流式传输给用户。让那些用户通过html 5视频播放器看到它。

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.

你如何做真正的流媒体(已经可以滚动到wideo的任何部分,而无需先前下载完整视频)与视频标签(即不是渐进式下载)和Apache PHP?

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?

推荐答案

似乎有轻微的混淆这里有真正的流媒体和伪流媒体。我相信真正的流式传输是指通过流媒体协议(如rtsp,rtmp或mms)从专业媒体服务器流式传输视频,从而在可供查看之前不首先下载媒体。我不认为任何浏览器都支持HTML5 - 至少我还没有看到它的任何支持。

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.

以下是使用时间偏移移动到视频任何部分的HTML5视频的示例。它应该为您提供您自己尝试所需的所有信息。

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.

这篇关于你如何使用视频标签进行真正的流式传输(即不是渐进式下载)? (HTML5)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆