AppRTC Android studio

503 views
Skip to first unread message

Benjamin Hamrick

unread,
Nov 23, 2015, 10:23:40 AM11/23/15
to discuss-webrtc
Is it possible to import the source files for webrtc into android studio instead of importing the jar library? I would like to edit the webrtc library and then see quick results!

Christoffer Jansson

unread,
Nov 23, 2015, 10:26:17 AM11/23/15
to discuss-webrtc
Hi,

It should be possible, maybe this https://github.com/pristineio/apprtc-android could help you?

/Chris

On Mon, Nov 23, 2015 at 4:23 PM Benjamin Hamrick <bent...@gmail.com> wrote:
Is it possible to import the source files for webrtc into android studio instead of importing the jar library? I would like to edit the webrtc library and then see quick results!

--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/22061294-01bf-4eff-9fdb-827430b36b89%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Benjamin Hamrick

unread,
Nov 23, 2015, 10:33:40 AM11/23/15
to discuss-webrtc
I have looked at that and it still uses a compiled version of libjingle_peerconnection.jar. I need to modify files inside of this jar so it would be cool to import the java files instead. Is this possible? How else should I setup my development environment to start working on the WebRTC api?

Pallab Gain

unread,
Nov 24, 2015, 12:35:49 AM11/24/15
to discuss-webrtc
This should not be hard if you just want to replace the jar. If you are doing your test with master branch, you might need to sync your java files regularly, since webRTC master branch updates frequently.



I just share my android studio screenshots where I replaced jar with all the necessary java files. To do this, I wrote a shell scripts that 
  • Downloads java files from webRTC master branch. [ Directory tree, and file locations might be change with time. You need to download Logging.java from separately. Sample download link Logging.java ]
    • {base_directory}/talk/app/webrtc/java/android/org/webrtc/
    • {base_directory}/talk/app/webrtc/java/src/org/webrtc/
    • {base_directory}/webrtc/modules/video_render/android/java/src/org/webrtc/videoengine/
    • {base_directory}/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/
  • Creates org.webrtc package
    • Create videoengine package, and place files 
    • Create voiceengine package, and places files
    • Place Other files
Regards,
Pallab

Benjamin Hamrick

unread,
Nov 25, 2015, 10:21:13 AM11/25/15
to discuss-webrtc
Would it be possible for you to share either the project or the shell script? Thank you very much!

Pallab Gain

unread,
Nov 27, 2015, 11:11:39 PM11/27/15
to discuss-webrtc
A simple shell script that download the files https://github.com/pallab-gain/webrtc_build_util .

Benjamin Hamrick

unread,
Feb 5, 2016, 3:23:59 PM2/5/16
to discuss-webrtc
Also how can I generate a updated Android Studio webRTCDemo project?

Pallab Gain

unread,
Feb 8, 2016, 4:23:17 AM2/8/16
to discuss-webrtc
Sorry! I think, I did not understand you clearly. But, if you meant, you just recompiled new webRTC .so library, and now want to update your webRTC java library then you can use the exact revision number of your currently built webRTC source.

Benjamin Hamrick

unread,
Feb 8, 2016, 11:05:15 AM2/8/16
to discuss-webrtc

You understood me correctly! Your shell script helps a lot. Now I just need to figure out how to get the newest appRTCDemo with the render camera to texture setting.
Reply all
Reply to author
Forward
0 new messages