5 ms·
There's no way to capture mic input with HTML5 now.
by klr 14y ago
There's no way to capture mic input with HTML5 now.
- stanleydrew 14y agoIf you count all of the new javascript APIs as part of HTML5, which most people do, then it is true that you can capture mic input with webRTC which is part of "HTML5".
- its_so_on 14y agoAnyway this thing relies on javascript too, which I thought was a stretch to call 'pure html5'...so depending on your needs, Flash (which can use mic input) might be just as acceptable as javascript...then again, it might not be.
- hoppipolla 14y agoThat's what getUserMedia[1] provides [1] http://dev.w3.org/2011/webrtc/editor/getusermedia.html#dom-navigator-getusermedia http://dev.w3.org/2011/webrtc/editor/getusermedia.html#dom-n...
- rwaldron 14y agoThat's not true. Create a PeerConnection and feed it a getUserMedia stream object.
- nl 14y agoActually... HTML5 Media Capture[1] provides extensions to input tags to allow access to camera and microphone devices, eg: <input type="file" accept="video/* ;capture=camcorder"> <input type="file" accept="audio/* ;capture=microphone"> It isn't widely implemented though (just in the Android Browser, Chrome on Android and Firefox Mobile). The recommended way is to use the getUserMedia Javascript APIs. http://www.html5rocks.com/en/tutorials/getusermedia/intro/ http://www.html5rocks.com/en/tutorials/getusermedia/intro/ is a good guide. [1] http://dev.w3.org/2009/dap/camera/ http://dev.w3.org/2009/dap/camera/
- sneak 14y agosemicolon-delimited attr value, and "camcorder"! Great to see that the future is being ushered in in a coordinated, organized, well-thought-out manner. Ugh.
- mdaniel 14y agoThat syntax came from MIME and has been present in email, newsgroups and the web for as long as I can remember. The server sends content-type headers delimited with MIME attributes, the browser sends accept headers and inside the pages one will often find a meta tag with its content attribute delimited that way.