2017-08-09 3 views

答えて

0

 navigator.getUserMedia({audio: true, video: true}, function(stream){ 
 
     // Set your video displays 
 
     let vid = document.getElementById('my-video'); 
 

 
    
 
    if(vid) 
 
     { 
 
     vid.setAttribute("src", URL.createObjectURL(stream)); 
 
     }else 
 
     { 
 
     alert("err geting div"); 
 
     } 
 
     //this.localStream = stream; 
 
     
 
     }, function(){ alert("err");});
<video id="my-video" muted="true" autoplay="" src=""></video>
iはコルドバ・プラグイン・横断歩道・WebViewのプラグイン

を再インストールすることによって、私の問題を解決しました
関連する問題