fix(webapp): attach live feed when stream starts late
This commit is contained in:
@@ -1567,7 +1567,12 @@ const connectSocket = () => {
|
|||||||
|
|
||||||
if (payload.cameraDeviceId === currentState.activeCameraDeviceId) {
|
if (payload.cameraDeviceId === currentState.activeCameraDeviceId) {
|
||||||
setAppState({ activeStreamSessionId: payload.streamSessionId });
|
setAppState({ activeStreamSessionId: payload.streamSessionId });
|
||||||
setClientStreamMode('connecting');
|
if (remoteStreams.has(payload.streamSessionId)) {
|
||||||
|
attachClientStreamToElement();
|
||||||
|
setClientStreamMode('video');
|
||||||
|
} else {
|
||||||
|
setClientStreamMode('connecting');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
streamTimers.set(
|
streamTimers.set(
|
||||||
|
|||||||
Reference in New Issue
Block a user