Expand description
Live-view gateway integration: registers a camera’s stream as a MediaMTX path (server-side, credentials never exposed to the browser) and returns HLS / WebRTC / RTSP playback URLs.
Structs§
Functions§
- ensure_
live - Ensure a MediaMTX path exists for this camera and return its playback URLs.
request_hostis theHostheader of the originating request, used to make loopback stream URLs reachable by the client. - set_
webrtc_ ice_ servers - Program MediaMTX’s WebRTC ICE servers (STUN/TURN) so it gathers reachable candidates for remote
viewing — needed for symmetric-NAT traversal.
iceis a MediaMTXwebrtcICEServers2array ([{"url":..,"username"?:..,"password"?:..}]). Patches the RUNNING MediaMTX over its API (no restart). - transcode_
codec_ args - FFmpeg encoder args for the live preview transcode, selected by
HELDAR_LIVE_TRANSCODE_ENGINE.softwareuses libx264 (CPU);vaapioffloads to an Intel/AMD render node;nvencto an NVIDIA GPU. An unknown engine warns and falls back to software so a typo never breaks live preview.