@opentok/client 2.22.3 → 2.23.0
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.
- package/dist/js/opentok.d.ts +15 -1
- package/dist/js/opentok.js +6085 -5380
- package/dist/js/opentok.js.map +1 -1
- package/dist/js/opentok.min.js +7 -7
- package/dist/js/opentok.min.js.map +1 -1
- package/package.json +1 -1
package/dist/js/opentok.d.ts
CHANGED
|
@@ -48,6 +48,8 @@ declare namespace OT {
|
|
|
48
48
|
|
|
49
49
|
export function getSupportedCodecs(): Promise<{ videoEncoders: ('H264' | 'VP8')[], videoDecoders: ('H264' | 'VP8')[] }>;
|
|
50
50
|
|
|
51
|
+
export function hasMediaProcessorSupport(): boolean;
|
|
52
|
+
|
|
51
53
|
export type WidgetStyle = {
|
|
52
54
|
audioLevelDisplayMode: 'auto' | 'on' | 'off';
|
|
53
55
|
backgroundImageURI: string;
|
|
@@ -78,6 +80,7 @@ declare namespace OT {
|
|
|
78
80
|
frameRate?: 30 | 15 | 7 | 1;
|
|
79
81
|
maxResolution?: Dimensions;
|
|
80
82
|
resolution?: (
|
|
83
|
+
'1920x1080' |
|
|
81
84
|
'1280x960' |
|
|
82
85
|
'1280x720' |
|
|
83
86
|
'640x480' |
|
|
@@ -104,10 +107,12 @@ declare namespace OT {
|
|
|
104
107
|
name?: string;
|
|
105
108
|
publishAudio?: boolean;
|
|
106
109
|
publishVideo?: boolean;
|
|
110
|
+
publishCaptions?: boolean;
|
|
107
111
|
scalableScreenshare?: boolean;
|
|
108
112
|
style?: Partial<PublisherStyle>;
|
|
109
113
|
videoContentHint?: VideoContentHint;
|
|
110
114
|
enableDtx?: boolean;
|
|
115
|
+
enableStereo?: boolean;
|
|
111
116
|
videoFilter?: VideoFilter;
|
|
112
117
|
};
|
|
113
118
|
|
|
@@ -144,7 +149,7 @@ declare namespace OT {
|
|
|
144
149
|
width: number;
|
|
145
150
|
height: number;
|
|
146
151
|
};
|
|
147
|
-
videoType: 'camera' | 'screen';
|
|
152
|
+
videoType: 'camera' | 'screen' | 'custom' | undefined;
|
|
148
153
|
}
|
|
149
154
|
|
|
150
155
|
export type Event<Type, Target> = {
|
|
@@ -269,6 +274,7 @@ declare namespace OT {
|
|
|
269
274
|
clearVideoFilter(): Promise<void>;
|
|
270
275
|
publishAudio(value: boolean): void;
|
|
271
276
|
publishVideo(value: boolean): void;
|
|
277
|
+
publishCaptions(value: boolean): void;
|
|
272
278
|
cycleVideo(): Promise<{ deviceId: string }>;
|
|
273
279
|
setAudioSource(audioSource:string | MediaStreamTrack): Promise<undefined>;
|
|
274
280
|
getAudioSource(): MediaStreamTrack;
|
|
@@ -470,6 +476,11 @@ declare namespace OT {
|
|
|
470
476
|
|
|
471
477
|
connected: Event<'connected', Subscriber>;
|
|
472
478
|
|
|
479
|
+
captionReceived: Event<'captionReceived', Subscriber> & {
|
|
480
|
+
streamId: string;
|
|
481
|
+
caption: string;
|
|
482
|
+
};
|
|
483
|
+
|
|
473
484
|
destroyed: Event<'destroyed', Subscriber> & {
|
|
474
485
|
reason: string;
|
|
475
486
|
};
|
|
@@ -499,6 +510,9 @@ declare namespace OT {
|
|
|
499
510
|
getImgData(): string | null;
|
|
500
511
|
getStats(callback: (error?: OTError, stats?: SubscriberStats) => void): void;
|
|
501
512
|
getRtcStatsReport(): Promise<RTCStatsReport>;
|
|
513
|
+
subscribeToCaptions(value: boolean): Promise<void>;
|
|
514
|
+
isSubscribedToCaptions(): boolean;
|
|
515
|
+
isAudioBlocked(): boolean;
|
|
502
516
|
restrictFrameRate(value: boolean): void;
|
|
503
517
|
setAudioVolume(volume: number): void;
|
|
504
518
|
setPreferredFrameRate(frameRate: number): void;
|