Skip to content

Commit fd71cb8

Browse files
committed
Merge pull request shama#7 from GavinDmello/master
GetUserMedia function
2 parents 234268b + adc5be6 commit fd71cb8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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)