└── README.md /README.md: -------------------------------------------------------------------------------- 1 | # WebRTC Binaries for Android 2 | [![Latest version](https://img.shields.io/github/v/release/rno/webrtc)](https://github.com/rno/WebRTC/releases) 3 | [![Release Date](https://img.shields.io/github/release-date/rno/webrtc)](https://github.com/rno/WebRTC/releases) 4 | [![Total Downloads](https://img.shields.io/github/downloads/rno/webrtc/total)](https://github.com/rno/WebRTC/releases) 5 | [![Maven Central](https://img.shields.io/maven-central/v/com.dafruits/webrtc)](https://github.com/rno/WebRTC/releases) 6 | 7 | 8 | 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](https://github.com/stasel/WebRTC). 9 | 10 | Since version M80, Google has [deprecated](https://groups.google.com/g/discuss-webrtc/c/Ozvbd0p7Q1Y/m/M4WN2cRKCwAJ?pli=1) 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. 11 | 12 | ## 📦 Releases 13 | The binary releases correspond with official Chromium releases and branches as specified in the [Chromium dashboard](https://chromiumdash.appspot.com/branches). 14 | 15 | ## 💡 Things to know 16 | All binaries in this repository are compiled from the official WebRTC [source code](https://webrtc.googlesource.com/src/) without any modifications to the source code or to the output binaries. 17 | 18 | ## 📢 Requirements 19 | * minSdkVersion = 21 20 | 21 | ## 📀 Binaries included 22 | 23 | * arm64-v8a 24 | * armeabi-v7a 25 | * x86 26 | * x86_64 27 | 28 | ## 🚚 Installation 29 | 30 | ### Maven 31 | 32 | The latest release is available on [Maven Central](https://search.maven.org/artifact/com.dafruits/webrtc/121.0.0/aar) 33 | 34 | #### Gradle Groovy DSL 35 | 36 | ```groovy 37 | implementation 'com.dafruits:webrtc:123.0.0' 38 | ``` 39 | 40 | #### Gradle Kotlin DSL 41 | 42 | ```kotlin 43 | implementation("com.dafruits:webrtc:123.0.0") 44 | ``` 45 | 46 | ### Manual 47 | 1. Download the AAR from the [releases](https://github.com/rno/WebRTC/releases) section. 48 | 2. Copy the AAR file into a `libs` folder inside your app folder. 49 | 3. Include the following line in the `dependencies` section of your `build.gradle.kts` file 50 | 51 | ```kotlin 52 | implementation(files("libs/libwebrtc-123.0.0.aar")) 53 | ``` 54 | 55 | ### Proguard 56 | 57 | ``` 58 | -keep class org.webrtc.** { *; } 59 | ``` 60 | 61 | ## 🛠 Compile your own WebRTC AAR 62 | If you wish to compile your own WebRTC AAR, please refer to the following official guide: 63 | https://webrtc.googlesource.com/src/+/refs/heads/main/docs/native-code/android/ 64 | 65 | ## 📃 License 66 | * WebRTC License: https://webrtc.org/support/license --------------------------------------------------------------------------------