livekit-client 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,83 @@
1
+ /* eslint-disable @typescript-eslint/no-unused-vars */
2
+ export default class MockMediaStreamTrack implements MediaStreamTrack {
3
+ contentHint: string = '';
4
+
5
+ enabled: boolean = true;
6
+
7
+ id: string = 'id';
8
+
9
+ kind: string = 'video';
10
+
11
+ label: string = 'label';
12
+
13
+ muted: boolean = false;
14
+
15
+ onended: ((this: MediaStreamTrack, ev: Event) => any) | null = null;
16
+
17
+ onmute: ((this: MediaStreamTrack, ev: Event) => any) | null = null;
18
+
19
+ onunmute: ((this: MediaStreamTrack, ev: Event) => any) | null = null;
20
+
21
+ readyState: MediaStreamTrackState = 'live';
22
+
23
+ isolated: boolean = false;
24
+
25
+ onisolationchange: ((this: MediaStreamTrack, ev: Event) => any) | null = null;
26
+
27
+ // @ts-ignore
28
+ applyConstraints(constraints?: MediaTrackConstraints): Promise<void> {
29
+ throw new Error('Method not implemented.');
30
+ }
31
+
32
+ clone(): MediaStreamTrack {
33
+ throw new Error('Method not implemented.');
34
+ }
35
+
36
+ getCapabilities(): MediaTrackCapabilities {
37
+ throw new Error('Method not implemented.');
38
+ }
39
+
40
+ getConstraints(): MediaTrackConstraints {
41
+ throw new Error('Method not implemented.');
42
+ }
43
+
44
+ getSettings(): MediaTrackSettings {
45
+ throw new Error('Method not implemented.');
46
+ }
47
+
48
+ stop(): void {
49
+ throw new Error('Method not implemented.');
50
+ }
51
+
52
+ addEventListener<K extends keyof MediaStreamTrackEventMap>(
53
+ type: K,
54
+ listener: (this: MediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any,
55
+ options?: boolean | AddEventListenerOptions,
56
+ ): void;
57
+ addEventListener(
58
+ type: string,
59
+ listener: EventListenerOrEventListenerObject,
60
+ options?: boolean | AddEventListenerOptions,
61
+ ): void;
62
+ addEventListener(type: any, listener: any, options?: any): void {
63
+ throw new Error('Method not implemented.');
64
+ }
65
+
66
+ removeEventListener<K extends keyof MediaStreamTrackEventMap>(
67
+ type: K,
68
+ listener: (this: MediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any,
69
+ options?: boolean | EventListenerOptions,
70
+ ): void;
71
+ removeEventListener(
72
+ type: string,
73
+ listener: EventListenerOrEventListenerObject,
74
+ options?: boolean | EventListenerOptions,
75
+ ): void;
76
+ removeEventListener(type: any, listener: any, options?: any): void {
77
+ throw new Error('Method not implemented.');
78
+ }
79
+
80
+ dispatchEvent(event: Event): boolean {
81
+ throw new Error('Method not implemented.');
82
+ }
83
+ }
package/src/version.ts CHANGED
@@ -1,2 +1,2 @@
1
- export const version = '1.0.0';
1
+ export const version = '1.0.1';
2
2
  export const protocolVersion = 7;