Restore call view mode after presentation end

This commit is contained in:
Fedor Indutny 2022-05-25 11:03:27 -07:00 committed by GitHub
parent 9e1528fa24
commit 80c90540f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 289 additions and 51 deletions

View file

@ -11,6 +11,14 @@ export enum CallMode {
Group = 'Group',
}
// Speaker and Presentation has the same UI, but Presentation mode will switch
// to Grid mode when the presentation is over.
export enum CallViewMode {
Grid = 'Grid',
Speaker = 'Speaker',
Presentation = 'Presentation',
}
export type PresentableSource = {
appIcon?: string;
id: string;
@ -29,7 +37,7 @@ type ActiveCallBaseType = {
hasLocalAudio: boolean;
hasLocalVideo: boolean;
localAudioLevel: number;
isInSpeakerView: boolean;
viewMode: CallViewMode;
isSharingScreen?: boolean;
joinedAt?: number;
outgoingRing: boolean;