Put "is speaking?" threshold in remote config; lower default

This commit is contained in:
Evan Hahn 2022-03-01 17:39:09 -06:00 committed by GitHub
parent 2b0c98f943
commit cfa0711909
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 39 additions and 6 deletions

View file

@ -37,6 +37,7 @@ import {
} from 'ringrtc';
import { uniqBy, noop } from 'lodash';
import * as RemoteConfig from '../RemoteConfig';
import type {
ActionsType as UxActionsType,
GroupCallParticipantInfoType,
@ -62,6 +63,7 @@ import {
getAudioDeviceModule,
parseAudioDeviceModule,
} from '../calling/audioDeviceModule';
import { getAudioLevelForSpeaking } from '../calling/getAudioLevelForSpeaking';
import {
findBestMatchingAudioDeviceIndex,
findBestMatchingCameraId,
@ -682,6 +684,9 @@ export class CallingClass {
const localAudioLevel = groupCall.getLocalDeviceState().audioLevel;
this.uxActions?.groupCallAudioLevelsChange({
audioLevelForSpeaking: getAudioLevelForSpeaking(
RemoteConfig.getValue
),
conversationId,
localAudioLevel,
remoteDeviceStates,