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": {
|
||||
"version": "github:jitsi/lib-jitsi-meet#65df5b1da6bb6934e9d42f50d95aae0df6a5fd90",
|
||||
"from": "github:jitsi/lib-jitsi-meet#65df5b1da6bb6934e9d42f50d95aae0df6a5fd90",
|
||||
"version": "github:jitsi/lib-jitsi-meet#94318fce12c855aefefdf8586bc8772065b505c9",
|
||||
"from": "github:jitsi/lib-jitsi-meet#94318fce12c855aefefdf8586bc8772065b505c9",
|
||||
"requires": {
|
||||
"@jitsi/js-utils": "1.0.0",
|
||||
"@jitsi/sdp-interop": "1.0.3",
|
||||
|
|
|
@ -56,7 +56,7 @@
|
|||
"jquery-i18next": "1.2.1",
|
||||
"js-md5": "0.6.1",
|
||||
"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",
|
||||
"lodash": "4.17.19",
|
||||
"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
|
||||
} from '../base/participants';
|
||||
import { MiddlewareRegistry } from '../base/redux';
|
||||
import { isTestModeEnabled } from '../base/testing';
|
||||
import {
|
||||
getTrackByJitsiTrack,
|
||||
TRACK_ADDED,
|
||||
|
@ -17,6 +18,7 @@ import {
|
|||
} from '../base/tracks';
|
||||
|
||||
import { selectParticipant, selectParticipantInLargeVideo } from './actions';
|
||||
import logger from './logger';
|
||||
|
||||
import './subscriber';
|
||||
|
||||
|
@ -32,7 +34,12 @@ MiddlewareRegistry.register(store => next => action => {
|
|||
|
||||
switch (action.type) {
|
||||
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) {
|
||||
store.dispatch(selectParticipantInLargeVideo());
|
||||
|
|
Loading…
Reference in New Issue