{"id":1435,"date":"2013-01-12T01:36:06","date_gmt":"2013-01-12T01:36:06","guid":{"rendered":"http:\/\/blog.mozilla.org\/futurereleases\/?p=1435"},"modified":"2013-01-31T22:34:25","modified_gmt":"2013-01-31T22:34:25","slug":"capture-local-camera-and-microphone-streams-with-getusermedia-now-enabled-in-firefox","status":"publish","type":"post","link":"https:\/\/blog.mozilla.org\/futurereleases\/2013\/01\/12\/capture-local-camera-and-microphone-streams-with-getusermedia-now-enabled-in-firefox\/","title":{"rendered":"Capture local camera and microphone streams with getUserMedia &#8211; now enabled in Firefox"},"content":{"rendered":"<p>getUserMedia (navigator.mozGetUserMedia), also affectionately known as gUM, is now enabled by default in <a href=\"http:\/\/www.mozilla.org\/en-US\/firefox\/aurora\/\">Aurora<\/a>.  Why is this so awesome?<\/p>\n<p>gUM is a new HTML5 DOM API that allows the browser to capture local camera and\/or microphone streams directly, and not through third party plugins.  This means JavaScript developers can now quickly and easily write code to access the user\u2019s camera or microphones (with the user\u2019s permission, of course) without having to install anything because the support is already inside the browser.<\/p>\n<p> We still currently prefix gUM as mozGetUserMedia because the standards committee is not yet done defining it.  So, gUM demos that work with Chrome (using the navigator.webkitGetUserMedia call) will need to be modified to include the moz prefix.<\/p>\n<p><a href=\"http:\/\/mozilla.github.com\/webrtc-landing\/gum_test.html\">Here&#8217;s a simple example<\/a> of how to use the new gUM API.  My four-year old and her Firefox bear (both interested in becoming active contributors to the Firefox project) really like this page:<\/p>\n<p><a href=\"http:\/\/blog.mozilla.org\/futurereleases\/2013\/01\/12\/capture-local-camera-and-microphone-streams-with-getusermedia-now-enabled-in-firefox\/firefox_bear_gumtest\/\" rel=\"attachment wp-att-1437\"><img decoding=\"async\" loading=\"lazy\" src=\"http:\/\/blog.mozilla.org\/futurereleases\/files\/2013\/01\/firefox_bear_gumtest.png\" alt=\"firefox_bear_gumtest\" width=\"970\" height=\"799\" class=\"aligncenter size-full wp-image-1437\" srcset=\"https:\/\/blog.mozilla.org\/futurereleases\/files\/2013\/01\/firefox_bear_gumtest.png 970w, https:\/\/blog.mozilla.org\/futurereleases\/files\/2013\/01\/firefox_bear_gumtest-252x207.png 252w, https:\/\/blog.mozilla.org\/futurereleases\/files\/2013\/01\/firefox_bear_gumtest-600x494.png 600w\" sizes=\"(max-width: 970px) 100vw, 970px\" \/><\/a><\/p>\n<p>gUM is also the first API component of WebRTC, which enables real-time, interactive, peer-to-peer audio\/video calls and data sharing.   The other big pieces of WebRTC, PeerConnection and DataChannels (<a href=\"https:\/\/blog.mozilla.org\/futurereleases\/2012\/11\/30\/webrtc-makes-social-api-even-more-social\/\">a Mozilla first<\/a>), still have some rough edges we\u2019re smoothing out, but will also be enabled by default soon.  You can try them now in <a href=\"http:\/\/nightly.mozilla.org\/\">Nightly<\/a> or Aurora 20 by browsing to about:config and changing the media.peerconnection.enabled pref to \u201ctrue\u201d.<\/p>\n<p>We know gUM is a powerful new tool that will make the Web even more incredible, and we\u2019re thrilled to enable this new functionality in our browser.<\/p>\n<p>&#8211; Maire Reavy, Product Lead, Firefox Platform Media<\/p>\n","protected":false},"excerpt":{"rendered":"<p>getUserMedia (navigator.mozGetUserMedia), also affectionately known as gUM, is now enabled by default in Aurora. Why is this so awesome? gUM is a new HTML5 DOM API that allows the browser &hellip; <a class=\"go\" href=\"https:\/\/blog.mozilla.org\/futurereleases\/2013\/01\/12\/capture-local-camera-and-microphone-streams-with-getusermedia-now-enabled-in-firefox\/\">Read more<\/a><\/p>\n","protected":false},"author":280,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8801],"tags":[15881],"coauthors":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Capture local camera and microphone streams with getUserMedia - now enabled in Firefox - Future Releases<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/blog.mozilla.org\/futurereleases\/2013\/01\/12\/capture-local-camera-and-microphone-streams-with-getusermedia-now-enabled-in-firefox\/\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"gjimenez\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/blog.mozilla.org\/futurereleases\/2013\/01\/12\/capture-local-camera-and-microphone-streams-with-getusermedia-now-enabled-in-firefox\/\",\"url\":\"https:\/\/blog.mozilla.org\/futurereleases\/2013\/01\/12\/capture-local-camera-and-microphone-streams-with-getusermedia-now-enabled-in-firefox\/\",\"name\":\"Capture local camera and microphone streams with getUserMedia - now enabled in Firefox - Future Releases\",\"isPartOf\":{\"@id\":\"https:\/\/blog.mozilla.org\/futurereleases\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/blog.mozilla.org\/futurereleases\/2013\/01\/12\/capture-local-camera-and-microphone-streams-with-getusermedia-now-enabled-in-firefox\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/blog.mozilla.org\/futurereleases\/2013\/01\/12\/capture-local-camera-and-microphone-streams-with-getusermedia-now-enabled-in-firefox\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/blog.mozilla.org\/futurereleases\/files\/2013\/01\/firefox_bear_gumtest.png\",\"datePublished\":\"2013-01-12T01:36:06+00:00\",\"dateModified\":\"2013-01-31T22:34:25+00:00\",\"author\":{\"@id\":\"https:\/\/blog.mozilla.org\/futurereleases\/#\/schema\/person\/6c9a40d10e0a9c99b88a7ab50e031c46\"},\"breadcrumb\":{\"@id\":\"https:\/\/blog.mozilla.org\/futurereleases\/2013\/01\/12\/capture-local-camera-and-microphone-streams-with-getusermedia-now-enabled-in-firefox\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/blog.mozilla.org\/futurereleases\/2013\/01\/12\/capture-local-camera-and-microphone-streams-with-getusermedia-now-enabled-in-firefox\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/blog.mozilla.org\/futurereleases\/2013\/01\/12\/capture-local-camera-and-microphone-streams-with-getusermedia-now-enabled-in-firefox\/#primaryimage\",\"url\":\"http:\/\/blog.mozilla.org\/futurereleases\/files\/2013\/01\/firefox_bear_gumtest.png\",\"contentUrl\":\"http:\/\/blog.mozilla.org\/futurereleases\/files\/2013\/01\/firefox_bear_gumtest.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/blog.mozilla.org\/futurereleases\/2013\/01\/12\/capture-local-camera-and-microphone-streams-with-getusermedia-now-enabled-in-firefox\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/blog.mozilla.org\/futurereleases\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Capture local camera and microphone streams with getUserMedia &#8211; now enabled in Firefox\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/blog.mozilla.org\/futurereleases\/#website\",\"url\":\"https:\/\/blog.mozilla.org\/futurereleases\/\",\"name\":\"Future Releases\",\"description\":\"Be the first to know what&#039;s new with upcoming Firefox releases.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/blog.mozilla.org\/futurereleases\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/blog.mozilla.org\/futurereleases\/#\/schema\/person\/6c9a40d10e0a9c99b88a7ab50e031c46\",\"name\":\"gjimenez\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/blog.mozilla.org\/futurereleases\/#\/schema\/person\/image\/67e8cbed0c33d4a39c84151927fcd087\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/fa3d81e31d1abc4b8ef3f572b2427f7b?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/fa3d81e31d1abc4b8ef3f572b2427f7b?s=96&d=mm&r=g\",\"caption\":\"gjimenez\"},\"url\":\"https:\/\/blog.mozilla.org\/futurereleases\/author\/futurereleases\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Capture local camera and microphone streams with getUserMedia - now enabled in Firefox - Future Releases","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/blog.mozilla.org\/futurereleases\/2013\/01\/12\/capture-local-camera-and-microphone-streams-with-getusermedia-now-enabled-in-firefox\/","twitter_misc":{"Written by":"gjimenez","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/blog.mozilla.org\/futurereleases\/2013\/01\/12\/capture-local-camera-and-microphone-streams-with-getusermedia-now-enabled-in-firefox\/","url":"https:\/\/blog.mozilla.org\/futurereleases\/2013\/01\/12\/capture-local-camera-and-microphone-streams-with-getusermedia-now-enabled-in-firefox\/","name":"Capture local camera and microphone streams with getUserMedia - now enabled in Firefox - Future Releases","isPartOf":{"@id":"https:\/\/blog.mozilla.org\/futurereleases\/#website"},"primaryImageOfPage":{"@id":"https:\/\/blog.mozilla.org\/futurereleases\/2013\/01\/12\/capture-local-camera-and-microphone-streams-with-getusermedia-now-enabled-in-firefox\/#primaryimage"},"image":{"@id":"https:\/\/blog.mozilla.org\/futurereleases\/2013\/01\/12\/capture-local-camera-and-microphone-streams-with-getusermedia-now-enabled-in-firefox\/#primaryimage"},"thumbnailUrl":"http:\/\/blog.mozilla.org\/futurereleases\/files\/2013\/01\/firefox_bear_gumtest.png","datePublished":"2013-01-12T01:36:06+00:00","dateModified":"2013-01-31T22:34:25+00:00","author":{"@id":"https:\/\/blog.mozilla.org\/futurereleases\/#\/schema\/person\/6c9a40d10e0a9c99b88a7ab50e031c46"},"breadcrumb":{"@id":"https:\/\/blog.mozilla.org\/futurereleases\/2013\/01\/12\/capture-local-camera-and-microphone-streams-with-getusermedia-now-enabled-in-firefox\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/blog.mozilla.org\/futurereleases\/2013\/01\/12\/capture-local-camera-and-microphone-streams-with-getusermedia-now-enabled-in-firefox\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/blog.mozilla.org\/futurereleases\/2013\/01\/12\/capture-local-camera-and-microphone-streams-with-getusermedia-now-enabled-in-firefox\/#primaryimage","url":"http:\/\/blog.mozilla.org\/futurereleases\/files\/2013\/01\/firefox_bear_gumtest.png","contentUrl":"http:\/\/blog.mozilla.org\/futurereleases\/files\/2013\/01\/firefox_bear_gumtest.png"},{"@type":"BreadcrumbList","@id":"https:\/\/blog.mozilla.org\/futurereleases\/2013\/01\/12\/capture-local-camera-and-microphone-streams-with-getusermedia-now-enabled-in-firefox\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/blog.mozilla.org\/futurereleases\/"},{"@type":"ListItem","position":2,"name":"Capture local camera and microphone streams with getUserMedia &#8211; now enabled in Firefox"}]},{"@type":"WebSite","@id":"https:\/\/blog.mozilla.org\/futurereleases\/#website","url":"https:\/\/blog.mozilla.org\/futurereleases\/","name":"Future Releases","description":"Be the first to know what&#039;s new with upcoming Firefox releases.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/blog.mozilla.org\/futurereleases\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/blog.mozilla.org\/futurereleases\/#\/schema\/person\/6c9a40d10e0a9c99b88a7ab50e031c46","name":"gjimenez","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/blog.mozilla.org\/futurereleases\/#\/schema\/person\/image\/67e8cbed0c33d4a39c84151927fcd087","url":"https:\/\/secure.gravatar.com\/avatar\/fa3d81e31d1abc4b8ef3f572b2427f7b?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/fa3d81e31d1abc4b8ef3f572b2427f7b?s=96&d=mm&r=g","caption":"gjimenez"},"url":"https:\/\/blog.mozilla.org\/futurereleases\/author\/futurereleases\/"}]}},"_links":{"self":[{"href":"https:\/\/blog.mozilla.org\/futurereleases\/wp-json\/wp\/v2\/posts\/1435"}],"collection":[{"href":"https:\/\/blog.mozilla.org\/futurereleases\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.mozilla.org\/futurereleases\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.mozilla.org\/futurereleases\/wp-json\/wp\/v2\/users\/280"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.mozilla.org\/futurereleases\/wp-json\/wp\/v2\/comments?post=1435"}],"version-history":[{"count":0,"href":"https:\/\/blog.mozilla.org\/futurereleases\/wp-json\/wp\/v2\/posts\/1435\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.mozilla.org\/futurereleases\/wp-json\/wp\/v2\/media?parent=1435"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.mozilla.org\/futurereleases\/wp-json\/wp\/v2\/categories?post=1435"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.mozilla.org\/futurereleases\/wp-json\/wp\/v2\/tags?post=1435"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/blog.mozilla.org\/futurereleases\/wp-json\/wp\/v2\/coauthors?post=1435"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}