WebRTC是否与phonegap / Cordova一起使用? [英] Does WebRTC work with phonegap/Cordova?

查看:197
本文介绍了WebRTC是否与phonegap / Cordova一起使用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

编辑:改写我的问题和标题

Rephrased My Question and Title

因此,如果你能从标题中得知我正在使用Phonegap / Cordova并尝试添加WebRTC到HTML / JS / CSS应用程序。完全适用于桌面浏览器,但不适用于移动设备。

So if you can tell from the title I am using Phonegap/Cordova and trying to add WebRTC to an HTML/JS/CSS app. Perfectly works on the desktop browser, but not on mobile.

我问这个问题的原因是因为我在移动设备上看到了视频聊天应用程序(oovoo / skype),但浏览器中没有聊天应用程序。虽然我知道webrtc不工作在IOS,但工作在较新版本的Chrome。

The reason I ask this question is because I have seen video chat apps on mobile(oovoo/skype), but no chat apps in the browser. Although I am aware webrtc doesnt work on IOS, but does work on newer versions of Chrome.

但是是否可以运行WebRTC,如果我把我的应用程序在Cordova / Phonegap webview并将其分发为应用程序?因为如果我可以使用PhoneGap访问原生组件,如摄像头或accelorometer,为什么我不能使用与HTML / JS / CSS应用程序的视频聊天?

But is it possible to run WebRTC if I wrap my app in a Cordova/Phonegap webview and distribute it as an app? Because if I can access native components like the camera or accelorometer with PhoneGap why can I not use video chat with an HTML/JS/CSS app?

有没有人试过?

TIA。

推荐答案

它可能适用于移动设备,不是不是所有,而是与Phonegap(基于我的exp)。
根据CanIUse.com,WebRtc不支持iOS和IE。但对于Firefox和Android,甚至可能需要在某些设备上使用chrome canary或每夜构建。

It may work on mobile devices, but not not all, and not with Phonegap(based on my exp). According to CanIUse.com, WebRtc is not supported for iOS and IE. But for Firefox and Android, and even then may need chrome canary or nightly builds on some devices.

资料来源: http://caniuse.com/#search=webrtc

本机应用程式将是go,所以我实际上将大多数移动应用程序从PhoneGap切换到CoccoonJS,这是免费的,并给我一个本地应用程序与我的HTML / JavaScript代码。

A native app would be the way to go, so i've actually switched most mobile apps from PhoneGap to CoccoonJS which is free and gives me a native app with my html/javascript code.

我能够让它在Android上运行多个视频Feed,并且支持用于服务器信号的websockets。

I was able to get it to run on Android with multiple video feeds and it supports websockets for server signaling.

源: https://www.ludei.com/cocoonjs/

Android应用程式叫做Azar声称使用WebRtc ,所以它看起来应该本机运行:

The android app called, Azar claims to use WebRtc, so it looks like it should run natively:

源: http://www.app-trailer.com/app/random-video-chat-azar.html

这篇关于WebRTC是否与phonegap / Cordova一起使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆