Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions web/js/components/preact/HLSVideoCell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export function HLSVideoCell({

useEffect(() => {
setPrivacyActive(!!stream.privacy_mode);
}, [streamId, stream.privacy_mode]);
}, [streamId, stream.name, stream.privacy_mode]);

// HLS source state: 'go2rtc' (go2rtc's dynamic HLS), 'native' (lightNVR FFmpeg-based HLS), or 'failed'
// Default to native lightNVR HLS (reliable, always running when streaming enabled)
Expand All @@ -110,7 +110,7 @@ export function HLSVideoCell({
// preserving runtime fallback decisions within the same stream instance.
useEffect(() => {
setHlsMode(stream && stream.go2rtc_hls_available ? 'go2rtc' : 'native');
}, [streamId, stream?.go2rtc_hls_available]);
}, [streamId, stream?.name, stream?.go2rtc_hls_available]);

// PTZ controls state
const [showPTZControls, setShowPTZControls] = useState(false);
Expand Down
Loading