Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add WebRTC functionality in android app

How can I easily add WebRTC functionality to my android app so that I would be able to play video stream in MediaPlayer?

  1. What library (.jar file) do I have to add to referencies?
  2. Could you add some code example please?
like image 920
Buksy Avatar asked May 01 '13 18:05

Buksy


3 Answers

Actually, there is no such ".jar" files for you to reference right now.

WebRTC is designed for web browsers, even if it can be build for android and iOS.

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

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

for iOS, you should also build it by yourself, but you may need this help.

all of these info can be found on the internet, especially google group.

like image 88
Bill Hoo Avatar answered Nov 11 '22 02:11

Bill Hoo


checkout following link : http://www.webrtc.org/reference/getting-started I have added my project on github: https://github.com/SDkie/Webrtc-for-Android, you can fork and make changes in it.

like image 43
Kumar Sukhani Avatar answered Nov 11 '22 00:11

Kumar Sukhani


Please take a look at http://www.webrtc.org/native-code/android.

It has all the information on how to build webRTC for android.

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

It has the instructions on how to build the native libraries.

It also has an example app that uses webRTC to talk to the 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 build it with gradle though. If anyone finds it, please share. I hope it helps

like image 1
Michael P Avatar answered Nov 11 '22 00:11

Michael P