Native Android WebRTC application development

General Tech Bugs & Fixes 2 years ago

1 2 0 0 0 tuteeHUB earn credit +10 pts

5 Star Rating 1 Rating

Posted on 30 Aug 2022, this text provides information on Bugs & Fixes related to General Tech. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.

Take Quiz To Earn Credits!

Turn Your Knowledge into Earnings.

tuteehub_quiz

Answers (2)

Post Answer
profilepic.png
manpreet Tuteehub forum best answer Best Answer 2 years ago

 

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

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

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/

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.

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.

Thanks

profilepic.png
manpreet 2 years ago

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.


1 views   0 shares

No matter what stage you're at in your education or career, TuteeHub will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.