navigator.getUserMedia = navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia || navigator.msGetUserMedia;var constraints = "";if (mediaType === "audio,vIDeo") { constraints = { audio : true,vIDeo : true };} else { constraints = { audio : true,vIDeo : false };}navigator.getUserMedia(constraints,successCallback,errorCallback);解决方法
… but it’s not working in iPhone and iPad Chrome.
iPhone或iPad上的Chrome应用程序未运行“完整”版本的Chrome.它的功能仅限于iOS平台.所以getUserMedia等可能要到Safari/Apple supports it才能使用.
Quoting from another question:
总结Apple policy forces other browser to use their version of webkit which does not support webRTC,so you will not have webRTC support in a web app on iOS anytime soon. Activity in webkit hints as a change,but time for this to land,it will be months.
以上是内存溢出为你收集整理的如何在Chrome for iOS中使用getUserMedia全部内容,希望文章能够帮你解决如何在Chrome for iOS中使用getUserMedia所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)