在 HTML5 视频标签中显示本地视频流
我正在开发一个系统,我们希望在浏览器中显示来自视频捕获卡的视频流。浏览器连接到远程服务器并获取包含视频的 html 页面。该视频应从连接视频采集卡的客户端计算机流式传输。
在客户端,我们运行 Linux,采集卡被 Video4Linux2 注册为 /dev/video0。客户端的浏览器是Chrome(chromium-browser)。在客户端,我们有一个可用于流式传输的网络服务器(lighttpd)。
我已经研究过 getUserMedia API,但现在似乎对此的支持很差。我遇到的其他问题是使用本地网络服务器或在客户端设置流媒体服务器以在本地流式传输视频源。
任何如何设计这个的想法对我来说都是很好的输入!
谢谢, /彼得
I working on a system where we want to show a video stream from a Video Capture card in a browser. The browser connect towards a remote server and fetch a html page that have video in it. This video should be streamed from the client machine where a video capture card is connected.
On client side we running Linux and the capture card is registered as /dev/video0 by Video4Linux2. The browser on client side is Chrome (chromium-browser). On client side we have a webserver (lighttpd) that is possible to use for streaming.
I have looked into the getUserMedia API but it seems to be poor support for that right now. Other toughts that I have had is to use the local webserver or setup a streaming server on client side that stream video source locally.
Any ideas how to design this would be great input for me!
Thanks,
/Peter
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
由于 Chrome 尚不支持
标签的 RT(S)P 流媒体,因此您必须使用插件来实现此目的。
鉴于它的可用性,我建议使用 Flash 编写简单的 SWF,以找到正确的视频源并显示。
如果需要,您可以使用众多可用的“录音应用程序”之一并删除录音部分。
Since Chrome does not yet support RT(S)P streaming for the
<video>
tag you will have to use a plugin for this.Given it's availability I would suggest using Flash to write simple SWF which finds the correct video source and displays.
If needed you can use one of the many 'Recording Apps' available and strip out the recording part.