实现WebRTC在Android [英] WebRTC on Android

查看:2716
本文介绍了实现WebRTC在Android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用Web RTC的钛。

I would like to use the Web RTC on Titanium.

在去年年底,

网络RTC功能在Android上的Chrome浏览器实现的。

Web RTC function is implemented on chrome on Android.

我想使应用程序实现WebRTC在Android上。

I would like to make application with WebRTC on Android.

我有几个问题。

1)是否有可能使用实现WebRTC对本地的WebView或仅仅是为了铬??

1)Is it possible to use WebRTC on native webview or it is only for chrome??

2)什么是落实实现WebRTC在我的应用程序?

2)What is the simplest way to implement webRTC on my application??

我发现在旧文章关于实现WebRTC的移动位置

I have found the old article about webRTC on mobile here

<一个href="http://stackoverflow.com/questions/16517935/webrtc-on-a-standalone-mobile-app/19519395#19519395">WebRTC在一个独立的移动应用

但它是旧的,现在情况怎么改?

but it is old,how the situation changed now?

推荐答案

只是一个为那些后来看到这个职位上实现WebRTC更新:

如果你只迎合Android的L(5.0),可以使用的更新的WebView 的。我不知道你能支持旧版本的Andr​​oid使用的WebView虽然。你可以把课程的天然选择。

If you are only catering to Android L (5.0), you can use the updated WebView. I am not sure you can support older Android versions with a WebView though. You can take the native option of course.

由于其他用户提到,编译实现WebRTC源文件无疑是一个可行的选择,如果你有时间和资源。但是,如果你想获得启动和运行速度更快, Pristine.io 专用以托管最新的Andr​​oid实现WebRTC文物。要开始使用实现WebRTC本身在Android,你可以添加以下到您的应用程序的 build.gradle

As other users mentioned, compiling WebRTC source files is certainly a viable option if you have the time and resources. However, if you would like to get up and running faster, Pristine.io is dedicated to hosting up to date WebRTC Android artifacts. To begin using WebRTC natively on your Android, you can add the following to your app's build.gradle:

dependencies { 
   ... 
   compile 'io.pristine:libjingle:9694@aar' 
} 

在我写这篇文章的时候,我一直在与实现WebRTC在Android上,在过去几个月了,最新的修订版,我一直用的就是9694.找到最新版本的这里

与实现WebRTC的JavaScript库,您将需要一个服务照顾用户发现和SDP信令。我建了一个实现WebRTC信令​​API 使用的 PubNub 的信号服务。您可以包括它并开始使用它的时候了,加入以下到您的应用程序的 build.gradle

As with WebRTC's javascript library, you will need a service to take care of user discovery and SDP signaling. I built a WebRTC Signaling API using PubNub for the signaling service. You can include it and begin to use it right away by adding the following to your app's build.gradle:

dependencies {
    ...
    compile 'io.pristine:libjingle:9694@aar'
    compile 'me.kevingleason:pnwebrtc:1.0.6@aar'
    compile 'com.pubnub:pubnub-android:3.7.4'    //optional
}

其他资源

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