在cordova中使用chrome视图而不是默认的webview [英] using chrome view instead of default webview in cordova
问题描述
我很新的cordova / Phonegap.I使用InAppBrowser API连接到apprtc.appspot.com这是一个webrtc演示网站。
I am quite new to cordova/Phonegap.I used InAppBrowser API to connect to apprtc.appspot.com which is a webrtc demo site.
iabRef = window.open('https://apprtc.appspot.com', '_blank', 'location=yes');
我使用Nexus 5手机测试此行为。我觉得它采取默认的android webview而不是chrome浏览器意图。如果是这样的情况下,如何将它更改为Chrome浏览器意图?所以webrtc演示站点打开很好(没有getUserMedia()失败)。
I am using a Nexus 5 phone to test this behavior. I feel its taking the default android webview instead of chrome browser intent. If that's the case how can I change it to chrome browser intent ? So that the webrtc demo site opens well (without getUserMedia() failing).
任何输入对我都有很大的帮助。
Any inputs on this will be of great help to me.
感谢,
Shyam
Thanks,
Shyam
推荐答案
Android webview不支持WebRTC请参阅此链接 https://developers.google.com/chrome/mobile/docs/webview/overview
Android webview not support WebRTC see this link https://developers.google.com/chrome/mobile/docs/webview/overview
但是intel crosswalk为android(混合型,网络应用)提供真正的WebRTC,请参阅此链接 https:// crosswalk-project .org /
But intel crosswalk provide true WebRTC for android (hybrid,web app) see this link https://crosswalk-project.org/
这篇关于在cordova中使用chrome视图而不是默认的webview的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!