Running webcams with different browsers
For Opera 12
window.navigator.getUserMedia(param, function(stream) { video.src =window.URL.createObjectURL(stream); }, videoError );
For Firefox Nightly 18.0
window.navigator.mozGetUserMedia(param, function(stream) { video.mozSrcObject = stream; }, videoError );
For chrome 22
window.navigator.webkitGetUserMedia(param, function(stream) { video.src =window.webkitURL.createObjectURL(stream); }, videoError );
Stopping videos in webcams with different browsers
For Opera 12
video.pause(); video.src=null;
For Firefox Nightly 18.0
video.pause(); video.mozSrcObject=null;
For chrome 22
video.pause(); video.src="";
At the same time, the light in the webcam decreases every time ...
Alain Saurat Oct 08 '12 at 18:20 2012-10-08 18:20
source share