This repository contains unofficial distribution of WebRTC framework binaries for Android. This is heavily inspired by the work for providing WebRTC binaries for iOS and MacOS.
Since version M80, Google has deprecated their mobile binary libraries distributions (Was officially using the JCenter). To get the most up to date WebRTC library, you can compile it on your own, or you can use precompiled binaries from here or other sources.
The binary releases correspond with official Chromium releases and branches as specified in the Chromium dashboard.
All binaries in this repository are compiled from the official WebRTC source code without any modifications to the source code or to the output binaries.
- minSdkVersion = 21
- arm64-v8a
- armeabi-v7a
- x86
- x86_64
The latest release is available on Maven Central
implementation 'com.dafruits:webrtc:123.0.0'
implementation("com.dafruits:webrtc:123.0.0")
- Download the AAR from the releases section.
- Copy the AAR file into a
libs
folder inside your app folder. - Include the following line in the
dependencies
section of yourbuild.gradle.kts
file
implementation(files("libs/libwebrtc-123.0.0.aar"))
-keep class org.webrtc.** { *; }
If you wish to compile your own WebRTC AAR, please refer to the following official guide: https://webrtc.googlesource.com/src/+/refs/heads/main/docs/native-code/android/
- WebRTC License: https://webrtc.org/support/license