androidkotlinant-media-server-sdk

Sending Images in PNG format to ant media server


Problem description I have an android App. It produces bytearrays and converts them to PNG image. I need to send these images to ant media server as a stream.

Attempt to resolve

Searching send png images to ant media serveron SO yielded me 0 results. I looked up the ant documentation - but this only gives an example of a surface view that sends data from a camera.

Question Please help me to formulate a solution. I have no idea where to start. Thank you


Solution

  • Ant Media Server does support generating PNG, WebP, JPG images from the live streams. It does not currently support uploading PNG images for streaming.

    I recommend you to send the stream to Ant Media Server as a WebRTC stream. There is a free WebRTC Android SDK that you can use and you can tune the parameters.

    Regards Oguz