fix(webapp): attach live feed when stream starts late

This commit is contained in:
2026-04-01 17:25:00 +01:00
parent 8c877c0e85
commit 3e0635fec3

View File

@@ -1567,8 +1567,13 @@ const connectSocket = () => {
if (payload.cameraDeviceId === currentState.activeCameraDeviceId) {
setAppState({ activeStreamSessionId: payload.streamSessionId });
if (remoteStreams.has(payload.streamSessionId)) {
attachClientStreamToElement();
setClientStreamMode('video');
} else {
setClientStreamMode('connecting');
}
}
streamTimers.set(
payload.streamSessionId,