Last active
August 29, 2015 14:01
-
-
Save ishan1608/0b12c1a356ade6ce01f0 to your computer and use it in GitHub Desktop.
This is the test to see the availability of user media in chrome.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// The format for getting user media stream in chrome. | |
// navigator.webkitGetUserMedia(constraints, successCallback, errorCallback); | |
navigator.webkitGetUserMedia( | |
{ | |
video:true | |
}, | |
function(stream) { | |
console.log('Got a video stream'); | |
}, | |
function(error) { | |
console.log('navigator.webkitGetUserMedia error'); | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment