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

Loading…
Cancel
Save