简体   繁体   English

Android webview中的Webrtc

[英]Webrtc in Android webview

We have developed webapplication on Webbased Video / audio communication, in the backend, it uses webrtc + html5, 我们已经开发了基于Web的视频/音频通信的Web应用程序,在后端,它使用webrtc + html5,

Now we are trying to make it native, and approach is 现在我们正试图让它成为原生,而方法就是

-- Developed a WebView, -- Launch an URL in the webview, so it will be more of native app . - 开发了WebView, - 在webview中启动URL,因此它将更多是本机应用程序。 just a embededding webview as a shell inside the native app, 只是一个嵌入式webview作为本机应用程序内的shell,

-- Now My question if i am able to launch Video Communicator successfully inside Browser then in the same device, should it launch in the Native application ( which is using WebView as a shell) - 现在我的问题是我是否能够在浏览器中成功启动Video Communicator然后在同一设备中,如果它在Native应用程序(使用WebView作为shell)中启动

Just responded to a similar question on Stack Overflow:: Android WebView does not support WebRTC APIs at this point. 刚回答Stack Overflow上的类似问题 :: Android WebView此时不支持WebRTC API。 Work is underway on Java an Objective-C bindings, though that may not be what you need. Java上的Objective-C绑定工作正在进行中,尽管这可能不是您需要的。

Well you could go native/hybrid, on Android for example, you could use Crosswalk/Angular/Ionic, I've tested a video chat app prototype with this method and it worked pretty well. 那么你可以去原生/混合,例如在Android上,你可以使用Crosswalk / Angular / Ionic,我用这种方法测试了一个视频聊天应用程序原型,它运行得很好。

Crosswalk runs Google's Blink engine over Androids WebView, this is awesome for older android versions and phones that aren't super new because. Crosswalk在Androids WebView上运行谷歌的Blink引擎,这对于较旧的Android版本和非超级新手机来说非常棒。 1. Gives the latest HTML features including WebRTC to about 85% of all android phones. 1.向大约85%的Android手机提供最新的HTML功能,包括WebRTC。 2. Performance is great, it's hard to tell between hybrid or native, the Crosswalk/Angular/Ionic stack is very smooth. 2.性能很好,在混合动力或原生之间很难说,Crosswalk / Angular / Ionic堆栈非常流畅。

I've seen a couple iOS hybrid solutions as well out there, just haven't got around to trying it yet. 我已经看到了几个iOS混合解决方案,但还没有尝试过。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM