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
24 changed files with 323 additions and 123 deletions

View File

@@ -28,7 +28,7 @@ type ActiveCallBaseType = {
conversation: ConversationType;
hasLocalAudio: boolean;
hasLocalVideo: boolean;
amISpeaking: boolean;
localAudioLevel: number;
isInSpeakerView: boolean;
isSharingScreen?: boolean;
joinedAt?: number;
@@ -66,7 +66,7 @@ type ActiveGroupCallType = ActiveCallBaseType & {
groupMembers: Array<Pick<ConversationType, 'id' | 'firstName' | 'title'>>;
peekedParticipants: Array<ConversationType>;
remoteParticipants: Array<GroupCallRemoteParticipantType>;
speakingDemuxIds: Set<number>;
remoteAudioLevels: Map<number, number>;
};
export type ActiveCallType = ActiveDirectCallType | ActiveGroupCallType;