Quine Camera is an Android application that uses the device camera to stream MJPEG video over HTTP. It can also capture snapshots from the camera and display them as JPEG images. The app is built using the CameraX API and NanoHTTPD server library.
- Stream video from the device camera over HTTP
- Capture snapshots from the camera and display them as JPEG images
- Support for MJPEG video format
- Simple and easy to use interface
- Clone this repository:
git clone https://github.com/shaunmulligan/quine-camera.git
- Open the project in Android Studio
- Run the app on an Android device or emulator
When you open the app, you will see a viewfinder that displays the camera output. You can stream the video to your Mainsail UI buy adding a new camera.
- Click on the interface settings cogs at the top right of Mainsail
- find "Webcams" in the menu and click "ADD WEBCAM".
- Give the webcam a name and in the
service
drop down selectAdaptive MJPEG-Streamer (experimental)
- In the
URL stream
field pasthttp://<PHONE_IP_ADDRESS>:8080/webcam/?action=stream
, with your correct local phone IP address. - Do the same as #4 for
URL snapshot
field but change the end of the url to?action=snapshot
. - Click
SAVE WEBCAM
Once the app is opened it will run as a background service and you can change the focus to other apps. The main screen for the app also allows you to select between using the back or front camera and setting the streaming server port.