forked from howardchung/watchparty
-
Notifications
You must be signed in to change notification settings - Fork 0
/
global.d.ts
64 lines (55 loc) · 1.14 KB
/
global.d.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
declare module 'youtube-api';
declare module 'moniker';
declare module 'react-semantic-ui-range';
declare module 'xml2js';
type StringDict = { [key: string]: string };
type NumberDict = { [key: string]: number };
type PCDict = { [key: string]: RTCPeerConnection };
type MediaType = 'vbrowser' | 'screenshare' | 'video' | 'youtube';
interface User {
id: string;
isVideoChat?: boolean;
isScreenShare?: boolean;
}
interface ChatMessageBase {
id: string;
cmd?: string;
msg: string;
system?: boolean;
}
interface ChatMessage extends ChatMessageBase {
timestamp: string;
videoTS?: number;
}
interface SearchResult {
name: string;
url: string;
size?: string;
seeders?: string;
magnet?: string;
img?: string;
}
interface Settings {
mediaPath?: string;
streamPath?: string;
disableChatSound?: boolean;
}
interface PlaylistVideo {
url: string;
name: string;
img?: string;
channel: string;
duration: string;
}
interface HostState {
video: string;
videoTS: number;
subtitle: string;
paused: boolean;
isVBrowserLarge: boolean;
controller?: string;
}
interface PermanentRoom {
roomId: string;
vanity: string;
}