Преглед изворни кода

fix(large-video): bring back workaround for selecting on conference join

Bring back the workaround introduced in afd2aea7
but removed in 21dcc41d. On conference join,
several other actions have already been fired
that try to set the large video participant
and select the participant on the bridge.
The problem is there is no conference during
these actions so the select participant
never fires. Then subsequent actions do not
fire select participant because the large
video participant has not changed.
j8
Leonard Kim пре 5 година
родитељ
комит
b8aa74f212
1 измењених фајлова са 7 додато и 1 уклоњено
  1. 7
    1
      react/features/large-video/middleware.js

+ 7
- 1
react/features/large-video/middleware.js Прегледај датотеку

@@ -38,7 +38,6 @@ MiddlewareRegistry.register(store => next => action => {
38 38
 
39 39
         break;
40 40
     }
41
-    case CONFERENCE_JOINED:
42 41
     case PARTICIPANT_JOINED:
43 42
     case PARTICIPANT_LEFT:
44 43
     case PIN_PARTICIPANT:
@@ -47,6 +46,13 @@ MiddlewareRegistry.register(store => next => action => {
47 46
         store.dispatch(selectParticipantInLargeVideo());
48 47
         break;
49 48
 
49
+    case CONFERENCE_JOINED:
50
+        // Ensure a participant is selected on conference join. This addresses
51
+        // the case where video tracks were received before CONFERENCE_JOINED
52
+        // fired; without the conference selection may not happen.
53
+        store.dispatch(selectParticipant());
54
+        break;
55
+
50 56
     case TRACK_UPDATED:
51 57
         // In order to minimize re-calculations, we need to select participant
52 58
         // only if the videoType of the current participant rendered in

Loading…
Откажи
Сачувај