I want to capture the camera stream from an Android device and transfer it to a server with RTMP (the server is out of my control). I still do not understand how to create a data stream from the camera itself, but this concerns a later problem.
There are two problems at the moment: I want to support API 9+, and RTMP is not supported on the Android platform.
I looked and found this SO message Convert video input stream to RTMP and https://github.com/yixia/VitamioBundle . The first proposed a library that has virtually no documentation. The latter probably supports it (?), But this requires API 14 +.
Are there any decent examples or libraries that support RTMP streams from an Android device? I also read something about converting RTSP or FFMPEG, if this is a viable way, I think that will also be enough.
Change 1:
I found this library (it has many similarities to the one mentioned above) and tried to work. I imported it into Android Studio and wrote some code, but it seems to crash inside with the java.lang.NoClassDefFoundError RTSP Codec Factory error. So apparently this doesn't work too well on Android.
In addition, I have encountered Adobe AIR several times. I do not want to code in Action Script 3 (AS3), as this library will be just a (small) part of its own application. If Adobe Air has a library that I donβt know about, then I would love to integrate it if possible.
android video-streaming rtmp
Gooey
source share