-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.d.ts
49 lines (45 loc) · 851 Bytes
/
index.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
export class FakeMediaStreamTrack extends MediaStreamTrack {
/**
* Custom constructor.
*/
constructor(
{
kind,
id,
label,
isolated,
muted,
readyState,
data
}:
{
kind: 'audio' | 'video';
id?: string;
label?: string;
isolated?: boolean;
muted?: boolean;
readyState?: 'live' | 'ended';
constraints?: MediaTrackConstraints;
data?: any;
}
);
/**
* Returns custom application data.
*/
get data(): any;
/**
* Emulates a stop generated remotely. It will fired "ended" event if not
* already stopped.
*/
remoteStop(): void;
/**
* Emulates a mute generated remotely. It will fired "mute" event if not
* already muted.
*/
remoteMute(): void;
/**
* Emulates a unmute generated remotely. It will fired "unmute" event if not
* already unmuted.
*/
remoteUnmute(): void;
}