You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
onvif: Auto-create OBS Media Source from discovered RTSP stream
Builds on the previous WS-Discovery dialog patch: once the user picks
a camera, also offer to drop an FFmpeg-based Media Source into the
current scene pointing at the camera's RTSP stream.
The dialog grows a "Also create an OBS Media Source for this camera's
stream" checkbox (default checked) and a stream picker that lists every
RTSP URI returned by GetStreamUri so the user can choose Main vs Sub
before clicking "Use Selected Camera".
On accept, settings.cpp:
- Takes the URI from the picker (falls back to the first usable URI),
- Embeds the dialog's username/password as Basic auth into the URL so
the source still works after the per-session token in the camera's
reply expires,
- Creates an "ffmpeg_source" with restart_on_activate and hw_decode,
- Adds it to the currently active scene.
If the user unchecks the box, only the PTZ device is created. If
GetStreamUri came back empty (anonymous probe was rejected, or the
camera has no streamable profile), the Media Source step silently
no-ops.
Signed-off-by: Jonatã Bolzan Loss <jonata@jonata.org>
0 commit comments