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.
This commit is contained in:
parent
9e5f469e0c
commit
651d713206
|
@ -10952,8 +10952,8 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"lib-jitsi-meet": {
|
"lib-jitsi-meet": {
|
||||||
"version": "github:jitsi/lib-jitsi-meet#65df5b1da6bb6934e9d42f50d95aae0df6a5fd90",
|
"version": "github:jitsi/lib-jitsi-meet#94318fce12c855aefefdf8586bc8772065b505c9",
|
||||||
"from": "github:jitsi/lib-jitsi-meet#65df5b1da6bb6934e9d42f50d95aae0df6a5fd90",
|
"from": "github:jitsi/lib-jitsi-meet#94318fce12c855aefefdf8586bc8772065b505c9",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@jitsi/js-utils": "1.0.0",
|
"@jitsi/js-utils": "1.0.0",
|
||||||
"@jitsi/sdp-interop": "1.0.3",
|
"@jitsi/sdp-interop": "1.0.3",
|
||||||
|
|
|
@ -56,7 +56,7 @@
|
||||||
"jquery-i18next": "1.2.1",
|
"jquery-i18next": "1.2.1",
|
||||||
"js-md5": "0.6.1",
|
"js-md5": "0.6.1",
|
||||||
"jwt-decode": "2.2.0",
|
"jwt-decode": "2.2.0",
|
||||||
"lib-jitsi-meet": "github:jitsi/lib-jitsi-meet#65df5b1da6bb6934e9d42f50d95aae0df6a5fd90",
|
"lib-jitsi-meet": "github:jitsi/lib-jitsi-meet#94318fce12c855aefefdf8586bc8772065b505c9",
|
||||||
"libflacjs": "github:mmig/libflac.js#93d37e7f811f01cf7d8b6a603e38bd3c3810907d",
|
"libflacjs": "github:mmig/libflac.js#93d37e7f811f01cf7d8b6a603e38bd3c3810907d",
|
||||||
"lodash": "4.17.19",
|
"lodash": "4.17.19",
|
||||||
"moment": "2.19.4",
|
"moment": "2.19.4",
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
// @flow
|
||||||
|
|
||||||
|
import { getLogger } from '../base/logging/functions';
|
||||||
|
|
||||||
|
export default getLogger('features/large-video');
|
|
@ -9,6 +9,7 @@ import {
|
||||||
getLocalParticipant
|
getLocalParticipant
|
||||||
} from '../base/participants';
|
} from '../base/participants';
|
||||||
import { MiddlewareRegistry } from '../base/redux';
|
import { MiddlewareRegistry } from '../base/redux';
|
||||||
|
import { isTestModeEnabled } from '../base/testing';
|
||||||
import {
|
import {
|
||||||
getTrackByJitsiTrack,
|
getTrackByJitsiTrack,
|
||||||
TRACK_ADDED,
|
TRACK_ADDED,
|
||||||
|
@ -17,6 +18,7 @@ import {
|
||||||
} from '../base/tracks';
|
} from '../base/tracks';
|
||||||
|
|
||||||
import { selectParticipant, selectParticipantInLargeVideo } from './actions';
|
import { selectParticipant, selectParticipantInLargeVideo } from './actions';
|
||||||
|
import logger from './logger';
|
||||||
|
|
||||||
import './subscriber';
|
import './subscriber';
|
||||||
|
|
||||||
|
@ -32,7 +34,12 @@ MiddlewareRegistry.register(store => next => action => {
|
||||||
|
|
||||||
switch (action.type) {
|
switch (action.type) {
|
||||||
case DOMINANT_SPEAKER_CHANGED: {
|
case DOMINANT_SPEAKER_CHANGED: {
|
||||||
const localParticipant = getLocalParticipant(store.getState());
|
const state = store.getState();
|
||||||
|
const localParticipant = getLocalParticipant(state);
|
||||||
|
|
||||||
|
if (isTestModeEnabled(state)) {
|
||||||
|
logger.info(`Dominant speaker changed event for: ${action.participant.id}`);
|
||||||
|
}
|
||||||
|
|
||||||
if (localParticipant && localParticipant.id !== action.participant.id) {
|
if (localParticipant && localParticipant.id !== action.participant.id) {
|
||||||
store.dispatch(selectParticipantInLargeVideo());
|
store.dispatch(selectParticipantInLargeVideo());
|
||||||
|
|
Loading…
Reference in New Issue