Provide speakerHeight to ringrtc

This commit is contained in:
Fedor Indutny 2022-09-07 08:52:55 -07:00 committed by Fedor Indutnyy
parent 618a7725fe
commit 55a5c51236
7 changed files with 29 additions and 11 deletions

View file

@ -48,7 +48,10 @@ type PropsType = {
i18n: LocalizerType;
isInSpeakerView: boolean;
remoteParticipants: ReadonlyArray<GroupCallRemoteParticipantType>;
setGroupCallVideoRequest: (_: Array<GroupCallVideoRequest>) => void;
setGroupCallVideoRequest: (
_: Array<GroupCallVideoRequest>,
speakerHeight: number
) => void;
remoteAudioLevels: Map<number, number>;
};
@ -377,7 +380,7 @@ export const GroupCallRemoteParticipants: React.FC<PropsType> = ({
break;
}
setGroupCallVideoRequest(videoRequest);
setGroupCallVideoRequest(videoRequest, gridParticipantHeight);
}, [
devicePixelRatio,
gridParticipantHeight,