@opentok/client 2.22.3 → 2.22.4
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 +12 -1
- package/dist/js/opentok.js +1788 -1352
- package/dist/js/opentok.js.map +1 -1
- package/dist/js/opentok.min.js +6 -6
- package/dist/js/opentok.min.js.map +1 -1
- package/package.json +1 -1
package/dist/js/opentok.d.ts
CHANGED
|
@@ -78,6 +78,7 @@ declare namespace OT {
|
|
|
78
78
|
frameRate?: 30 | 15 | 7 | 1;
|
|
79
79
|
maxResolution?: Dimensions;
|
|
80
80
|
resolution?: (
|
|
81
|
+
'1920x1080' |
|
|
81
82
|
'1280x960' |
|
|
82
83
|
'1280x720' |
|
|
83
84
|
'640x480' |
|
|
@@ -104,6 +105,7 @@ declare namespace OT {
|
|
|
104
105
|
name?: string;
|
|
105
106
|
publishAudio?: boolean;
|
|
106
107
|
publishVideo?: boolean;
|
|
108
|
+
publishCaptions?: boolean;
|
|
107
109
|
scalableScreenshare?: boolean;
|
|
108
110
|
style?: Partial<PublisherStyle>;
|
|
109
111
|
videoContentHint?: VideoContentHint;
|
|
@@ -144,7 +146,7 @@ declare namespace OT {
|
|
|
144
146
|
width: number;
|
|
145
147
|
height: number;
|
|
146
148
|
};
|
|
147
|
-
videoType: 'camera' | 'screen';
|
|
149
|
+
videoType: 'camera' | 'screen' | 'custom' | undefined;
|
|
148
150
|
}
|
|
149
151
|
|
|
150
152
|
export type Event<Type, Target> = {
|
|
@@ -269,6 +271,7 @@ declare namespace OT {
|
|
|
269
271
|
clearVideoFilter(): Promise<void>;
|
|
270
272
|
publishAudio(value: boolean): void;
|
|
271
273
|
publishVideo(value: boolean): void;
|
|
274
|
+
publishCaptions(value: boolean): void;
|
|
272
275
|
cycleVideo(): Promise<{ deviceId: string }>;
|
|
273
276
|
setAudioSource(audioSource:string | MediaStreamTrack): Promise<undefined>;
|
|
274
277
|
getAudioSource(): MediaStreamTrack;
|
|
@@ -470,6 +473,11 @@ declare namespace OT {
|
|
|
470
473
|
|
|
471
474
|
connected: Event<'connected', Subscriber>;
|
|
472
475
|
|
|
476
|
+
captionReceived: Event<'captionReceived', Subscriber> & {
|
|
477
|
+
streamId: string;
|
|
478
|
+
caption: string;
|
|
479
|
+
};
|
|
480
|
+
|
|
473
481
|
destroyed: Event<'destroyed', Subscriber> & {
|
|
474
482
|
reason: string;
|
|
475
483
|
};
|
|
@@ -499,6 +507,9 @@ declare namespace OT {
|
|
|
499
507
|
getImgData(): string | null;
|
|
500
508
|
getStats(callback: (error?: OTError, stats?: SubscriberStats) => void): void;
|
|
501
509
|
getRtcStatsReport(): Promise<RTCStatsReport>;
|
|
510
|
+
subscribeToCaptions(value: boolean): Promise<void>;
|
|
511
|
+
isSubscribedToCaptions(): boolean;
|
|
512
|
+
isAudioBlocked(): boolean;
|
|
502
513
|
restrictFrameRate(value: boolean): void;
|
|
503
514
|
setAudioVolume(volume: number): void;
|
|
504
515
|
setPreferredFrameRate(frameRate: number): void;
|