Skip to content
This repository has been archived by the owner on Oct 9, 2019. It is now read-only.

Commit

Permalink
Add mozGetUserMedia support, as available in latest Firefox Nightly b…
Browse files Browse the repository at this point in the history
…uilds
  • Loading branch information
hannosch committed Jul 18, 2012
1 parent 973a376 commit 27eb28e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions demos/gum.html
Expand Up @@ -31,7 +31,7 @@
gum = document.getElementById('gum');

function init() {
navigator.getUserMedia = navigator.getUserMedia || navigator.webkitGetUserMedia;
navigator.getUserMedia = navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia;
if (navigator.getUserMedia) {
// NOTE: at time of writing March 26, 2012, audio isn't working in Chrome
navigator.getUserMedia('video', successCallback, errorCallback);
Expand All @@ -52,7 +52,7 @@
}
}

if (navigator.getUserMedia || navigator.webkitGetUserMedia) {
if (navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia) {
article.removeChild(gum);
article.className = 'supported';
init();
Expand Down

0 comments on commit 27eb28e

Please sign in to comment.