Group calling enhancements

This commit is contained in:
Josh Perez
2020-11-17 10:07:53 -05:00
committed by Josh Perez
parent 72e4ec95ce
commit 1f0c091e13
27 changed files with 1038 additions and 451 deletions

View File

@@ -1,10 +1,12 @@
// Copyright 2020 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import { ColorType } from './Colors';
export enum CallMode {
None,
Direct,
Group,
None = 'None',
Direct = 'Direct',
Group = 'Group',
}
// Ideally, we would import many of these directly from RingRTC. But because Storybook
@@ -56,6 +58,17 @@ export enum GroupCallJoinState {
Joined = 2,
}
export interface GroupCallRemoteParticipantType {
avatarPath?: string;
color?: ColorType;
firstName?: string;
hasRemoteAudio: boolean;
hasRemoteVideo: boolean;
isSelf: boolean;
profileName?: string;
title: string;
}
// Should match RingRTC's CanvasVideoRenderer
interface Ref<T> {
readonly current: T | null;