HTML 5视频标记源可以来自流式IP摄像头吗? [英] Could the HTML 5 Video tag source come from streaming IP cam?

查看:426
本文介绍了HTML 5视频标记源可以来自流式IP摄像头吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看到这篇文章是 http://www.html5rocks.com/en/tutorials / getusermedia / intro / ,它解释了从用户设备捕获音频和视频,如网络摄像头和麦克风。

I saw this article http://www.html5rocks.com/en/tutorials/getusermedia/intro/, it explain about capturing audio and video from user device such as webcam and microphone.

我的问题是我们可以使用这种方法来从IP cam捕获视频流?所以基本上它可以从IP摄像机访问多媒体流(视频,音频或两者),其网络流不是本地设备。
有人能指出我正确的方向吗?有可能吗?

My question is can we used this method to capture video stream from IP cam? So basically it's can access to multimedia streams (video, audio, or both) from IP camera its network stream not local device. Can anyone pointed me to the right direction? Is it possible?

谢谢。

推荐答案

HTML捕获意图为了与本地设备等进行交互,您的问题与此完全不同。可能更容易解决您的问题,因为HTML对播放网络视频流的支持比从本地设备捕获的更好。然后,您可以从显示的流中捕获帧,如JavaScript 图像 s。

HTML capturing is intended for interacting with a local device etc, your problem is completely different than that. Probably, your problem is even easier to solve, as HTML has better support for playing out network video streams than for capturing from local device. You might then be able to capture frames off of the displayed stream, as JavaScript Images.

您首先需要找出你的IP摄像头做流媒体。有些相机正在使用流媒体协议(RTP等),浏览器的元素可以支持这些协议。其他相机使用一种名为渐进式下载的方法,在这种方法中,他们生成一个无限的文件,客户端。如果您的相机就是这种情况,您可以使用XHR简单地检索该文件。

You first need to figure out your IP camera does the streaming. Some cameras are using streaming protocols (RTP and such), which could be supported by your browser's element. Other cameras use a method called progressive download, in which they're producing an endless file being downloaded by the client. If that's the case with your camera, you might be able to simply retrieve that file using XHR.

这篇关于HTML 5视频标记源可以来自流式IP摄像头吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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