Dynamic audio level indicator

This commit is contained in:
Fedor Indutny 2022-05-18 20:28:51 -07:00 committed by GitHub
parent ac59dec5aa
commit e6223b6a11
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
24 changed files with 323 additions and 123 deletions

View file

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