本机Android WebRTC应用程序开发 [英] Native Android WebRTC application development

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

问题描述

我正在尝试使用WebRtc本机api创建一个用于视频聊天和消息传递的android应用程序.我已经通过几个链接,发现android的大多数文档是含糊不清的,特别是如果您不知道从哪里开始.我点击了以下链接,

I am trying to create an android application for video chat and messaging by using WebRtc Native apis. I have been through several links and found out that most of the documentation for android is vague, specially if you dont know where to start from. I followed the following links,

https://webrtc.org/native-code/android/#

https://www.chromium.org/developers/how- tos/android-build-instructions

但是上面提到的链接没有任何意义,因为我想开发一个android应用程序,这些链接建议下载Chrome,然后进行构建.我知道最终结果将是apk,但是如果我想编写自己的代码该怎么办.我也研究了pubnub和OpenTokRtc,但我也不想使用别人的信令服务(以及pub和sub键).我尝试了以下链接,

But the above mentioned links doesnt make any sense because I want to develop an android application and these links suggests downloading a chromium and then build that. I know the end result is going to be an apk but what if I want to code my self. I looked into pubnub and OpenTokRtc as well but I dont want to use somebody elses signaling service either (along with pub and sub keys). I tried the following link,

https://github.com/pristineio/webrtc-build-scripts

但是对于WebRTC的新手来说,这似乎也有些不完整,因为它建议通过以下命令来获取WebRtc,

but this seems to be a bit incomplete for a novice in WebRTC as well since it suggests to get the WebRtc by the following command,

# Pull WebRTC
get_webrtc

最后我尝试了以下链接,

Finally I have tried the following link,

http://simonguest.com/2013/08/06/building-a-webrtc-client-for-android/

但是本教程的问题在于它根本没有更新.现在,Libjingle已移至github,但我不知道如何使用gclient从github获取libjingle.

But the problem with this tutorial is that its not updated at all. Libjingle has been moved to github by now and I dont know how to use gclient to get libjingle from github.

我的这场斗争是一场灾难.有人可以在更新的文档或教程中为我提供帮助吗?我可以使用这些文档或教程来了解使用webRTC本机api开发应用程序到底需要什么?请不要给我任何指向OpenTokRtc或PubNub的链接.

This struggle of mine has been a disaster. Can anyone please help me in something with updated documentation or tutorial which I can use for understanding as to what exactly do I need to develop an application using webRTC native apis? Please do not give me any links to OpenTokRtc or PubNub.

谢谢

推荐答案

我知道这是一个旧线程,但是如果有人仍在寻找使用libjingle构建Android应用程序的方法,则最后一个库中已发布了预构建的库.几个月就可以将其作为依赖项添加到Android Studio项目中,就像这样:

I know this is an old thread, but in case anyone is still searching for a way to build Android apps with libjingle, prebuilt libraries have been published within the last few months that can be added as dependencies very simply to Android Studio projects like so:

dependencies {
    compile 'org.webrtc:google-webrtc:1.0.+'
}

在Android Studio 2中;对于Android Studio 3:

In Android Studio 2. Or for Android Studio 3:

dependencies {
    implementation 'org.webrtc:google-webrtc:1.0.+'
}

文档位于此处.有关如何使用Android API的示例,请通读 AppRTC代码.

Documentation is here. For an example of how to use the Android API, read through the AppRTC code.

这篇关于本机Android WebRTC应用程序开发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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