I'm working on an Android RAT (Remote Administration Tool) project as a course project. I want to add live video stream feature to the RAT. I've searched for different ways and find out three different ways:

  1. Captures video from service, then upload the video
  2. Streams video from camera in a local web server inside Android application (such as https://github.com/darshanrn/SpyCam)
  3. Ant Media which is exactly the suitable solution which encodes the video and transfer as a live stream (https://github.com/ant-media/LiveVideoBroadcaster)

But the problem is that Ant Broadcaster needs an activity to preview the camera, however as it is described HERE (https://github.com/sprimgupta/Secret-Video-Recorder) it is possible to record video from a service without previewing.

I wonder how to make video stream inside service using Ant Broadcaster?

Ant Media connects a service to an activity and then broadcast the video: https://github.com/ant-media/LiveVideoBroadcaster/blob/master/liveVideoBroadcasterSDK/src/main/java/io/antmedia/android/broadcaster/LiveVideoBroadcaster.java


Finally I could create a live hidden camera library which takes a context and start streaming. The library code and release information is at:


Here is a demonstration: Live Hidden Camera

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.