androidwebrtclibjingle

Where could I download libjingle_peerconnection.jar source code


I'm experimenting with WebRTC from Android, so far using libjingle from this repo had made me successfully creates a native android app that broadcast a WebRTC video to my webapp rendered in browser (check my project here), or the other way around (check my project here)

But now I want to make some changes or maybe extend some functions to enable me to render MediaStream into android default VideoView. So I look for this library's source code in their repo but I couldn't find it (the source jars are all empty).

Does anybody knows where to acquire it?

Thanks


Solution

  • It looks you are using years old libjingle repo. Follow the official WebRTC build instructions for Android to build latest code base.
    You need a Ubuntu OS to build the WebRTC jar/aar for android.

    Generating gradle to build the demo app in AndroidStudio:

    build/android/gradle/generate_gradle.py --output-directory $PWD/out/Debug --target "//webrtc/examples:AppRTCMobile" --use-gradle-process-resources --split-projects
    

    Generating WebRTC Framework to link in any other native App:

    ./tools_webrtc/android/build_aar.py
    

    This command will generate libwebrtc.aar, it will contain all the dependent(.jar/.so) files. Just import this .aar into your existing App.

    You may need to change your app code, to make compatible with latest WebRTC API's.
    See Demo & API source.

    Then you can play with VideoRender & SurfaceViewRenderer