Raise Hand in Group Calls

This commit is contained in:
ayumi-signal 2023-12-06 13:52:29 -08:00 committed by GitHub
parent 45aeaeefd4
commit d6db3f7943
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
33 changed files with 1050 additions and 51 deletions

View file

@ -38,10 +38,12 @@ const createProps = (
isBlocked = false,
hasRemoteAudio = false,
presenting = false,
isHandRaised = false,
}: {
isBlocked?: boolean;
hasRemoteAudio?: boolean;
presenting?: boolean;
isHandRaised?: boolean;
} = {}
): PropsType => ({
getFrameBuffer,
@ -55,6 +57,7 @@ const createProps = (
demuxId: 123,
hasRemoteAudio,
hasRemoteVideo: true,
isHandRaised,
presenting,
sharingScreen: false,
videoAspectRatio: 1.3,
@ -119,6 +122,23 @@ export function Speaking(): JSX.Element {
);
}
export function HandRaised(): JSX.Element {
return (
<GroupCallRemoteParticipant
{...createProps(
{
isInPip: false,
height: 120,
left: 0,
top: 0,
width: 120,
},
{ isHandRaised: true }
)}
/>
);
}
export function IsInPip(): JSX.Element {
return (
<GroupCallRemoteParticipant