How to add WebRTC functionality to an Android app

How can I easily add WebRTC functionality to my Android application so that I can play the video stream in MediaPlayer ?

  • What library ( .jar file) do I need to add to the references?
  • Could you add some sample code?
+7
source share
4 answers

In fact, there are no such ".jar" files for you right now.

WebRTC is designed for web browsers, even if it can be created for Android and iOS.

for your question, I think you may need to learn how to create WebRTC on Android or iOS.

For Android, you need to know NDK and JNI first. then build entire webrtc projects or standalone VoE \ ViE modules even NS \ AECM \ VAD \ AGC for android.

for iOS, you also need to create it yourself, but you may need this help.

all this data can be found on the Internet, especially the google group .

+3
source

checkout following link: http://www.webrtc.org/reference/getting-started I added my project to github: https://github.com/SDkie/Webrtc-for-Android , you can unlock it and add it to it changes.

+2
source

Please see http://www.webrtc.org/native-code/android .

It has all the information on how to create webRTC for Android.

Java shell for native webRTC libraries: https://code.google.com/p/webrtc/source/browse/trunk/talk/app/webrtc/java/#java%2Fsrc%2Forg%2Fwebrtc

It contains instructions for building your own libraries.

It also has an example application that uses webRTC to discuss https://apprtc.appspot.com .

https://code.google.com/p/webrtc/source/browse/trunk/webrtc/examples/android/media_demo/README

I could not find instructions on how to create an Android Studio project and create it using gradle. If anyone finds this, please share. I hope this helps

+1
source

One option is to use the crosswalk, you can create your own application using the crosswalk as a web view in your project.

In my case, Web-RTC worked without problems.

Here are a few lessons on how to add a crosswalk to your project.

https://diego.org/2015/01/07/embedding-crosswalk-in-android-studio/

https://crosswalk-project.org/documentation/embedding_crosswalk.html

Hope this helps.

0
source

All Articles