Browse Source

fix(AOT): participant selection.

j8
Hristo Terezov 3 years ago
parent
commit
c5438ecd0c
1 changed files with 2 additions and 9 deletions
  1. 2
    9
      react/features/external-api/subscriber.js

+ 2
- 9
react/features/external-api/subscriber.js View File

1
 // @flow
1
 // @flow
2
 
2
 
3
-import { MEDIA_TYPE, VIDEO_TYPE } from '../base/media';
4
 import { getLocalParticipant } from '../base/participants';
3
 import { getLocalParticipant } from '../base/participants';
5
 import { StateListenerRegistry } from '../base/redux';
4
 import { StateListenerRegistry } from '../base/redux';
6
-import { getTrackByMediaTypeAndParticipant } from '../base/tracks';
7
 import { appendSuffix } from '../display-name';
5
 import { appendSuffix } from '../display-name';
8
 import { shouldDisplayTileView } from '../video-layout';
6
 import { shouldDisplayTileView } from '../video-layout';
9
 
7
 
45
  */
43
  */
46
 StateListenerRegistry.register(
44
 StateListenerRegistry.register(
47
     /* selector */ state => state['features/large-video'].participantId,
45
     /* selector */ state => state['features/large-video'].participantId,
48
-    /* listener */ (participantId, store) => {
49
-        const videoTrack = getTrackByMediaTypeAndParticipant(
50
-            store.getState()['features/base/tracks'], MEDIA_TYPE.VIDEO, participantId);
51
-
52
-        if (videoTrack && videoTrack.videoType === VIDEO_TYPE.CAMERA) {
53
-            APP.API.notifyOnStageParticipantChanged(participantId);
54
-        }
46
+    /* listener */ participantId => {
47
+        APP.API.notifyOnStageParticipantChanged(participantId);
55
     }
48
     }
56
 );
49
 );

Loading…
Cancel
Save