fix(AOT): participant selection.

pull/9565/head jitsi-meet_6081
Hristo Terezov 4 years ago
parent e22a25b216
commit c5438ecd0c
  1. 11
      react/features/external-api/subscriber.js

@ -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);
}
} }
); );

Loading…
Cancel
Save