开发者

Which web browsers support the HTML5 <device> tag? [closed]

开发者 https://www.devze.com 2023-01-03 11:04 出处:网络
开发者_如何学JAVAAs it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references,or expertise, but this question will likely
开发者_如何学JAVA As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 10 years ago.

I read some time ago about the possibility to use media stream from a USB or rs232 device with the <device> tag such as a webcam with HTML5.

Is there a web browser that supports this right now? (i.e. nighty builds of Chrome, Webkit...)


Now we have released our modified WebKit library so that you can test these features yourself. Note that the "device" element is no longer available in the WhatWG spec, it has been replaced with a JavaScript API (navigator.getUserMedia(...)).

You can read more at: https://labs.ericsson.com/developer-community/blog/beyond-html5-experiment-real-time-communication-browser


Unfortunately, no browsers support the device APIs yet. The specification seems to be in a rather early stage and can be found here - http://dev.w3.org/html5/html-device/

Ericsson Labs did a blog post with some snippets of code which is great, but there's no playground to try these out.

Another related question was asked on SO last year, but looks like things haven't changed much since.

However, you might find this interesting - nothing production worthy but still fun. This blog post talks about using the <video> tag to stream from a webcam via VLC.


There's also an experimental build of Opera Mobile for Android that supports navigator.getUserMedia().

http://my.opera.com/core/blog/2011/03/23/webcam-orientation-preview


As @stefan-lund already mentioned the device tag has been replaced by the WebRTC specification.

Opera has a dev build available at http://dev.opera.com/articles/view/labs-more-fun-using-the-web-with-getusermedia-and-native-pages/ which supports WebRTC.

Chrome should get support in early 2012 (http://techcrunch.com/2011/11/24/chrome-getting-native-gamepad-webcam-and-webrtc-support-in-early-2012/)

If you just want to receive a video upload you can also use the Media Capture API instead, which is a special type of the input type=file element.

<input type="file" accept="image/*;capture=camera" />

Browser support for that is covered here: The Media Capture API - any existing implementations?


Chrome just added support for this today (dev channel Chrome) >> https://groups.google.com/forum/#!topic/discuss-webrtc/LuY7zYLA8sA

0

精彩评论

暂无评论...
验证码 换一张
取 消