Skip to content

Commit adc5be6

Browse files
committed
changed the getUserMedia function to be compatible with couple of browser kits
1 parent 234268b commit adc5be6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

p2p-video-chat-webrtc/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
navigator.webkitGetUserMedia({ video: true, audio: false }, function (stream) {
1+
navigator.getMedia=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia||navigator.msGetUserMedia;
2+
navigator.getMedia({ video: true, audio: false }, function (stream) {
23
var Peer = require('simple-peer')
34
var peer = new Peer({
45
initiator: location.hash === '#init',

0 commit comments

Comments
 (0)