It is probably the smallest(~60KB, fat version ~300KB) rtmp client for android. It calls librtmp functions over JNI interface
It is probably the smallest(~60KB, fat version ~300KB) rtmp client for android. It calls librtmp functions over JNI interface
The configuration of target_link_libraries in CMakeLists.txt has been modified to support the requirements of Support 16 KB page sizes.
androidx.media3 RTMP DataSource module uses the rtmp-client library, but the upstream developers have not updated it in time to support 16k, if you encounter the same problem, you can try use this library first to solve the problem.
implementation("androidx.media3:media3-datasource-rtmp:1.6.1") {
exclude("io.antmedia", "rtmp-client")
}
implementation("com.github.mcxinyu:LibRtmp-Client-for-Android:v3.2.0.m2")
It is probably the smallest(~60KB) rtmp client for android. It calls librtmp functions over JNI interface. With all cpu architectures(arm, arm7, arm8, x86, x86-64, mips) its size is getting about 300KB
It compiles librtmp library without ssl.
In version 0.2, it supports FLV muxing and sending stream via RTMP. FLV muxing is based on this repo https://github.com/rainfly123/flvmuxer
For live streams add " live=1" at the end of the url when calling the open function
Don't forget calling the close function after you are done. If you don't, there will be memory leakage
To save flv file locally as well, you can use below functions
if any local file is opened, library will write the audio and video frames to local file as well.
dependencies {
...
compile 'net.butterflytv.utils:rtmp-client:3.1.0'
...
}
No open issues yet, or sync has not completed.