This repository has been archived by the owner on Oct 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
types.ts
138 lines (124 loc) · 2.93 KB
/
types.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
import { ColorsVariables } from '../../common/types/colors.types';
import { MeetingEvent, RealtimeEvent } from '../../common/types/events.types';
import type { Avatar } from '../../common/types/participant.types';
import { BrowserService } from '../browser';
import { ComponentLimits } from '../limits/types';
export interface VideoManagerOptions {
language?: string;
canUseChat: boolean;
canUseCams: boolean;
canShowAudienceList: boolean;
canUseTranscription: boolean;
canUseScreenshare: boolean;
canUseDefaultAvatars: boolean;
canUseGather: boolean;
canUseFollow: boolean;
canUseGoTo: boolean;
canUseDefaultToolbar: boolean;
camerasPosition: CamerasPosition;
devices: {
audioInput: boolean;
audioOutput: boolean;
videoInput: boolean;
};
skipMeetingSettings: boolean;
browserService: BrowserService;
collaborationMode: boolean;
offset?: Offset;
locales?: Locale[];
avatars?: Avatar[];
customColors?: ColorsVariables;
waterMark?: boolean;
layoutPosition?: LayoutPosition;
layoutMode?: LayoutMode;
}
export interface WindowSize {
height: number;
width: number;
}
export interface Offset {
top: number;
bottom: number;
left: number;
right: number;
}
export interface FrameLocale {
language?: string;
locales: Locale[];
}
export interface FrameConfig {
apiKey: string;
apiUrl: string;
ablyKey: string;
roomId: string;
debug: boolean;
limits: ComponentLimits;
canShowAudienceList: boolean;
canUseChat: boolean;
canUseCams: boolean;
canUseScreenshare: boolean;
canUseDefaultAvatars: boolean;
canUseTranscription: boolean;
canUseFollow: boolean;
canUseGoTo: boolean;
canUseGather: boolean;
canUseDefaultToolbar: boolean;
camerasPosition: CamerasPosition;
devices: DevicesConfig;
waterMark: boolean;
skipMeetingSettings: boolean;
layoutPosition: LayoutPosition;
layoutMode?: LayoutMode;
collaborationMode: boolean;
}
export interface DevicesConfig {
audioInput: boolean;
audioOutput: boolean;
videoInput: boolean;
}
export interface Locale {
language: string;
messages: Record<string, string | Record<string, string>>;
}
export interface LayoutModalsAndCameras {
layoutPosition: LayoutPosition;
camerasPosition: CamerasPosition;
}
export interface DrawingData {
name: string;
lineColor: string;
textColor: string;
pencil: string;
clickX?: number[];
clickY?: number[];
clickDrag?: boolean[];
drawingWidth: number;
drawingHeight: number;
externalClickX: number;
externalClickY: number;
fadeOut: boolean;
}
export interface RealtimeObserverPayload {
event: RealtimeEvent | MeetingEvent;
data: unknown;
}
export enum LayoutPosition {
RIGHT = 'right',
CENTER = 'center',
LEFT = 'left',
}
export enum LayoutMode {
GRID = 'grid',
LIST = 'list',
}
export enum CamerasPosition {
RIGHT = 'right',
LEFT = 'left',
TOP = 'top',
BOTTOM = 'bottom',
}
export enum VideoFrameState {
UNINITIALIZED,
INITIALIZING,
INITIALIZED,
}