Home

Awesome

Librtmp Client for Android

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

To read streams, you can call below functions of RtmpClient from Java

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 publish streams, you can call below functions of RtmpMuxer from Java

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.

Install

dependencies {
    ...
    compile 'net.butterflytv.utils:rtmp-client:3.1.0'
    ...
}
<br/>

Ant Media