fix(AOT): participant selection.

This commit is contained in:
Hristo Terezov 2021-07-15 17:13:46 -05:00
parent e22a25b216
commit c5438ecd0c
1 changed files with 2 additions and 9 deletions

View File

@ -1,9 +1,7 @@
// @flow // @flow
import { MEDIA_TYPE, VIDEO_TYPE } from '../base/media';
import { getLocalParticipant } from '../base/participants'; import { getLocalParticipant } from '../base/participants';
import { StateListenerRegistry } from '../base/redux'; import { StateListenerRegistry } from '../base/redux';
import { getTrackByMediaTypeAndParticipant } from '../base/tracks';
import { appendSuffix } from '../display-name'; import { appendSuffix } from '../display-name';
import { shouldDisplayTileView } from '../video-layout'; import { shouldDisplayTileView } from '../video-layout';
@ -45,12 +43,7 @@ StateListenerRegistry.register(
*/ */
StateListenerRegistry.register( StateListenerRegistry.register(
/* selector */ state => state['features/large-video'].participantId, /* selector */ state => state['features/large-video'].participantId,
/* listener */ (participantId, store) => { /* listener */ participantId => {
const videoTrack = getTrackByMediaTypeAndParticipant( APP.API.notifyOnStageParticipantChanged(participantId);
store.getState()['features/base/tracks'], MEDIA_TYPE.VIDEO, participantId);
if (videoTrack && videoTrack.videoType === VIDEO_TYPE.CAMERA) {
APP.API.notifyOnStageParticipantChanged(participantId);
}
} }
); );