We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11b883c commit c66d23bCopy full SHA for c66d23b
demos/gum.html
@@ -41,7 +41,9 @@
41
navigator.getUserMedia({video: true, audio: true }, successCallback, errorCallback);
42
function successCallback(stream) {
43
window.stream = stream;
44
- if (window.webkitURL) {
+ if ('mozSrcObject' in video)
45
+ video.mozSrcObject = stream;
46
+ } else if (window.webkitURL) {
47
video.src = window.webkitURL.createObjectURL(stream);
48
// document.querySelector('audio').src = window.webkitURL.createObjectURL(stream);
49
} else {
@@ -60,4 +62,4 @@
60
62
article.className = 'supported';
61
63
init();
64
}
-</script>
65
+</script>
0 commit comments