Add screensharing behind a feature flag

This commit is contained in:
Josh Perez
2021-05-20 17:54:03 -04:00
committed by Scott Nonnenberg
parent 7c7f7ee5a0
commit ceffc2380c
49 changed files with 2044 additions and 164 deletions

View File

@@ -10,16 +10,31 @@ export enum CallMode {
Group = 'Group',
}
export type PresentableSource = {
appIcon?: string;
id: string;
name: string;
thumbnail: string;
};
export type PresentedSource = {
id: string;
name: string;
};
type ActiveCallBaseType = {
conversation: ConversationType;
hasLocalAudio: boolean;
hasLocalVideo: boolean;
isInSpeakerView: boolean;
isSharingScreen?: boolean;
joinedAt?: number;
pip: boolean;
presentingSource?: PresentedSource;
presentingSourcesAvailable?: Array<PresentableSource>;
settingsDialogOpen: boolean;
showNeedsScreenRecordingPermissionsWarning?: boolean;
showParticipantsList: boolean;
showSafetyNumberDialog?: boolean;
};
type ActiveDirectCallType = ActiveCallBaseType & {
@@ -30,6 +45,9 @@ type ActiveDirectCallType = ActiveCallBaseType & {
remoteParticipants: [
{
hasRemoteVideo: boolean;
presenting: boolean;
title: string;
uuid?: string;
}
];
};
@@ -100,6 +118,8 @@ export type GroupCallRemoteParticipantType = ConversationType & {
demuxId: number;
hasRemoteAudio: boolean;
hasRemoteVideo: boolean;
presenting: boolean;
sharingScreen: boolean;
speakerTime?: number;
videoAspectRatio: number;
};