воскресенье, октября 21, 2012

HTML5 video start stop

Как оказывается все запущено. http://stackoverflow.com/questions/2879227/html5-video-stop-onclose

Starting Video 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 video 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="";

Комментариев нет:

Мой список блогов