fix(multi-stream) fix screenshare auto pin bug
This commit is contained in:
parent
41d8b9fbeb
commit
0cf1b7e3d9
|
@ -78,6 +78,10 @@ MiddlewareRegistry.register(store => next => action => {
|
||||||
store.dispatch(getAvailableDevices());
|
store.dispatch(getAvailableDevices());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Call next before the creation of a fake screenshare participant to ensure a video track is available when
|
||||||
|
// the participant is auto pinned.
|
||||||
|
const result = next(action);
|
||||||
|
|
||||||
// The TRACK_ADDED action is dispatched when a presenter starts a screenshare. Do not create a local fake
|
// The TRACK_ADDED action is dispatched when a presenter starts a screenshare. Do not create a local fake
|
||||||
// screenshare participant when multiple stream is not enabled.
|
// screenshare participant when multiple stream is not enabled.
|
||||||
const skipCreateFakeScreenShareParticipant = local && !getMultipleVideoSupportFeatureFlag(state);
|
const skipCreateFakeScreenShareParticipant = local && !getMultipleVideoSupportFeatureFlag(state);
|
||||||
|
@ -90,7 +94,7 @@ MiddlewareRegistry.register(store => next => action => {
|
||||||
createFakeScreenShareParticipant(store, action);
|
createFakeScreenShareParticipant(store, action);
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
return result;
|
||||||
}
|
}
|
||||||
case TRACK_NO_DATA_FROM_SOURCE: {
|
case TRACK_NO_DATA_FROM_SOURCE: {
|
||||||
const result = next(action);
|
const result = next(action);
|
||||||
|
|
Loading…
Reference in New Issue