Bläddra i källkod

feat: Allows jvb to control DTLS/SRTP protection profile. (#7626)

* feat: Allows jvb to control DTLS/SRTP protection profile.

* test: Adds dominant speaker change print for large in testing mode.
j8
Дамян Минков 4 år sedan
förälder
incheckning
651d713206
Inget konto är kopplat till bidragsgivarens mejladress
4 ändrade filer med 16 tillägg och 4 borttagningar
  1. 2
    2
      package-lock.json
  2. 1
    1
      package.json
  3. 5
    0
      react/features/large-video/logger.js
  4. 8
    1
      react/features/large-video/middleware.js

+ 2
- 2
package-lock.json Visa fil

@@ -10952,8 +10952,8 @@
10952 10952
       }
10953 10953
     },
10954 10954
     "lib-jitsi-meet": {
10955
-      "version": "github:jitsi/lib-jitsi-meet#65df5b1da6bb6934e9d42f50d95aae0df6a5fd90",
10956
-      "from": "github:jitsi/lib-jitsi-meet#65df5b1da6bb6934e9d42f50d95aae0df6a5fd90",
10955
+      "version": "github:jitsi/lib-jitsi-meet#94318fce12c855aefefdf8586bc8772065b505c9",
10956
+      "from": "github:jitsi/lib-jitsi-meet#94318fce12c855aefefdf8586bc8772065b505c9",
10957 10957
       "requires": {
10958 10958
         "@jitsi/js-utils": "1.0.0",
10959 10959
         "@jitsi/sdp-interop": "1.0.3",

+ 1
- 1
package.json Visa fil

@@ -56,7 +56,7 @@
56 56
     "jquery-i18next": "1.2.1",
57 57
     "js-md5": "0.6.1",
58 58
     "jwt-decode": "2.2.0",
59
-    "lib-jitsi-meet": "github:jitsi/lib-jitsi-meet#65df5b1da6bb6934e9d42f50d95aae0df6a5fd90",
59
+    "lib-jitsi-meet": "github:jitsi/lib-jitsi-meet#94318fce12c855aefefdf8586bc8772065b505c9",
60 60
     "libflacjs": "github:mmig/libflac.js#93d37e7f811f01cf7d8b6a603e38bd3c3810907d",
61 61
     "lodash": "4.17.19",
62 62
     "moment": "2.19.4",

+ 5
- 0
react/features/large-video/logger.js Visa fil

@@ -0,0 +1,5 @@
1
+// @flow
2
+
3
+import { getLogger } from '../base/logging/functions';
4
+
5
+export default getLogger('features/large-video');

+ 8
- 1
react/features/large-video/middleware.js Visa fil

@@ -9,6 +9,7 @@ import {
9 9
     getLocalParticipant
10 10
 } from '../base/participants';
11 11
 import { MiddlewareRegistry } from '../base/redux';
12
+import { isTestModeEnabled } from '../base/testing';
12 13
 import {
13 14
     getTrackByJitsiTrack,
14 15
     TRACK_ADDED,
@@ -17,6 +18,7 @@ import {
17 18
 } from '../base/tracks';
18 19
 
19 20
 import { selectParticipant, selectParticipantInLargeVideo } from './actions';
21
+import logger from './logger';
20 22
 
21 23
 import './subscriber';
22 24
 
@@ -32,7 +34,12 @@ MiddlewareRegistry.register(store => next => action => {
32 34
 
33 35
     switch (action.type) {
34 36
     case DOMINANT_SPEAKER_CHANGED: {
35
-        const localParticipant = getLocalParticipant(store.getState());
37
+        const state = store.getState();
38
+        const localParticipant = getLocalParticipant(state);
39
+
40
+        if (isTestModeEnabled(state)) {
41
+            logger.info(`Dominant speaker changed event for: ${action.participant.id}`);
42
+        }
36 43
 
37 44
         if (localParticipant && localParticipant.id !== action.participant.id) {
38 45
             store.dispatch(selectParticipantInLargeVideo());

Laddar…
Avbryt
Spara