实现WebRTC在Android [英] WebRTC on 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 的。我不知道你能支持旧版本的Android使用的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 专用以托管最新的Android实现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
}
其他资源
- 信号API文档
- 样品的Android实现WebRTC应用
- 教程制作上用信号库一个Android实现WebRTC应用
- Signaling API Documentation
- Sample Android WebRTC App
- Tutorial on making an Android WebRTC app with signaling library
Additional Resources
这篇关于实现WebRTC在Android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!