2017-08-09 88 views
-1

我使用的科尔多瓦 - 插件,人行横道,网页流量和即时得到Android设备上运行时navigator.getUserMedia不是一个函数开发离子的WebRTC应用任何想法为什么?科尔多瓦 - 插件,人行横道,网页流量和即时得到navigator.getUserMedia不是一个函数

 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>

回答

0

我重新安装科尔多瓦 - 插件 - 人行横道-的WebView插件

解决我的问题
相关问题