mirror of
https://github.com/element-hq/libopusencoder-android.git
synced 2026-11-15 00:14:43 +00:00
Android wrapper for libopusenc, used to create Ogg files in with Opus frames.
- C 95.9%
- Shell 1.8%
- Makefile 1.2%
- M4 0.3%
- CMake 0.2%
- Other 0.4%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
|
||
| gradle/wrapper | ||
| opusencoder | ||
| .gitignore | ||
| build.gradle | ||
| gradle.properties | ||
| gradlew | ||
| gradlew.bat | ||
| LICENSE | ||
| README.md | ||
| settings.gradle | ||
OpusEncoder
Android wrapper for libopusenc, used to create Ogg files in with Opus frames.
How to integrate it in your application
Just add the following gradle dependency:
implementation "io.element.android:opusencoder:$version"
How to build
The project is prepared to be built by using:
./gradlew assembleRelease
If you want to provide prebuilt libraries for libopus and libopusenc, you just need to add them to opusencoder/src/main/cpp/opus/prebuilt_libs under folders for each supported architecture and setting opusencoder/build.gradle as:
externalNativeBuild {
cmake {
arguments "-DUSE_PREBUILTS=true"
}
}
This is disabled by default, meaning both libopus and libopusenc will be built from source.