fix(webapp): attach live feed when stream starts late
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user