Remote Support

See the issue on site. Move the solution forward remotely.
The helmet camera brings video and audio from the field to the remote support team. The expert sees what the technician sees, so they can talk, inspect, and move forward together.
https://remotesupport.stream/: Remote SupportRaspberry Pi Remote Desktop with C++ and WebRTC
A lightweight remote desktop project that streams a Raspberry Pi’s screen to a web browser and sends keyboard and mouse input back to the device. The architecture combines a native C++ application with a framework-free browser client.
Technologies Used
- C++17: Powers screen capture, video processing, signaling, and input handling on the Raspberry Pi.
- libdatachannel: Provides WebRTC connectivity, video transport, and bidirectional DataChannels without requiring the Google WebRTC library.
- FFmpeg and H.264: Converts captured RGB frames to YUV and encodes them using H.264. The application prioritizes the libx264 encoder and uses settings intended to reduce streaming latency.
- Linux Framebuffer and DRM/KMS: Provides screen capture through
/dev/fb0or an active DRM display plane. The DRM implementation uses DMA-BUF mappings and reuses mapped buffers. - Linux uinput: Translates incoming keyboard and mouse commands into operating-system input events.
- Embedded HTTP and WebSocket Servers: Serves the browser interface and exchanges SDP descriptions and ICE candidates directly within the C++ application, without a separate Node.js or Python signaling service.
- HTML5, CSS, and Vanilla JavaScript: Implements the browser interface using a native
<video>element and WebRTC APIs, without frontend frameworks. - STUN/TURN Support: Supports ICE server configuration for connectivity across different networks, with TURN available when a relay is needed.
- CMake: Manages the C++ build process and integrates native dependencies.
Engineering Focus
The project emphasizes a direct capture-to-stream pipeline, reusable frame buffers, and clear separation between screen capture, encoding, transport, and input handling. Development involved diagnosing SDP negotiation, RTP payload-type mismatches, H.264 keyframe delivery, and the differences between framebuffer and active desktop capture.
The browser interface can be hosted independently, while video and remote-control traffic travel through the WebRTC connection between the browser and the Raspberry Pi.