Jump to content
  • 0

Android LiveVideoBroadcaster alternative to using Camera

Drew Buckley



I'm trying to modify the Android LiveVideoBroadcaster app to stream video from my MediaProjection for screen capture.

I'm converting the returned Images to YV12 and I'm using MediaCodec to encode with the same settings as per the Antmedia example.

Connecting with RTMPMuxer and sending via writevideo, I can see that the broadcast is registered on my Linux Server but unlike the original Camera version which has a green icon with the broadcasting message in LiveApp, just reads "Broadcasting" in the Status without the green icon. If i click "Play" i get the screen "Stream will start playing automatically when it is live" and VLC registers as a Viewer but is not playing. Also the same if I use the Android app for the Camera and try to play the stream it never starts.

I can write the MediaProjection bytes to file ".mp4" successfully.

Are there certain configurations that are needed to Broadcast video other than from a Camera (which works fine)?

I can't use WebRTC as this app will have potentially 100's viewing a stream at a time.

I'm quite keen to get this working so if I need to clarify anything for someone to share some thoughts and ideas, please let me know.
Link to comment
Share on other sites

  • Answers 1
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

1 answer to this question

Recommended Posts

  • 0

I managed to make some changes to the setup of MediaCodec but basically the same rates and such as before and when it starts, AntMedia broadcast session stops. Looking like it ignored what was being sent before but now it's not ignoring it. Just crashing the broadcast session. Main change is i'm now sending to the server via a callback.

Maybe i'm close but no idea exactly what format the server is expecting.
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...