livekit-client 2.5.0 → 2.5.2
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +4 -0
- package/dist/livekit-client.e2ee.worker.js +1 -1
- package/dist/livekit-client.e2ee.worker.js.map +1 -1
- package/dist/livekit-client.e2ee.worker.mjs +4 -2
- package/dist/livekit-client.e2ee.worker.mjs.map +1 -1
- package/dist/livekit-client.esm.mjs +517 -269
- package/dist/livekit-client.esm.mjs.map +1 -1
- package/dist/livekit-client.umd.js +1 -1
- package/dist/livekit-client.umd.js.map +1 -1
- package/dist/src/e2ee/worker/FrameCryptor.d.ts.map +1 -1
- package/dist/src/room/PCTransport.d.ts.map +1 -1
- package/dist/src/room/PCTransportManager.d.ts +1 -0
- package/dist/src/room/PCTransportManager.d.ts.map +1 -1
- package/dist/src/room/Room.d.ts +8 -3
- package/dist/src/room/Room.d.ts.map +1 -1
- package/dist/src/room/events.d.ts +10 -2
- package/dist/src/room/events.d.ts.map +1 -1
- package/dist/src/room/participant/LocalParticipant.d.ts +4 -1
- package/dist/src/room/participant/LocalParticipant.d.ts.map +1 -1
- package/dist/src/room/participant/Participant.d.ts +1 -0
- package/dist/src/room/participant/Participant.d.ts.map +1 -1
- package/dist/src/room/timers.d.ts +4 -4
- package/dist/src/room/timers.d.ts.map +1 -1
- package/dist/src/room/track/LocalTrack.d.ts +1 -1
- package/dist/src/room/track/LocalTrack.d.ts.map +1 -1
- package/dist/src/room/track/create.d.ts +7 -0
- package/dist/src/room/track/create.d.ts.map +1 -1
- package/dist/src/room/track/options.d.ts +1 -1
- package/dist/src/room/types.d.ts +2 -0
- package/dist/src/room/types.d.ts.map +1 -1
- package/dist/src/room/utils.d.ts +1 -1
- package/dist/src/room/utils.d.ts.map +1 -1
- package/dist/ts4.2/src/room/PCTransportManager.d.ts +1 -0
- package/dist/ts4.2/src/room/Room.d.ts +8 -3
- package/dist/ts4.2/src/room/events.d.ts +10 -2
- package/dist/ts4.2/src/room/participant/LocalParticipant.d.ts +4 -1
- package/dist/ts4.2/src/room/participant/Participant.d.ts +1 -0
- package/dist/ts4.2/src/room/timers.d.ts +4 -4
- package/dist/ts4.2/src/room/track/LocalTrack.d.ts +1 -1
- package/dist/ts4.2/src/room/track/create.d.ts +7 -0
- package/dist/ts4.2/src/room/track/options.d.ts +1 -1
- package/dist/ts4.2/src/room/types.d.ts +2 -0
- package/dist/ts4.2/src/room/utils.d.ts +1 -1
- package/package.json +9 -9
- package/src/connectionHelper/checks/Checker.ts +1 -1
- package/src/e2ee/worker/FrameCryptor.ts +3 -1
- package/src/room/PCTransport.ts +3 -1
- package/src/room/PCTransportManager.ts +12 -4
- package/src/room/RTCEngine.ts +1 -1
- package/src/room/Room.ts +69 -7
- package/src/room/events.ts +10 -0
- package/src/room/participant/LocalParticipant.ts +126 -84
- package/src/room/participant/Participant.ts +1 -0
- package/src/room/timers.ts +15 -6
- package/src/room/track/LocalTrack.ts +4 -2
- package/src/room/track/LocalVideoTrack.test.ts +60 -0
- package/src/room/track/LocalVideoTrack.ts +1 -1
- package/src/room/track/create.ts +27 -8
- package/src/room/track/options.ts +1 -1
- package/src/room/types.ts +2 -0
- package/src/room/utils.ts +10 -0
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"FrameCryptor.d.ts","sourceRoot":"","sources":["../../../../src/e2ee/worker/FrameCryptor.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,iBAAiB,MAAM,eAAe,CAAC;AAEnD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAG3D,OAAO,EAAE,gBAAgB,EAAgB,MAAM,WAAW,CAAC;AAC3D,OAAO,KAAK,EAAwB,kBAAkB,EAAU,MAAM,UAAU,CAAC;AAEjF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAGrE,eAAO,MAAM,oBAAoB,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAa,CAAC;AAEpE,MAAM,WAAW,uBAAuB;IACtC,KAAK,IAAI,CAAC,EAAE,OAAO,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AS,KAAK;IACd,4BAA4B;IAC5B,SAAS,KAAK;IACd,0FAA0F;IAC1F,eAAe,KAAK;CAGrB;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,WAAW,EAAE,YAAY,EAAE,UAAU,GAAG,OAAO,CAQ/F"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"PCTransport.d.ts","sourceRoot":"","sources":["../../../src/room/PCTransport.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAMtC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAG7C,gBAAgB;AAChB,UAAU,gBAAgB;IACxB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,iBAAiB,CAAC;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;
|
1
|
+
{"version":3,"file":"PCTransport.d.ts","sourceRoot":"","sources":["../../../src/room/PCTransport.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAMtC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAG7C,gBAAgB;AAChB,UAAU,gBAAgB;IACxB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,iBAAiB,CAAC;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAYD,eAAO,MAAM,QAAQ;;;;CAIX,CAAC;AAEX,gBAAgB;AAChB,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,YAAY;IACnD,OAAO,CAAC,GAAG,CAA2B;IAEtC,OAAO,KAAK,EAAE,GAKb;IAED,OAAO,CAAC,MAAM,CAAC,CAAmB;IAElC,OAAO,CAAC,GAAG,CAAO;IAElB,OAAO,CAAC,aAAa,CAAgB;IAErC,iBAAiB,EAAE,mBAAmB,EAAE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MAAM,EAAE,eAAe,EAAE,kBAAkB;IAIpE,cAAc,CAAC,gBAAgB,EAAE,gBAAgB,EAAE,eAAe,EAAE,qBAAqB;IAIzF,QAAQ,CAAC,KAAK,EAAE,gBAAgB;IAOhC,oBAAoB,CAAC,IAAI,EAAE,gBAAgB;IAI3C,gBAAgB,CAAC,SAAS,EAAE,gBAAgB;IAO5C,cAAc,IAAI,OAAO;IAIzB,WAAW,CAAC,MAAM,EAAE,YAAY;IAIhC,kBAAkB;IAIlB,qBAAqB;IAIrB,kBAAkB;IAIlB,eAAe;IAIf,UAAU;IAIV,mBAAmB;IAInB,oBAAoB;IAIpB,QAAQ;IAIF,mBAAmB,IAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;IAqCxD,KAAK,aAiBH;YAEY,YAAY;CAkD3B"}
|
@@ -25,6 +25,7 @@ export declare class PCTransportManager {
|
|
25
25
|
private isSubscriberConnectionRequired;
|
26
26
|
private state;
|
27
27
|
private connectionLock;
|
28
|
+
private remoteOfferLock;
|
28
29
|
private log;
|
29
30
|
private loggerOptions;
|
30
31
|
constructor(rtcConfig: RTCConfiguration, subscriberPrimary: boolean, loggerOptions: LoggerOptions);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"PCTransportManager.d.ts","sourceRoot":"","sources":["../../../src/room/PCTransportManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD,OAAO,WAAyB,MAAM,eAAe,CAAC;AAItD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAG7C,oBAAY,gBAAgB;IAC1B,GAAG,IAAA;IACH,UAAU,IAAA;IACV,SAAS,IAAA;IACT,MAAM,IAAA;IACN,OAAO,IAAA;IACP,MAAM,IAAA;CACP;AAED,qBAAa,kBAAkB;IACtB,SAAS,EAAE,WAAW,CAAC;IAEvB,UAAU,EAAE,WAAW,CAAC;IAExB,qBAAqB,EAAE,MAAM,CAAmD;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,UAAU,CAAC,EAAE,OAAO;IAQ5D,2BAA2B,CAAC,eAAe,CAAC,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,MAAM;IAqB/E,SAAS,CAAC,eAAe,EAAE,eAAe;IA6BhD,uBAAuB,CAAC,KAAK,EAAE,gBAAgB,EAAE,eAAe,EAAE,qBAAqB;IAIvF,iBAAiB,CAAC,KAAK,EAAE,gBAAgB;IAIzC,0BAA0B,CAAC,KAAK,EAAE,MAAM,EAAE,eAAe,EAAE,kBAAkB;IAI7E;;OAEG;IACH,mBAAmB,CAAC,MAAM,CAAC,EAAE,YAAY;IASzC,OAAO,KAAK,kBAAkB,GAS7B;IAED,OAAO,CAAC,WAAW,CA+BjB;YAEY,wBAAwB;CAiDvC"}
|
package/dist/src/room/Room.d.ts
CHANGED
@@ -67,6 +67,10 @@ declare class Room extends Room_base {
|
|
67
67
|
private log;
|
68
68
|
private bufferedEvents;
|
69
69
|
private isResuming;
|
70
|
+
/**
|
71
|
+
* map to store first point in time when a particular transcription segment was received
|
72
|
+
*/
|
73
|
+
private transcriptionReceivedTimes;
|
70
74
|
/**
|
71
75
|
* Creates a new Room, the primary construct for a LiveKit session.
|
72
76
|
* @param options
|
@@ -96,9 +100,8 @@ declare class Room extends Room_base {
|
|
96
100
|
private maybeCreateEngine;
|
97
101
|
/**
|
98
102
|
* getLocalDevices abstracts navigator.mediaDevices.enumerateDevices.
|
99
|
-
* In particular, it
|
100
|
-
*
|
101
|
-
* The actual default device will be placed at top.
|
103
|
+
* In particular, it requests device permissions by default if needed
|
104
|
+
* and makes sure the returned device does not consist of dummy devices
|
102
105
|
* @param kind
|
103
106
|
* @returns a list of available local devices
|
104
107
|
*/
|
@@ -210,6 +213,7 @@ declare class Room extends Room_base {
|
|
210
213
|
private onTrackProcessorUpdate;
|
211
214
|
private onLocalTrackPublished;
|
212
215
|
private onLocalTrackUnpublished;
|
216
|
+
private onLocalTrackRestarted;
|
213
217
|
private onLocalConnectionQualityChanged;
|
214
218
|
private onMediaDevicesError;
|
215
219
|
private onLocalParticipantPermissionsChanged;
|
@@ -264,5 +268,6 @@ export type RoomEventCallbacks = {
|
|
264
268
|
encryptionError: (error: Error) => void;
|
265
269
|
dcBufferStatusChanged: (isLow: boolean, kind: DataPacket_Kind) => void;
|
266
270
|
activeDeviceChanged: (kind: MediaDeviceKind, deviceId: string) => void;
|
271
|
+
localTrackSubscribed: (publication: LocalTrackPublication, participant: LocalParticipant) => void;
|
267
272
|
};
|
268
273
|
//# sourceMappingURL=Room.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Room.d.ts","sourceRoot":"","sources":["../../../src/room/Room.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,eAAe,EACf,gBAAgB,EAMhB,qBAAqB,EAIrB,OAAO,EAGP,iBAAiB,EAOjB,oBAAoB,IAAI,yBAAyB,EAGlD,MAAM,mBAAmB,CAAC;AAE3B,OAAO,KAAK,YAAY,MAAM,eAAe,CAAC;AAC9C,OAAO,gBAAgB,CAAC;AAIxB,OAAO,KAAK,EAEV,mBAAmB,EACnB,kBAAkB,EAClB,WAAW,EACZ,MAAM,YAAY,CAAC;AAGpB,OAAO,SAAS,MAAM,aAAa,CAAC;AAWpC,OAAO,gBAAgB,MAAM,gCAAgC,CAAC;AAC9D,OAAO,KAAK,WAAW,MAAM,2BAA2B,CAAC;AACzD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,iBAAiB,MAAM,iCAAiC,CAAC;
|
1
|
+
{"version":3,"file":"Room.d.ts","sourceRoot":"","sources":["../../../src/room/Room.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,eAAe,EACf,gBAAgB,EAMhB,qBAAqB,EAIrB,OAAO,EAGP,iBAAiB,EAOjB,oBAAoB,IAAI,yBAAyB,EAGlD,MAAM,mBAAmB,CAAC;AAE3B,OAAO,KAAK,YAAY,MAAM,eAAe,CAAC;AAC9C,OAAO,gBAAgB,CAAC;A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AAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACvE,oBAAoB,EAAE,CAAC,WAAW,EAAE,qBAAqB,EAAE,WAAW,EAAE,gBAAgB,KAAK,IAAI,CAAC;CACnG,CAAC"}
|
@@ -282,7 +282,11 @@ export declare enum RoomEvent {
|
|
282
282
|
* Triggered by a call to room.switchActiveDevice
|
283
283
|
* args: (kind: MediaDeviceKind, deviceId: string)
|
284
284
|
*/
|
285
|
-
ActiveDeviceChanged = "activeDeviceChanged"
|
285
|
+
ActiveDeviceChanged = "activeDeviceChanged",
|
286
|
+
/**
|
287
|
+
* fired when the first remote participant has subscribed to the localParticipant's track
|
288
|
+
*/
|
289
|
+
LocalTrackSubscribed = "localTrackSubscribed"
|
286
290
|
}
|
287
291
|
export declare enum ParticipantEvent {
|
288
292
|
/**
|
@@ -442,7 +446,11 @@ export declare enum ParticipantEvent {
|
|
442
446
|
* all users.
|
443
447
|
* When a participant's attributes changed, this event will be emitted with the changed attributes
|
444
448
|
*/
|
445
|
-
AttributesChanged = "attributesChanged"
|
449
|
+
AttributesChanged = "attributesChanged",
|
450
|
+
/**
|
451
|
+
* fired on local participant only, when the first remote participant has subscribed to the track specified in the payload
|
452
|
+
*/
|
453
|
+
LocalTrackSubscribed = "localTrackSubscribed"
|
446
454
|
}
|
447
455
|
/** @internal */
|
448
456
|
export declare enum EngineEvent {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/room/events.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,oBAAY,SAAS;IACnB;;OAEG;IACH,SAAS,cAAc;IAEvB;;;OAGG;IACH,YAAY,iBAAiB;IAE7B;;;;OAIG;IACH,kBAAkB,uBAAuB;IAEzC;;OAEG;IACH,WAAW,gBAAgB;IAE3B;;;;;;;;;;OAUG;IACH,YAAY,iBAAiB;IAE7B;;;;OAIG;IACH,sBAAsB,2BAA2B;IAEjD;;OAEG;IACH,mBAAmB,wB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AgB;IAChB,mBAAmB,wBAAwB;IAC3C;;;OAGG;IACH,oBAAoB,yBAAyB;IAC7C,gBAAgB;IAChB,iBAAiB,sBAAsB;IACvC,gBAAgB;IAChB,sBAAsB,2BAA2B;IACjD,gBAAgB;IAChB,oBAAoB,yBAAyB;IAC7C,gBAAgB;IAChB,mBAAmB,wBAAwB;IAC3C,gBAAgB;IAChB,eAAe,oBAAoB;IACnC,gBAAgB;IAChB,eAAe,oBAAoB;IACnC;;;OAGG;IACH,cAAc,mBAAmB;IACjC;;;OAGG;IACH,eAAe,oBAAoB;IACnC;;;OAGG;IACH,6BAA6B,kCAAkC;IAC/D;;OAEG;IACH,yBAAyB,8BAA8B;IACvD;;OAEG;IACH,kBAAkB,uBAAuB;IACzC;;OAEG;IACH,oBAAoB,yBAAyB;IAE7C;;OAEG;IACH,uBAAuB,4BAA4B;IAEnD;;OAEG;IACH,qBAAqB,0BAA0B;IAE/C;;OAEG;IACH,cAAc,mBAAmB;CAClC"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ParticipantInfo, ParticipantPermission } from '@livekit/protocol';
|
1
|
+
import { Codec, ParticipantInfo, ParticipantPermission } from '@livekit/protocol';
|
2
2
|
import type { InternalRoomOptions } from '../../options';
|
3
3
|
import type RTCEngine from '../RTCEngine';
|
4
4
|
import LocalTrack from '../track/LocalTrack';
|
@@ -27,6 +27,7 @@ export default class LocalParticipant extends Participant {
|
|
27
27
|
private encryptionType;
|
28
28
|
private reconnectFuture?;
|
29
29
|
private pendingSignalRequests;
|
30
|
+
private enabledPublishVideoCodecs;
|
30
31
|
/** @internal */
|
31
32
|
constructor(sid: string, identity: string, engine: RTCEngine, options: InternalRoomOptions);
|
32
33
|
get lastCameraError(): Error | undefined;
|
@@ -152,6 +153,8 @@ export default class LocalParticipant extends Participant {
|
|
152
153
|
*/
|
153
154
|
setTrackSubscriptionPermissions(allParticipantsAllowed: boolean, participantTrackPermissions?: ParticipantTrackPermission[]): void;
|
154
155
|
/** @internal */
|
156
|
+
setEnabledPublishCodecs(codecs: Codec[]): void;
|
157
|
+
/** @internal */
|
155
158
|
updateInfo(info: ParticipantInfo): boolean;
|
156
159
|
private updateTrackSubscriptionPermissions;
|
157
160
|
/** @internal */
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"LocalParticipant.d.ts","sourceRoot":"","sources":["../../../../src/room/participant/LocalParticipant.ts"],"names":[],"mappings":"AAAA,OAAO,
|
1
|
+
{"version":3,"file":"LocalParticipant.d.ts","sourceRoot":"","sources":["../../../../src/room/participant/LocalParticipant.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,EAIL,eAAe,EACf,qBAAqB,EAQtB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEzD,OAAO,KAAK,SAAS,MAAM,cAAc,CAAC;AAW1C,OAAO,UAAU,MAAM,qBAAqB,CAAC;AAC7C,OAAO,qBAAqB,MAAM,gCAAgC,CAAC;AAEnE,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAEvC,OAAO,KAAK,EACV,mBAAmB,EACnB,gBAAgB,EAChB,wBAAwB,EACxB,yBAAyB,EACzB,mBAAmB,EACnB,mBAAmB,EACpB,MAAM,kBAAkB,CAAC;AAS1B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAYnD,OAAO,WAAW,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAS/E,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,WAAW;IACvD,sBAAsB,EAAE,GAAG,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAC;IAE3D,sBAAsB,EAAE,GAAG,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAC;IAE3D,+CAA+C;IAC/C,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAC;IAE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,EACpC,UAAU,EAAE,gBAAgB,EAC5B,OAAO,CAAC,EAAE,mBAAmB;IAoFzB,cAAc,CAClB,KAAK,EAAE,UAAU,GAAG,gBAAgB,EACpC,eAAe,CAAC,EAAE,OAAO,GACxB,OAAO,CAAC,qBAAqB,GAAG,SAAS,CAAC;IA4GvC,eAAe,CACnB,MAAM,EAAE,UAAU,EAAE,GAAG,gBAAgB,EAAE,GACxC,OAAO,CAAC,qBAAqB,EAAE,CAAC;IAO7B,kBAAkB,CAAC,OAAO,CAAC,EAAE,mBAAmB,EAAE,aAAa,GAAE,OAAc;IAoCrF;;;;;;OAMG;IACG,WAAW,CAAC,IAAI,EAAE,UAAU,EAAE,OAAO,GAAE,kBAAuB,GAAG,OAAO,CAAC,IAAI,CAAC;IAqBpF;;;;;;;;;;;;;;;;OAgBG;IACH,+BAA+B,CAC7B,sBAAsB,EAAE,OAAO,EAC/B,2BAA2B,GAAE,0BAA0B,EAAO;IAShE,gBAAgB;IAChB,uBAAuB,CAAC,MAAM,EAAE,KAAK,EAAE;IAMvC,gBAAgB;IAChB,UAAU,CAAC,IAAI,EAAE,eAAe,GAAG,OAAO;IA+B1C,OAAO,CAAC,kCAAkC,CAUxC;IAEF,gBAAgB;IAChB,OAAO,CAAC,cAAc,CAEpB;IAGF,gBAAgB;IAChB,OAAO,CAAC,YAAY,CAclB;IAEF,OAAO,CAAC,qBAAqB,CAM3B;IAEF,OAAO,CAAC,sBAAsB,CAM5B;IAEF,OAAO,CAAC,oBAAoB,CAU1B;IAEF,OAAO,CAAC,6BAA6B,CA6BnC;IAEF,OAAO,CAAC,2BAA2B,CAUjC;IAEF,OAAO,CAAC,gBAAgB,CA8DtB;IAEF,OAAO,CAAC,sBAAsB;CAuB/B"}
|
@@ -120,5 +120,6 @@ export type ParticipantEventCallbacks = {
|
|
120
120
|
participantPermissionsChanged: (prevPermissions?: ParticipantPermission) => void;
|
121
121
|
trackSubscriptionStatusChanged: (publication: RemoteTrackPublication, status: TrackPublication.SubscriptionStatus) => void;
|
122
122
|
attributesChanged: (changedAttributes: Record<string, string>) => void;
|
123
|
+
localTrackSubscribed: (trackPublication: LocalTrackPublication) => void;
|
123
124
|
};
|
124
125
|
//# sourceMappingURL=Participant.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Participant.d.ts","sourceRoot":"","sources":["../../../../src/room/participant/Participant.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,eAAe,EACf,oBAAoB,IAAI,eAAe,EACvC,qBAAqB,EACrB,iBAAiB,IAAI,YAAY,EACjC,KAAK,OAAO,EACZ,iBAAiB,EAClB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,KAAK,YAAY,MAAM,eAAe,CAAC;AAC9C,OAAY,EAAe,gBAAgB,EAAa,MAAM,cAAc,CAAC;AAG7E,OAAO,KAAK,qBAAqB,MAAM,gCAAgC,CAAC;AAExE,OAAO,KAAK,WAAW,MAAM,sBAAsB,CAAC;AACpD,OAAO,KAAK,sBAAsB,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACvC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAElE,OAAO,KAAK,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAEpE,oBAAY,iBAAiB;IAC3B,SAAS,cAAc;IACvB,IAAI,SAAS;IACb,IAAI,SAAS;IACb;;;OAGG;IACH,IAAI,SAAS;IACb,OAAO,YAAY;CACpB;AAiBD,OAAO,EAAE,eAAe,EAAE,CAAC;0CAEyC,YAAY,CAAC,yBAAyB,CAAC;AAA3G,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,gBAAmE;IAC1G,SAAS,CAAC,eAAe,CAAC,EAAE,eAAe,CAAC;IAE5C,sBAAsB,EAAE,GAAG,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;IAEtD,sBAAsB,EAAE,GAAG,CAAC,M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B,WAAW,EAAE,sBAAsB,EACnC,MAAM,EAAE,gBAAgB,CAAC,kBAAkB,KACxC,IAAI,CAAC;IACV,iBAAiB,EAAE,CAAC,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,IAAI,CAAC;IACvE,oBAAoB,EAAE,CAAC,gBAAgB,EAAE,qBAAqB,KAAK,IAAI,CAAC;CACzE,CAAC"}
|
@@ -4,9 +4,9 @@
|
|
4
4
|
* that the timer fires on time.
|
5
5
|
*/
|
6
6
|
export default class CriticalTimers {
|
7
|
-
static setTimeout: (
|
8
|
-
static setInterval: (
|
9
|
-
static clearTimeout: (
|
10
|
-
static clearInterval: (
|
7
|
+
static setTimeout: (...args: Parameters<typeof setTimeout>) => ReturnType<typeof setTimeout>;
|
8
|
+
static setInterval: (...args: Parameters<typeof setInterval>) => ReturnType<typeof setInterval>;
|
9
|
+
static clearTimeout: (...args: Parameters<typeof clearTimeout>) => ReturnType<typeof clearTimeout>;
|
10
|
+
static clearInterval: (...args: Parameters<typeof clearInterval>) => ReturnType<typeof clearInterval>;
|
11
11
|
}
|
12
12
|
//# sourceMappingURL=timers.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"timers.d.ts","sourceRoot":"","sources":["../../../src/room/timers.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,CAAC,OAAO,OAAO,cAAc;
|
1
|
+
{"version":3,"file":"timers.d.ts","sourceRoot":"","sources":["../../../src/room/timers.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,CAAC,OAAO,OAAO,cAAc;IACjC,MAAM,CAAC,UAAU,EAAE,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,OAAO,UAAU,CAAC,KAAK,UAAU,CAAC,OAAO,UAAU,CAAC,CAGnE;IAEzB,MAAM,CAAC,WAAW,EAAE,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,OAAO,WAAW,CAAC,KAAK,UAAU,CAAC,OAAO,WAAW,CAAC,CAE3B;IAEpE,MAAM,CAAC,YAAY,EAAE,CACnB,GAAG,IAAI,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,KACrC,UAAU,CAAC,OAAO,YAAY,CAAC,CACZ;IAExB,MAAM,CAAC,aAAa,EAAE,CACpB,GAAG,IAAI,EAAE,UAAU,CAAC,OAAO,aAAa,CAAC,KACtC,UAAU,CAAC,OAAO,aAAa,CAAC,CACZ;CAC1B"}
|
@@ -43,7 +43,7 @@ export default abstract class LocalTrack<TrackKind extends Track.Kind = Track.Ki
|
|
43
43
|
/**
|
44
44
|
* @returns DeviceID of the device that is currently being used for this track
|
45
45
|
*/
|
46
|
-
getDeviceId(): Promise<string | undefined>;
|
46
|
+
getDeviceId(normalize?: boolean): Promise<string | undefined>;
|
47
47
|
mute(): Promise<this>;
|
48
48
|
unmute(): Promise<this>;
|
49
49
|
replaceTrack(track: MediaStreamTrack, options?: ReplaceTrackOptions): Promise<typeof this>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"LocalTrack.d.ts","sourceRoot":"","sources":["../../../../src/room/track/LocalTrack.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAoC,MAAM,UAAU,CAAC;AACnE,OAAO,EAAE,KAAK,EAAgC,MAAM,SAAS,CAAC;AAC9D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAInD,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,UAAU,CACtC,SAAS,SAAS,KAAK,CAAC,IAAI,GAAG,KAAK,CAAC,IAAI,CACzC,SAAQ,KAAK,CAAC,SAAS,CAAC;IACxB,SAAS,CAAC,OAAO,CAAC,EAAE,YAAY,CAAC;IA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IAwBb,cAAc;IAoBpB;;;;;OAKG;IACG,iBAAiB,IAAI,OAAO,CAAC,cAAc,GAAG,SAAS,CAAC;IAQ9D;;;;;;;;;OASG;IACG,YAAY,CAAC,SAAS,EAAE,cAAc,CAAC,SAAS,CAAC,EAAE,0BAA0B,UAAO;IAiD1F,YAAY;IAIZ;;;;;;OAMG;IACG,aAAa,CAAC,WAAW,UAAO;IAkBtC,SAAS,CAAC,QAAQ,CAAC,aAAa,IAAI,IAAI;CACzC"}
|
@@ -1,7 +1,14 @@
|
|
1
1
|
import LocalAudioTrack from './LocalAudioTrack';
|
2
2
|
import type LocalTrack from './LocalTrack';
|
3
3
|
import LocalVideoTrack from './LocalVideoTrack';
|
4
|
+
import { Track } from './Track';
|
4
5
|
import type { AudioCaptureOptions, CreateLocalTracksOptions, ScreenShareCaptureOptions, VideoCaptureOptions } from './options';
|
6
|
+
import type { AudioProcessorOptions, TrackProcessor, VideoProcessorOptions } from './processor/types';
|
7
|
+
/** @internal */
|
8
|
+
export declare function extractProcessorsFromOptions(options: CreateLocalTracksOptions): {
|
9
|
+
audioProcessor: TrackProcessor<Track.Kind.Audio, AudioProcessorOptions> | undefined;
|
10
|
+
videoProcessor: TrackProcessor<Track.Kind.Video, VideoProcessorOptions> | undefined;
|
11
|
+
};
|
5
12
|
/**
|
6
13
|
* Creates a local video and audio track at the same time. When acquiring both
|
7
14
|
* audio and video tracks together, it'll display a single permission prompt to
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../../src/room/track/create.ts"],"names":[],"mappings":"AAKA,OAAO,eAAe,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC;AAC3C,OAAO,eAAe,MAAM,mBAAmB,CAAC;
|
1
|
+
{"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../../src/room/track/create.ts"],"names":[],"mappings":"AAKA,OAAO,eAAe,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC;AAC3C,OAAO,eAAe,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,KAAK,EACV,mBAAmB,EACnB,wBAAwB,EACxB,yBAAyB,EACzB,mBAAmB,EACpB,MAAM,WAAW,CAAC;AAEnB,OAAO,KAAK,EACV,qBAAqB,EACrB,cAAc,EACd,qBAAqB,EACtB,MAAM,mBAAmB,CAAC;AAO3B,gBAAgB;AAChB,wBAAgB,4BAA4B,CAAC,OAAO,EAAE,wBAAwB;;;EAY7E;AAED;;;;;GAKG;AACH,wBAAsB,iBAAiB,CACrC,OAAO,CAAC,EAAE,wBAAwB,GACjC,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CA6D5B;AAED;;;GAGG;AACH,wBAAsB,qBAAqB,CACzC,OAAO,CAAC,EAAE,mBAAmB,GAC5B,OAAO,CAAC,eAAe,CAAC,CAM1B;AAED,wBAAsB,qBAAqB,CACzC,OAAO,CAAC,EAAE,mBAAmB,GAC5B,OAAO,CAAC,eAAe,CAAC,CAM1B;AAED;;;;GAIG;AACH,wBAAsB,uBAAuB,CAC3C,OAAO,CAAC,EAAE,yBAAyB,GAClC,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CA4B5B"}
|
@@ -53,7 +53,7 @@ export interface TrackPublishDefaults {
|
|
53
53
|
*/
|
54
54
|
simulcast?: boolean;
|
55
55
|
/**
|
56
|
-
* scalability mode for svc codecs, defaults to '
|
56
|
+
* scalability mode for svc codecs, defaults to 'L3T3_KEY'.
|
57
57
|
* for svc codecs, simulcast is disabled.
|
58
58
|
*/
|
59
59
|
scalabilityMode?: ScalabilityMode;
|
package/dist/src/room/types.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/room/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,iBAAiB,GAAG;I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,CAAC;CACjD,CAAC;AAEF,MAAM,WAAW,oBAAoB;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,OAAO,CAAC;IACf,iBAAiB,EAAE,MAAM,CAAC;IAC1B,gBAAgB,EAAE,MAAM,CAAC;CAC1B"}
|
package/dist/src/room/utils.d.ts
CHANGED
@@ -95,5 +95,5 @@ export declare function unwrapConstraint(constraint: ConstrainDOMString): string
|
|
95
95
|
export declare function unwrapConstraint(constraint: ConstrainULong): number;
|
96
96
|
export declare function toWebsocketUrl(url: string): string;
|
97
97
|
export declare function toHttpUrl(url: string): string;
|
98
|
-
export declare function extractTranscriptionSegments(transcription: TranscriptionModel): TranscriptionSegment[];
|
98
|
+
export declare function extractTranscriptionSegments(transcription: TranscriptionModel, firstReceivedTimesMap: Map<string, number>): TranscriptionSegment[];
|
99
99
|
//# sourceMappingURL=utils.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/room/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAkB,aAAa,IAAI,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAIpG,OAAO,KAAK,eAAe,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,gBAAgB,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAe,MAAM,iBAAiB,CAAC;AAE1D,OAAO,KAAK,EAA0B,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAG5E,eAAO,MAAM,cAAc,4FACgE,CAAC;AAE5F,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAMvD;AAED,wBAAsB,KAAK,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,C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,EACjC,qBAAqB,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GACzC,oBAAoB,EAAE,CAoBxB"}
|
@@ -25,6 +25,7 @@ export declare class PCTransportManager {
|
|
25
25
|
private isSubscriberConnectionRequired;
|
26
26
|
private state;
|
27
27
|
private connectionLock;
|
28
|
+
private remoteOfferLock;
|
28
29
|
private log;
|
29
30
|
private loggerOptions;
|
30
31
|
constructor(rtcConfig: RTCConfiguration, subscriberPrimary: boolean, loggerOptions: LoggerOptions);
|
@@ -67,6 +67,10 @@ declare class Room extends Room_base {
|
|
67
67
|
private log;
|
68
68
|
private bufferedEvents;
|
69
69
|
private isResuming;
|
70
|
+
/**
|
71
|
+
* map to store first point in time when a particular transcription segment was received
|
72
|
+
*/
|
73
|
+
private transcriptionReceivedTimes;
|
70
74
|
/**
|
71
75
|
* Creates a new Room, the primary construct for a LiveKit session.
|
72
76
|
* @param options
|
@@ -96,9 +100,8 @@ declare class Room extends Room_base {
|
|
96
100
|
private maybeCreateEngine;
|
97
101
|
/**
|
98
102
|
* getLocalDevices abstracts navigator.mediaDevices.enumerateDevices.
|
99
|
-
* In particular, it
|
100
|
-
*
|
101
|
-
* The actual default device will be placed at top.
|
103
|
+
* In particular, it requests device permissions by default if needed
|
104
|
+
* and makes sure the returned device does not consist of dummy devices
|
102
105
|
* @param kind
|
103
106
|
* @returns a list of available local devices
|
104
107
|
*/
|
@@ -210,6 +213,7 @@ declare class Room extends Room_base {
|
|
210
213
|
private onTrackProcessorUpdate;
|
211
214
|
private onLocalTrackPublished;
|
212
215
|
private onLocalTrackUnpublished;
|
216
|
+
private onLocalTrackRestarted;
|
213
217
|
private onLocalConnectionQualityChanged;
|
214
218
|
private onMediaDevicesError;
|
215
219
|
private onLocalParticipantPermissionsChanged;
|
@@ -264,5 +268,6 @@ export type RoomEventCallbacks = {
|
|
264
268
|
encryptionError: (error: Error) => void;
|
265
269
|
dcBufferStatusChanged: (isLow: boolean, kind: DataPacket_Kind) => void;
|
266
270
|
activeDeviceChanged: (kind: MediaDeviceKind, deviceId: string) => void;
|
271
|
+
localTrackSubscribed: (publication: LocalTrackPublication, participant: LocalParticipant) => void;
|
267
272
|
};
|
268
273
|
//# sourceMappingURL=Room.d.ts.map
|
@@ -282,7 +282,11 @@ export declare enum RoomEvent {
|
|
282
282
|
* Triggered by a call to room.switchActiveDevice
|
283
283
|
* args: (kind: MediaDeviceKind, deviceId: string)
|
284
284
|
*/
|
285
|
-
ActiveDeviceChanged = "activeDeviceChanged"
|
285
|
+
ActiveDeviceChanged = "activeDeviceChanged",
|
286
|
+
/**
|
287
|
+
* fired when the first remote participant has subscribed to the localParticipant's track
|
288
|
+
*/
|
289
|
+
LocalTrackSubscribed = "localTrackSubscribed"
|
286
290
|
}
|
287
291
|
export declare enum ParticipantEvent {
|
288
292
|
/**
|
@@ -442,7 +446,11 @@ export declare enum ParticipantEvent {
|
|
442
446
|
* all users.
|
443
447
|
* When a participant's attributes changed, this event will be emitted with the changed attributes
|
444
448
|
*/
|
445
|
-
AttributesChanged = "attributesChanged"
|
449
|
+
AttributesChanged = "attributesChanged",
|
450
|
+
/**
|
451
|
+
* fired on local participant only, when the first remote participant has subscribed to the track specified in the payload
|
452
|
+
*/
|
453
|
+
LocalTrackSubscribed = "localTrackSubscribed"
|
446
454
|
}
|
447
455
|
/** @internal */
|
448
456
|
export declare enum EngineEvent {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ParticipantInfo, ParticipantPermission } from '@livekit/protocol';
|
1
|
+
import { Codec, ParticipantInfo, ParticipantPermission } from '@livekit/protocol';
|
2
2
|
import type { InternalRoomOptions } from '../../options';
|
3
3
|
import type RTCEngine from '../RTCEngine';
|
4
4
|
import LocalTrack from '../track/LocalTrack';
|
@@ -27,6 +27,7 @@ export default class LocalParticipant extends Participant {
|
|
27
27
|
private encryptionType;
|
28
28
|
private reconnectFuture?;
|
29
29
|
private pendingSignalRequests;
|
30
|
+
private enabledPublishVideoCodecs;
|
30
31
|
/** @internal */
|
31
32
|
constructor(sid: string, identity: string, engine: RTCEngine, options: InternalRoomOptions);
|
32
33
|
get lastCameraError(): Error | undefined;
|
@@ -152,6 +153,8 @@ export default class LocalParticipant extends Participant {
|
|
152
153
|
*/
|
153
154
|
setTrackSubscriptionPermissions(allParticipantsAllowed: boolean, participantTrackPermissions?: ParticipantTrackPermission[]): void;
|
154
155
|
/** @internal */
|
156
|
+
setEnabledPublishCodecs(codecs: Codec[]): void;
|
157
|
+
/** @internal */
|
155
158
|
updateInfo(info: ParticipantInfo): boolean;
|
156
159
|
private updateTrackSubscriptionPermissions;
|
157
160
|
/** @internal */
|
@@ -121,5 +121,6 @@ export type ParticipantEventCallbacks = {
|
|
121
121
|
participantPermissionsChanged: (prevPermissions?: ParticipantPermission) => void;
|
122
122
|
trackSubscriptionStatusChanged: (publication: RemoteTrackPublication, status: TrackPublication.SubscriptionStatus) => void;
|
123
123
|
attributesChanged: (changedAttributes: Record<string, string>) => void;
|
124
|
+
localTrackSubscribed: (trackPublication: LocalTrackPublication) => void;
|
124
125
|
};
|
125
126
|
//# sourceMappingURL=Participant.d.ts.map
|
@@ -4,9 +4,9 @@
|
|
4
4
|
* that the timer fires on time.
|
5
5
|
*/
|
6
6
|
export default class CriticalTimers {
|
7
|
-
static setTimeout: (
|
8
|
-
static setInterval: (
|
9
|
-
static clearTimeout: (
|
10
|
-
static clearInterval: (
|
7
|
+
static setTimeout: (...args: Parameters<typeof setTimeout>) => ReturnType<typeof setTimeout>;
|
8
|
+
static setInterval: (...args: Parameters<typeof setInterval>) => ReturnType<typeof setInterval>;
|
9
|
+
static clearTimeout: (...args: Parameters<typeof clearTimeout>) => ReturnType<typeof clearTimeout>;
|
10
|
+
static clearInterval: (...args: Parameters<typeof clearInterval>) => ReturnType<typeof clearInterval>;
|
11
11
|
}
|
12
12
|
//# sourceMappingURL=timers.d.ts.map
|
@@ -43,7 +43,7 @@ export default abstract class LocalTrack<TrackKind extends Track.Kind = Track.Ki
|
|
43
43
|
/**
|
44
44
|
* @returns DeviceID of the device that is currently being used for this track
|
45
45
|
*/
|
46
|
-
getDeviceId(): Promise<string | undefined>;
|
46
|
+
getDeviceId(normalize?: boolean): Promise<string | undefined>;
|
47
47
|
mute(): Promise<this>;
|
48
48
|
unmute(): Promise<this>;
|
49
49
|
replaceTrack(track: MediaStreamTrack, options?: ReplaceTrackOptions): Promise<typeof this>;
|
@@ -1,7 +1,14 @@
|
|
1
1
|
import LocalAudioTrack from './LocalAudioTrack';
|
2
2
|
import type LocalTrack from './LocalTrack';
|
3
3
|
import LocalVideoTrack from './LocalVideoTrack';
|
4
|
+
import { Track } from './Track';
|
4
5
|
import type { AudioCaptureOptions, CreateLocalTracksOptions, ScreenShareCaptureOptions, VideoCaptureOptions } from './options';
|
6
|
+
import type { AudioProcessorOptions, TrackProcessor, VideoProcessorOptions } from './processor/types';
|
7
|
+
/** @internal */
|
8
|
+
export declare function extractProcessorsFromOptions(options: CreateLocalTracksOptions): {
|
9
|
+
audioProcessor: TrackProcessor<Track.Kind.Audio, AudioProcessorOptions> | undefined;
|
10
|
+
videoProcessor: TrackProcessor<Track.Kind.Video, VideoProcessorOptions> | undefined;
|
11
|
+
};
|
5
12
|
/**
|
6
13
|
* Creates a local video and audio track at the same time. When acquiring both
|
7
14
|
* audio and video tracks together, it'll display a single permission prompt to
|
@@ -53,7 +53,7 @@ export interface TrackPublishDefaults {
|
|
53
53
|
*/
|
54
54
|
simulcast?: boolean;
|
55
55
|
/**
|
56
|
-
* scalability mode for svc codecs, defaults to '
|
56
|
+
* scalability mode for svc codecs, defaults to 'L3T3_KEY'.
|
57
57
|
* for svc codecs, simulcast is disabled.
|
58
58
|
*/
|
59
59
|
scalabilityMode?: ScalabilityMode;
|
@@ -95,5 +95,5 @@ export declare function unwrapConstraint(constraint: ConstrainDOMString): string
|
|
95
95
|
export declare function unwrapConstraint(constraint: ConstrainULong): number;
|
96
96
|
export declare function toWebsocketUrl(url: string): string;
|
97
97
|
export declare function toHttpUrl(url: string): string;
|
98
|
-
export declare function extractTranscriptionSegments(transcription: TranscriptionModel): TranscriptionSegment[];
|
98
|
+
export declare function extractTranscriptionSegments(transcription: TranscriptionModel, firstReceivedTimesMap: Map<string, number>): TranscriptionSegment[];
|
99
99
|
//# sourceMappingURL=utils.d.ts.map
|