HTML 5 流式网络摄像头视频?

发布于 2024-11-28 09:03:27 字数 58 浏览 1 评论 0原文

目前是否可以使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

兔姬 2024-12-05 09:03:27

现在在 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).

‘画卷フ 2024-12-05 09:03:27

纯粹使用 HTML5,目前还不会发生这种情况。

也就是说,理论上您可以在没有闪存桥的情况下做到这一点,但有一些要求。事实上,有一些适用于 Mac OS 的命令行实用程序可以从 iSight 摄像头捕获图像并将其上传到 Web 服务器。抓取图像和可选的声音,对于低级相机,您可以每秒重绘到画布元素几次。我不会开始猜测推送音频。使用 AJAX 流来维护连接,并在新图像上传时不断将其推送到画布。

真正的问题是:值得吗?根据 Adob​​e1,您不妨使用闪光桥。当然,除非您想要 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.

伏妖词 2024-12-05 09:03:27

纯粹的 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文