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

@ -76,7 +76,10 @@ export type PropsType = {
activeCall: ActiveCallType;
getGroupCallVideoFrameSource: (demuxId: number) => VideoFrameSource;
i18n: LocalizerType;
setGroupCallVideoRequest: (_: Array<GroupCallVideoRequest>) => void;
setGroupCallVideoRequest: (
_: Array<GroupCallVideoRequest>,
speakerHeight: number
) => void;
setRendererCanvas: (_: SetRendererCanvasType) => void;
};
@ -124,11 +127,13 @@ export const CallingPipRemoteVideo = ({
};
}
return nonRenderedRemoteParticipant(participant);
})
}),
PIP_VIDEO_HEIGHT_PX
);
} else {
setGroupCallVideoRequest(
activeCall.remoteParticipants.map(nonRenderedRemoteParticipant)
activeCall.remoteParticipants.map(nonRenderedRemoteParticipant),
0
);
}
}, [