启用的WebRTC我有这样的事情在我的科尔多瓦应用在科尔多瓦的WebView
document.addEventListener("deviceready", onDeviceReady, false);
function onDeviceReady() {
window.location.href = 'https://mobile.xxx.com';
}
现在我需要在这个网站使用的WebRTC。当我在移动浏览器中运行它时,它的工作正常(chrome 54.0.2840.85)。
但是,当我使用apk,webview不会加载webRTC功能,如相机或微型。
因此,在移动浏览器中它工作正常,在webview中rtc将无法正常工作。
这是我在config.xml中
<content src="index.html" />
<access origin="https://mobile.xxx.com" />
<allow-navigation href="https://mobile.xxx.com" />
<allow-intent href="https://mobile.xxx.com" />
<plugin name="cordova-plugin-network-information" version="1.3.0" source="npm" />
<plugin name="cordova-plugin-splashscreen" version="4.0.0" source="npm" />
<plugin name="cordova-plugin-whitelist" version="1.3.0" source="npm" />
<plugin name="cordova-plugin-dialogs" version="1.3.0" source="npm" />
<plugin name="cordova-plugin-statusbar" version="2.2.0" source="npm" />
<preference name="StatusBarOverlaysWebView" value="false" />
<preference name="phonegap-version" value="cli-6.3.0" />
<preference name="permissions" value="none"/>
<preference name="target-device" value="universal"/>
<preference name="fullscreen" value="true"/>
<preference name="show-splash-screen-spinner" value="true" />
<preference name="stay-in-webview" value="true" />
<preference name="orientation" value="portrait" />
<preference name="loadUrlTimeoutValue" value="700000" />
已经尝试过crosswalk,但同样的问题。我如何在cordova webview中使用webrtc?为了澄清,我只是在寻找一个功能演示。
什么人行横道的版本你在用吗? – johnborges
@johnborges已经尝试过使用''''''和<'plugin name =“cordova-plugin-crosswalk-webview-pgb-adapt”source =“npm”version =“1.4.0-dev-5”/>''' –
user455318