Skip to content

hardcodedjoy/udp-camera-iototoy

Repository files navigation

Live Camera Stream over UDP (made in IoToToy)

Real-time wireless video streaming via UDP, built using the IoToToy visual programming app for Android.

Sender (IoToToy) Receiver (UDP Display)
UDP Camera UDP Display

Overview

This project transforms an Android device into a Remote IP Camera. It captures live video frames, compresses them into JPEG images, and transmits the data packets over the network using the UDP protocol. This setup is ideal for low-latency monitoring or as a fast solution that provides live camera input data to another system.

Signal Chain

The logic is defined in the project JSON and follows this flow:

  1. Constant (Resolution): A value of 512 sets the camera width and height, providing a balance between image clarity and network throughput.
  2. Camera: Captures the live video feed at the specified resolution.
  3. Local Preview: One output branch sends the raw frames to a display block for local monitoring.
  4. JPEG Encoder: The second branch passes frames to the image_encoder_to_jpeg block.
  5. Constant (Quality): A value of 80 defines the JPEG compression quality, optimizing the data size for wireless transmission.
  6. UDP Block: The final encoded stream is transmitted to the target IP 192.168.107.12 on destination port 8081.

How to Use

  1. Install IoToToy from the Google Play Store.
  2. Load the project JSON file into the app via FILE -> OPEN.
  3. Configuration: Modify the String Constant block (currently 192.168.107.12) and the Integer Constant block (currently 8081) to match the IP address and port of your receiving computer or device.
  4. Run the diagram and use a compatible UDP receiver (like our UDP Display app) to view the stream.

Requirements

  • Android device with camera access.
  • IoToToy (v1.0.5 or newer).
  • UDP Display or other compatible receiver. (A receiver can be build in IoToToy as well).
  • Both devices must be on the same local network (Wi-Fi).

Releases

No releases published

Packages

 
 
 

Contributors