使用 html5 stream-api 的具体示例
我想知道是否有人成功使用 HTML5 流API? 我该如何使用它?它是“无服务器”解决方案吗?如果不是,流发送到哪里?
(我找到了这个博客条目< /a> 显示了第一个带有自定义 webkit 的 html5 会议应用程序,它确实很有趣,但没有用,因为它不是标准化的。
谢谢您,
问候。
I'd like to know if someone succeeded in using the HTML5 stream api?
How can I use it? Is is it a "serverless" solution? If not, where the stream is sent?
(I found this blog entry that shows the first html5 conference app with a customized webkit. It's really interesting but not useful since it's not a standerized).
Thank you,
Regards.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
流 API 是
HTMLDeviceElement
API 的一部分。截至目前(2011 年 1 月),尚未在任何已发布的浏览器中实现此功能。该流由客户端计算机提供服务。从理论上讲,它是一个“无服务器”解决方案,因为它作为客户端 API 来公开客户端设备(网络摄像头、USB 设备等)。如果需要,您可以使用 JavaScript 将流发送到服务器。
由于没有发布的实现(看起来除了 WebKit nightlies 之外),这个规范还没有真正准备好使用。
您始终可以尝试 WebKit nightly build 并查看您链接到的演示是否适合您。由于尚未发布,我不期望任何东西都能很好地工作。我尝试运行最新的 nightly (WebKit-r74232),但目前似乎未启用
HTMLDeviceElement
。The stream API is part of the
HTMLDeviceElement
API. This has not been implemented in any released browser as of yet (Jan 2011).The stream is served by the client computer. It is theoretically a "serverless" solution since it's meant as a client-side API to expose the client's devices (webcams, USB devices, etc). You could use JavaScript to send the stream to a server if desired.
Since there are no released implementations (aside from the WebKit nightlies it seems), this spec is not really ready to be used.
You could always try a WebKit nightly build and see if the demo you linked to works for you. Since this is not released yet, I wouldn't expect anything to work very well. I tried running the latest nightly (WebKit-r74232) and it seems
HTMLDeviceElement
is not enabled at the moment.