This is just a copy of the flv example from the JavaCV iOS repo with a working build setup and some minor adjustments to push an RTMP stream to Mux. The only file that really matters here is just MainActivity, basically everything else is just Android Studio stuff to help you run it if you'd like.
The original example takes the devices camera and saves it to an FLV file. Instead, of writing to that FLV file, we push to our stream endpoint at Mux. This is the same process as using FFmpeg directly to publish an RTMP stream from the command line.
If you just want to get up and streaming as quickly as possible, all you need to do is replace the ffmpeg_link
variable with your own Mux RTMP stream.