Skip to content

Instantly share code, notes, and snippets.

@ishan1608
ishan1608 / webkitGUMTest
Last active August 29, 2015 14:01
This is the test to see the availability of user media in chrome.
// 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');
},