<styletype="text/css">body{margin:px;padding:px;}#player {width:100%;height:100%;}</style><script>(function(){varmediaOptions={audio:false,video:true};if(!navigator.getUserMedia){navigator.getUserMedia=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia||navigator.msGetUserMedia;}if(!navigator.getUserMedia){returnalert('getUserMedia not supported in this browser.');}navigator.getUserMedia(mediaOptions,success,function(e){console.log(e);});functionsuccess(stream){varvideo=document.querySelector("#player");video.src=window.URL.createObjectURL(stream);}})();</script><videoid="player"autoplay="true"></video>