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