Skip to content

Commit 84e3adb

Browse files
committed
Merge branch 'patch-1' of git://github.com/hannosch/html5demos into hannosch-patch-1
2 parents cc93513 + 27eb28e commit 84e3adb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

demos/gum.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
gum = document.getElementById('gum');
3434

3535
function init() {
36-
navigator.getUserMedia = navigator.getUserMedia || navigator.webkitGetUserMedia;
36+
navigator.getUserMedia = navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia;
3737
if (navigator.getUserMedia) {
3838
// NOTE: at time of writing March 26, 2012, audio isn't working in Chrome
3939
// navigator.getUserMedia('audio,video', successCallback, errorCallback);
@@ -55,7 +55,7 @@
5555
}
5656
}
5757

58-
if (navigator.getUserMedia || navigator.webkitGetUserMedia) {
58+
if (navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia) {
5959
article.removeChild(gum);
6060
article.className = 'supported';
6161
init();

0 commit comments

Comments
 (0)