I have been reading up on the开发者_如何学编程 draft Device APIs and am wondering whether there are any implementations of the Media Capture API.
Ericsson seem to have some demos up, however haven't released the source. There's also a bug report on Chromium.
I don't mind whether implementation takes the form of a:
- nightly build
- patch
- branch
- browser extension
- backfill JavaScript
...so long as it allows experimenting against the interface as is thus far suggested in the standard.
Android 3.0 implements the HTML Media Capture specification (a draft version).
Microsoft recently (June 2011) announced that they have released a prototype for IE 9 that implements the audio portion of the HTML Media Capture spec. You can read the announcement and download the prototype for experimentation from here:
http://blogs.msdn.com/b/interoperability/archive/2011/06/07/new-media-capture-audio-prototype-released.aspx
A WebRTC committer wrote that the «device element has gone the way of dodo»:
http://code.google.com/p/chromium/issues/detail?id=55377#c10
So a better alternative seems to be the WhatWG getUserMedia:
http://www.whatwg.org/specs/web-apps/current-work/multipage/video-conferencing-and-peer-to-peer-communication.html
and specifically
http://www.whatwg.org/specs/web-apps/current-work/multipage/video-conferencing-and-peer-to-peer-communication.html#obtaining-local-multimedia-content
The Media Capture API is no longer being worked on — it was split into two specifications: Media Capture and Streams (aka getUserMedia) and HTML Media Capture. Support, as of May 2013, is:
getUserMedia
- Opera (desktop & mobile)
- Firefox (desktop)
- Chrome (desktop)
Source: http://caniuse.com/#feat=stream
HTML Media Capture
- Android 3.0
- iOS 6
- BlackBerry 10
- Mobile Firefox 10.0
- Chrome for Android 0.16
Source: lots of searching and testing
精彩评论