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 docum
I'm using the library that Mark Sherman mentions. There is a blog post that explains very well all the classes involved in the process: tech.appear.in
NOTE: It doesn't explain anything about signalling servers but introduces you to it.
Also, the AppRTCDemo code available at chromium.googlesource.com can be a good trusted resource to check the workflow. It is a bit complex but if you know what you're looking for it can be useful.
If you wan't a full end to end open source implementation I would look at this library... https://github.com/nhancv/nc-kurento-android
That paired with Kurento (https://github.com/kurento) and included demos will pretty much show you how everything works under the hood. I used this as a starting point for my own webrtc project and it was relatively easy to follow and thorough, although there will still be a learning curve of course.
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.+'
}
In Android Studio 2. Or for Android Studio 3:
dependencies {
implementation 'org.webrtc:google-webrtc:1.0.+'
}
Documentation is here. For an example of how to use the Android API, read through the AppRTC code.
I am also in the same situation as you are, finding how to integrate my own signalling service into libjingle
and there seems to be no tutorial out there addressing it.
If you are using Android Studio for your development, you should include compile 'io.pristine:libjingle:9694@aar'
in the dependencies
section of your build.gradle
script:
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'io.pristine:libjingle:9694@aar'
// the rest of your code
}
This should add libjingle
to your project.
@Mark Sherman gave a good answer on how to get the libjingle lib into compiling into your project. You will still need to come up with your own signaling service. The project I found helpful which includes an Android Client and service is the following:
Client - https://github.com/pchab/AndroidRTC
Signaling - https://github.com/pchab/ProjectRTC
You can also check out Ericsson's cross platform extensive SDK called OpenWebRTC:
http://www.openwebrtc.org/
https://github.com/EricssonResearch/openwebrtc-android-sdk