HTML 5 流式网络摄像头视频?
目前是否可以使用 HTML5 创建免费的 Flash 实时网络摄像头聊天?如果是这样,我该如何去做呢?
Is it currently possible to create a flash free live webcam chat with HTML5? If so, how can I go about doing this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
否
它位于 html5 草案中
http://www.whatwg.org/specs/web-apps/current-work/complete/video-conferencing-and-peer-to-peer-communication.html#obtaining-local-multimedia-content
这是关于这个问题的更深入的转换
HTML 5
这是一个使用 Flash 的解决方案
http://code.google.com/p/jpegcam/
no
It is in the html5 draft
http://www.whatwg.org/specs/web-apps/current-work/complete/video-conferencing-and-peer-to-peer-communication.html#obtaining-local-multimedia-content
here is a much deeper conversion about this issue
What's the status of the HTML 5 <video> tag and webcam integration?
and here is a solution that works using flash
http://code.google.com/p/jpegcam/
现在在 Chrome 和 Opera 中可以实现此操作: 使用 getUserMedia 和 HTML5 canvas 过滤网络摄像头,并且很快也会出现在 Firefox 中(
getUserMedia
目前出现在 Firefox Nightly 中)。This is now possible in Chrome and Opera: filtering a webcam using getUserMedia and HTML5 canvas and will also soon be in Firefox (
getUserMedia
is currently in Firefox Nightly).纯粹使用 HTML5,目前还不会发生这种情况。
也就是说,理论上您可以在没有闪存桥的情况下做到这一点,但有一些要求。事实上,有一些适用于 Mac OS 的命令行实用程序可以从 iSight 摄像头捕获图像并将其上传到 Web 服务器。抓取图像和可选的声音,对于低级相机,您可以每秒重绘到画布元素几次。我不会开始猜测推送音频。使用 AJAX 流来维护连接,并在新图像上传时不断将其推送到画布。
真正的问题是:值得吗?根据 Adobe1,您不妨使用闪光桥。当然,除非您想要 iOS 兼容性,这本身就是另一回事了。
Purely with HTML5, it's just not going to happen right now.
That said, you could theoretically do it without a flash bridge, but there'd be some requirements. As it is, there are some command-line utilities for Mac OS that capture images from the iSight camera and upload them to a web server. Grabbing the images, and optionally sound, you could redraw to a canvas element a few times a second for a low-grade camera. I won't begin to guess about pushing audio. Use an AJAX stream to maintain the connection, and continuously push the new images to the canvas as they're uploaded.
The real question becomes this: Is it worth it? According to Adobe1, you might as well use a flash bridge. Unless, of course, you're intending iOS compatibility, which is a whole other ballgame on it's own.
纯粹的 HTML5 还不够。在此之前,您可以查看一些服务,这些服务使此过程比设置 Flash Media Server 更容易处理:
http://cameratag。 com
http://framey.com
http://framebase.com
Pure HTML5 isn't quite there. Until then you can check out a few services that make this process much easier to deal with than setting up Flash Media Servers:
http://cameratag.com
http://framey.com
http://framebase.com