livekit-client 1.12.3 → 1.13.0
Sign up to get free protection for your applications and to get access to all the features.
- 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 +83 -9
- package/dist/livekit-client.e2ee.worker.mjs.map +1 -1
- package/dist/livekit-client.esm.mjs +357 -97
- 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/api/SignalClient.d.ts +2 -5
- package/dist/src/api/SignalClient.d.ts.map +1 -1
- package/dist/src/connectionHelper/checks/turn.d.ts.map +1 -1
- package/dist/src/connectionHelper/checks/webrtc.d.ts.map +1 -1
- package/dist/src/connectionHelper/checks/websocket.d.ts.map +1 -1
- package/dist/src/e2ee/E2eeManager.d.ts +5 -0
- package/dist/src/e2ee/E2eeManager.d.ts.map +1 -1
- package/dist/src/e2ee/KeyProvider.d.ts +4 -2
- package/dist/src/e2ee/KeyProvider.d.ts.map +1 -1
- package/dist/src/e2ee/constants.d.ts +2 -0
- package/dist/src/e2ee/constants.d.ts.map +1 -1
- package/dist/src/e2ee/types.d.ts +7 -1
- package/dist/src/e2ee/types.d.ts.map +1 -1
- package/dist/src/e2ee/utils.d.ts +1 -0
- package/dist/src/e2ee/utils.d.ts.map +1 -1
- package/dist/src/e2ee/worker/FrameCryptor.d.ts +4 -2
- package/dist/src/e2ee/worker/FrameCryptor.d.ts.map +1 -1
- package/dist/src/e2ee/worker/ParticipantKeyHandler.d.ts.map +1 -1
- package/dist/src/e2ee/worker/SifGuard.d.ts +11 -0
- package/dist/src/e2ee/worker/SifGuard.d.ts.map +1 -0
- package/dist/src/options.d.ts +5 -0
- package/dist/src/options.d.ts.map +1 -1
- package/dist/src/proto/livekit_models_pb.d.ts.map +1 -1
- package/dist/src/proto/livekit_rtc_pb.d.ts.map +1 -1
- package/dist/src/room/DeviceManager.d.ts +1 -0
- package/dist/src/room/DeviceManager.d.ts.map +1 -1
- package/dist/src/room/RTCEngine.d.ts.map +1 -1
- package/dist/src/room/Room.d.ts +1 -1
- package/dist/src/room/Room.d.ts.map +1 -1
- package/dist/src/room/defaults.d.ts.map +1 -1
- package/dist/src/room/participant/LocalParticipant.d.ts.map +1 -1
- package/dist/src/room/participant/Participant.d.ts +5 -0
- package/dist/src/room/participant/Participant.d.ts.map +1 -1
- package/dist/src/room/participant/RemoteParticipant.d.ts +0 -5
- package/dist/src/room/participant/RemoteParticipant.d.ts.map +1 -1
- package/dist/src/room/timers.d.ts +2 -2
- package/dist/src/room/timers.d.ts.map +1 -1
- package/dist/src/room/track/LocalAudioTrack.d.ts +9 -1
- package/dist/src/room/track/LocalAudioTrack.d.ts.map +1 -1
- package/dist/src/room/track/LocalTrack.d.ts +3 -3
- package/dist/src/room/track/LocalTrack.d.ts.map +1 -1
- package/dist/src/room/track/LocalVideoTrack.d.ts +6 -0
- package/dist/src/room/track/LocalVideoTrack.d.ts.map +1 -1
- package/dist/src/room/track/RemoteAudioTrack.d.ts.map +1 -1
- package/dist/src/room/track/processor/types.d.ts +13 -2
- package/dist/src/room/track/processor/types.d.ts.map +1 -1
- package/dist/src/room/types.d.ts +1 -1
- package/dist/src/room/types.d.ts.map +1 -1
- package/dist/ts4.2/src/api/SignalClient.d.ts +2 -5
- package/dist/ts4.2/src/e2ee/E2eeManager.d.ts +5 -0
- package/dist/ts4.2/src/e2ee/KeyProvider.d.ts +4 -2
- package/dist/ts4.2/src/e2ee/constants.d.ts +2 -0
- package/dist/ts4.2/src/e2ee/types.d.ts +7 -1
- package/dist/ts4.2/src/e2ee/utils.d.ts +1 -0
- package/dist/ts4.2/src/e2ee/worker/FrameCryptor.d.ts +4 -2
- package/dist/ts4.2/src/e2ee/worker/SifGuard.d.ts +11 -0
- package/dist/ts4.2/src/options.d.ts +5 -0
- package/dist/ts4.2/src/room/DeviceManager.d.ts +1 -0
- package/dist/ts4.2/src/room/Room.d.ts +1 -1
- package/dist/ts4.2/src/room/participant/Participant.d.ts +5 -0
- package/dist/ts4.2/src/room/participant/RemoteParticipant.d.ts +0 -5
- package/dist/ts4.2/src/room/timers.d.ts +2 -2
- package/dist/ts4.2/src/room/track/LocalAudioTrack.d.ts +9 -1
- package/dist/ts4.2/src/room/track/LocalTrack.d.ts +3 -3
- package/dist/ts4.2/src/room/track/LocalVideoTrack.d.ts +6 -0
- package/dist/ts4.2/src/room/track/processor/types.d.ts +13 -2
- package/dist/ts4.2/src/room/types.d.ts +1 -1
- package/package.json +15 -16
- package/src/api/SignalClient.ts +13 -9
- package/src/connectionHelper/checks/turn.ts +1 -0
- package/src/connectionHelper/checks/webrtc.ts +9 -7
- package/src/connectionHelper/checks/websocket.ts +1 -0
- package/src/e2ee/E2eeManager.ts +27 -2
- package/src/e2ee/KeyProvider.ts +9 -4
- package/src/e2ee/constants.ts +3 -0
- package/src/e2ee/types.ts +9 -1
- package/src/e2ee/utils.ts +9 -0
- package/src/e2ee/worker/FrameCryptor.ts +46 -17
- package/src/e2ee/worker/ParticipantKeyHandler.ts +1 -0
- package/src/e2ee/worker/SifGuard.ts +47 -0
- package/src/e2ee/worker/e2ee.worker.ts +14 -0
- package/src/options.ts +6 -0
- package/src/proto/livekit_models_pb.ts +14 -0
- package/src/proto/livekit_rtc_pb.ts +14 -0
- package/src/room/DeviceManager.ts +7 -2
- package/src/room/RTCEngine.ts +3 -1
- package/src/room/Room.ts +27 -7
- package/src/room/defaults.ts +1 -0
- package/src/room/participant/LocalParticipant.ts +14 -2
- package/src/room/participant/Participant.ts +16 -0
- package/src/room/participant/RemoteParticipant.ts +0 -12
- package/src/room/track/LocalAudioTrack.ts +45 -0
- package/src/room/track/LocalTrack.ts +4 -4
- package/src/room/track/LocalVideoTrack.ts +39 -0
- package/src/room/track/RemoteAudioTrack.ts +9 -1
- package/src/room/track/RemoteTrackPublication.ts +2 -2
- package/src/room/track/processor/types.ts +17 -2
- package/src/room/types.ts +5 -1
@@ -1 +1 @@
|
|
1
|
-
{"version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AyB,EAAE,
|
1
|
+
{"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../../../src/room/defaults.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAGlF,OAAO,KAAK,EACV,mBAAmB,EACnB,oBAAoB,EACpB,mBAAmB,EACpB,MAAM,iBAAiB,CAAC;AAEzB,eAAO,MAAM,eAAe,EAAE,oBAcpB,CAAC;AAEX,eAAO,MAAM,aAAa,EAAE,mBAI3B,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,mBAE3B,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,mBAOvB,CAAC;AAEX,eAAO,MAAM,yBAAyB,EAAE,0BAK9B,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"LocalParticipant.d.ts","sourceRoot":"","sources":["../../../../src/room/participant/LocalParticipant.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,EAEL,eAAe,EAEf,eAAe,EACf,qBAAqB,EAEtB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAEL,eAAe,EAIf,sBAAsB,EAEvB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,SAAS,MAAM,cAAc,CAAC;AAI1C,OAAO,UAAU,MAAM,qBAAqB,CAAC;AAC7C,OAAO,qBAAqB,MAAM,gCAAgC,CAAC;AAEnE,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACvC,OAAO,KAAK,EACV,mBAAmB,EACnB,gBAAgB,EAChB,wBAAwB,EACxB,yBAAyB,EACzB,mBAAmB,EACnB,mBAAmB,EACpB,MAAM,kBAAkB,CAAC;AAO1B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAEnD,OAAO,WAAW,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,EAAE,0BAA0B,EAAE,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AO,CAAC,kBAAkB,CAMxB;IAEF;;;;OAIG;IACH,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;IAKnC;;;;OAIG;IACH,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAK3B;;;;;OAKG;IACH,gBAAgB,CACd,OAAO,EAAE,OAAO,EAChB,OAAO,CAAC,EAAE,mBAAmB,EAC7B,cAAc,CAAC,EAAE,mBAAmB,GACnC,OAAO,CAAC,qBAAqB,GAAG,SAAS,CAAC;IAI7C;;;;;OAKG;IACH,oBAAoB,CAClB,OAAO,EAAE,OAAO,EAChB,OAAO,CAAC,EAAE,mBAAmB,EAC7B,cAAc,CAAC,EAAE,mBAAmB,GACnC,OAAO,CAAC,qBAAqB,GAAG,SAAS,CAAC;IAI7C;;;OAGG;IACH,qBAAqB,CACnB,OAAO,EAAE,OAAO,EAChB,OAAO,CAAC,EAAE,yBAAyB,EACnC,cAAc,CAAC,EAAE,mBAAmB,GACnC,OAAO,CAAC,qBAAqB,GAAG,SAAS,CAAC;IAI7C,gBAAgB;IAChB,cAAc,CAAC,WAAW,EAAE,qBAAqB,GAAG,OAAO;IAS3D,gBAAgB;IACV,cAAc,CAAC,OAAO,EAAE,OAAO;IAKrC;;;;OAIG;YACW,eAAe;IA8F7B;;;OAGG;IACG,yBAAyB;IAwB/B;;;;OAIG;IACG,YAAY,CAAC,OAAO,CAAC,EAAE,wBAAwB,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC;IAqD7E;;;;OAIG;IACG,kBAAkB,CAAC,OAAO,CAAC,EAAE,yBAAyB,GAAG,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;
|
1
|
+
{"version":3,"file":"LocalParticipant.d.ts","sourceRoot":"","sources":["../../../../src/room/participant/LocalParticipant.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,EAEL,eAAe,EAEf,eAAe,EACf,qBAAqB,EA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,OAAO,CAAC,IAAI,CAAC;IAwChB;;;;;;;;;;;;;;;;OAgBG;IACH,+BAA+B,CAC7B,sBAAsB,EAAE,OAAO,EAC/B,2BAA2B,GAAE,0BAA0B,EAAO;IAShE,gBAAgB;IAChB,UAAU,CAAC,IAAI,EAAE,eAAe,GAAG,OAAO;IA8B1C,OAAO,CAAC,kCAAkC,CASxC;IAEF,gBAAgB;IAChB,OAAO,CAAC,cAAc,CAEpB;IAGF,gBAAgB;IAChB,OAAO,CAAC,YAAY,CAWlB;IAEF,OAAO,CAAC,qBAAqB,CAG3B;IAEF,OAAO,CAAC,sBAAsB,CAG5B;IAEF,OAAO,CAAC,6BAA6B,CA0BnC;IAEF,OAAO,CAAC,2BAA2B,CAUjC;IAEF,OAAO,CAAC,gBAAgB,CA+CtB;IAEF,OAAO,CAAC,sBAAsB;IAwB9B,gBAAgB;IAChB,mBAAmB,IAAI,sBAAsB,EAAE;IAe/C,gBAAgB;IAChB,gBAAgB,IAAI,eAAe,EAAE;CAsBtC"}
|
@@ -33,6 +33,7 @@ export default class Participant extends Participant_base {
|
|
33
33
|
lastSpokeAt?: Date | undefined;
|
34
34
|
permissions?: ParticipantPermission;
|
35
35
|
private _connectionQuality;
|
36
|
+
protected audioContext?: AudioContext;
|
36
37
|
get isEncrypted(): boolean;
|
37
38
|
/** @internal */
|
38
39
|
constructor(sid: string, identity: string, name?: string, metadata?: string);
|
@@ -68,6 +69,10 @@ export default class Participant extends Participant_base {
|
|
68
69
|
setIsSpeaking(speaking: boolean): void;
|
69
70
|
/** @internal */
|
70
71
|
setConnectionQuality(q: ProtoQuality): void;
|
72
|
+
/**
|
73
|
+
* @internal
|
74
|
+
*/
|
75
|
+
setAudioContext(ctx: AudioContext | undefined): void;
|
71
76
|
protected addTrackPublication(publication: TrackPublication): void;
|
72
77
|
}
|
73
78
|
export type ParticipantEventCallbacks = {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Participant.d.ts","sourceRoot":"","sources":["../../../../src/room/participant/Participant.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,YAAY,MAAM,eAAe,CAAC;AAE9C,OAAO,EACL,eAAe,EACf,eAAe,EACf,qBAAqB,EACrB,iBAAiB,IAAI,YAAY,EACjC,iBAAiB,EAClB,MAAM,+BAA+B,CAAC;
|
1
|
+
{"version":3,"file":"Participant.d.ts","sourceRoot":"","sources":["../../../../src/room/participant/Participant.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,YAAY,MAAM,eAAe,CAAC;AAE9C,OAAO,EACL,eAAe,EACf,eAAe,EACf,qBAAqB,EACrB,iBAAiB,IAAI,YAAY,EACjC,iBAAiB,EAClB,MAAM,+BAA+B,CAAC;AAGvC,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,oBAAY,iBAAiB;IAC3B,SAAS,cAAc;IACvB,IAAI,SAAS;IACb,IAAI,SAAS;IACb,OAAO,YAAY;CACpB;0CAemE,aAAa,yBAAyB,CAAC;AAA3G,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,gBAAmE;IAC1G,SAAS,CAAC,eAAe,CAAC,EAAE,eAAe,CAAC;IAE5C,WAAW,EAAE,GAAG,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;IAE3C,WAAW,EAAE,GAAG,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;IAE3C,+CAA+C;IAC/C,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;IAEtC,kEAAkE;IAClE,UAAU,EAAE,MAAM,CAAK;IAEvB,2CAA2C;IAC3C,UAAU,EAAE,OAAO,CAAS;IAE5B,gCAAgC;IAChC,GAA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iBAAiB,KAAK,IAAI,CAAC;IACzE,uBAAuB,EAAE,CACvB,WAAW,EAAE,sBAAsB,EACnC,WAAW,EAAE,KAAK,CAAC,WAAW,KAC3B,IAAI,CAAC;IACV,kCAAkC,EAAE,CAClC,WAAW,EAAE,sBAAsB,EACnC,MAAM,EAAE,gBAAgB,CAAC,gBAAgB,KACtC,IAAI,CAAC;IACV,iBAAiB,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IAC1C,6BAA6B,EAAE,CAAC,eAAe,CAAC,EAAE,qBAAqB,KAAK,IAAI,CAAC;IACjF,8BAA8B,EAAE,CAC9B,WAAW,EAAE,sBAAsB,EACnC,MAAM,EAAE,gBAAgB,CAAC,kBAAkB,KACxC,IAAI,CAAC;CACX,CAAC"}
|
@@ -12,7 +12,6 @@ export default class RemoteParticipant extends Participant {
|
|
12
12
|
tracks: Map<string, RemoteTrackPublication>;
|
13
13
|
signalClient: SignalClient;
|
14
14
|
private volumeMap;
|
15
|
-
private audioContext?;
|
16
15
|
private audioOutput?;
|
17
16
|
/** @internal */
|
18
17
|
static fromParticipantInfo(signalClient: SignalClient, pi: ParticipantInfo): RemoteParticipant;
|
@@ -41,10 +40,6 @@ export default class RemoteParticipant extends Participant {
|
|
41
40
|
updateInfo(info: ParticipantInfo): boolean;
|
42
41
|
/** @internal */
|
43
42
|
unpublishTrack(sid: Track.SID, sendUnpublish?: boolean): void;
|
44
|
-
/**
|
45
|
-
* @internal
|
46
|
-
*/
|
47
|
-
setAudioContext(ctx: AudioContext | undefined): void;
|
48
43
|
/**
|
49
44
|
* @internal
|
50
45
|
*/
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"RemoteParticipant.d.ts","sourceRoot":"","sources":["../../../../src/room/participant/RemoteParticipant.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAE3D,OAAO,KAAK,EAAE,eAAe,EAAqB,MAAM,+BAA+B,CA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AO,CAEzB;IAED,mBAAmB,CAAC,GAAG,EAAE,KAAK,CAAC,GAAG,GAAG,sBAAsB,GAAG,SAAS;IAIvE,gBAAgB;IAChB,UAAU,CAAC,IAAI,EAAE,eAAe,GAAG,OAAO;IAmE1C,gBAAgB;IAChB,cAAc,CAAC,GAAG,EAAE,KAAK,CAAC,GAAG,EAAE,aAAa,CAAC,EAAE,OAAO;IAiCtD;;OAEG;IACG,cAAc,CAAC,MAAM,EAAE,kBAAkB;IAW/C,gBAAgB;IAChB,IAAI,CAAC,CAAC,SAAS,MAAM,yBAAyB,EAC5C,KAAK,EAAE,CAAC,EACR,GAAG,IAAI,EAAE,UAAU,CAAC,yBAAyB,CAAC,CAAC,CAAC,CAAC,GAChD,OAAO;CAIX"}
|
@@ -7,7 +7,7 @@
|
|
7
7
|
export default class CriticalTimers {
|
8
8
|
static setTimeout: (callback: (args: void) => void, ms?: number | undefined) => NodeJS.Timeout;
|
9
9
|
static setInterval: (callback: (args: void) => void, ms?: number | undefined) => NodeJS.Timer;
|
10
|
-
static clearTimeout: (timeoutId: NodeJS.Timeout) => void;
|
11
|
-
static clearInterval: (intervalId: NodeJS.Timeout) => void;
|
10
|
+
static clearTimeout: (timeoutId: string | number | NodeJS.Timeout | undefined) => void;
|
11
|
+
static clearInterval: (intervalId: string | number | NodeJS.Timeout | undefined) => void;
|
12
12
|
}
|
13
13
|
//# 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;IAEjC,MAAM,CAAC,UAAU,8EAAmE;IAGpF,MAAM,CAAC,WAAW,4EAAqE;IAEvF,MAAM,CAAC,YAAY,
|
1
|
+
{"version":3,"file":"timers.d.ts","sourceRoot":"","sources":["../../../src/room/timers.ts"],"names":[],"mappings":";AAAA;;;;GAIG;AACH,MAAM,CAAC,OAAO,OAAO,cAAc;IAEjC,MAAM,CAAC,UAAU,8EAAmE;IAGpF,MAAM,CAAC,WAAW,4EAAqE;IAEvF,MAAM,CAAC,YAAY,oEAAuE;IAE1F,MAAM,CAAC,aAAa,qEAAyE;CAC9F"}
|
@@ -1,9 +1,11 @@
|
|
1
1
|
import type { AudioSenderStats } from '../stats';
|
2
2
|
import LocalTrack from './LocalTrack';
|
3
3
|
import type { AudioCaptureOptions } from './options';
|
4
|
+
import type { TrackProcessor } from './processor/types';
|
4
5
|
export default class LocalAudioTrack extends LocalTrack {
|
5
6
|
/** @internal */
|
6
7
|
stopOnMute: boolean;
|
8
|
+
private audioContext?;
|
7
9
|
private prevStats?;
|
8
10
|
/**
|
9
11
|
*
|
@@ -11,7 +13,7 @@ export default class LocalAudioTrack extends LocalTrack {
|
|
11
13
|
* @param constraints MediaTrackConstraints that are being used when restarting or reacquiring tracks
|
12
14
|
* @param userProvidedTrack Signals to the SDK whether or not the mediaTrack should be managed (i.e. released and reacquired) internally by the SDK
|
13
15
|
*/
|
14
|
-
constructor(mediaTrack: MediaStreamTrack, constraints?: MediaTrackConstraints, userProvidedTrack?: boolean);
|
16
|
+
constructor(mediaTrack: MediaStreamTrack, constraints?: MediaTrackConstraints, userProvidedTrack?: boolean, audioContext?: AudioContext);
|
15
17
|
setDeviceId(deviceId: ConstrainDOMString): Promise<boolean>;
|
16
18
|
mute(): Promise<LocalAudioTrack>;
|
17
19
|
unmute(): Promise<LocalAudioTrack>;
|
@@ -19,6 +21,12 @@ export default class LocalAudioTrack extends LocalTrack {
|
|
19
21
|
protected restart(constraints?: MediaTrackConstraints): Promise<LocalTrack>;
|
20
22
|
startMonitor(): void;
|
21
23
|
protected monitorSender: () => Promise<void>;
|
24
|
+
setProcessor(processor: TrackProcessor<typeof this.kind>): Promise<void>;
|
25
|
+
/**
|
26
|
+
* @internal
|
27
|
+
* @experimental
|
28
|
+
*/
|
29
|
+
setAudioContext(audioContext: AudioContext | undefined): void;
|
22
30
|
getSenderStats(): Promise<AudioSenderStats | undefined>;
|
23
31
|
checkForSilence(): Promise<boolean>;
|
24
32
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"LocalAudioTrack.d.ts","sourceRoot":"","sources":["../../../../src/room/track/LocalAudioTrack.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEjD,OAAO,UAAU,MAAM,cAAc,CAAC;AAEtC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;
|
1
|
+
{"version":3,"file":"LocalAudioTrack.d.ts","sourceRoot":"","sources":["../../../../src/room/track/LocalAudioTrack.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEjD,OAAO,UAAU,MAAM,cAAc,CAAC;AAEtC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AACrD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAGxD,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,UAAU;IACrD,gBAAgB;IAChB,UAAU,EAAE,OAAO,CAAS;IAE5B,OAAO,CAAC,YAAY,CAAC,CAAe;IAEpC,OAAO,CAAC,SAAS,CAAC,CAAmB;IAErC;;;;;OAKG;gBAED,UAAU,EAAE,gBAAgB,EAC5B,WAAW,CAAC,EAAE,qBAAqB,EACnC,iBAAiB,UAAO,EACxB,YAAY,CAAC,EAAE,YAAY;IAOvB,WAAW,CAAC,QAAQ,EAAE,kBAAkB,GAAG,OAAO,CAAC,OAAO,CAAC;IAa3D,IAAI,IAAI,OAAO,CAAC,eAAe,CAAC;IAgBhC,MAAM,IAAI,OAAO,CAAC,eAAe,CAAC;IAwBlC,YAAY,CAAC,OAAO,CAAC,EAAE,mBAAmB;cAWhC,OAAO,CAAC,WAAW,CAAC,EAAE,qBAAqB,GAAG,OAAO,CAAC,UAAU,CAAC;IAOjF,YAAY;IAYZ,SAAS,CAAC,aAAa,sBAmBrB;IAEI,YAAY,CAAC,SAAS,EAAE,cAAc,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC;IAgC9D;;;OAGG;IACH,eAAe,CAAC,YAAY,EAAE,YAAY,GAAG,SAAS;IAIhD,cAAc,IAAI,OAAO,CAAC,gBAAgB,GAAG,SAAS,CAAC;IAyBvD,eAAe;CAUtB"}
|
@@ -54,8 +54,8 @@ export default abstract class LocalTrack extends Track {
|
|
54
54
|
* the server.
|
55
55
|
* this API is unsupported on Safari < 12 due to a bug
|
56
56
|
**/
|
57
|
-
pauseUpstream
|
58
|
-
resumeUpstream
|
57
|
+
pauseUpstream(): Promise<void>;
|
58
|
+
resumeUpstream(): Promise<void>;
|
59
59
|
/**
|
60
60
|
* Sets a processor on this track.
|
61
61
|
* See https://github.com/livekit/track-processors-js for example usage
|
@@ -67,7 +67,7 @@ export default abstract class LocalTrack extends Track {
|
|
67
67
|
* @returns
|
68
68
|
*/
|
69
69
|
setProcessor(processor: TrackProcessor<typeof this.kind>, showProcessedStreamLocally?: boolean): Promise<void>;
|
70
|
-
getProcessor(): TrackProcessor<Track.Kind
|
70
|
+
getProcessor(): TrackProcessor<Track.Kind, import("./processor/types").ProcessorOptions<Track.Kind>> | undefined;
|
71
71
|
/**
|
72
72
|
* Stops the track processor
|
73
73
|
* See https://github.com/livekit/track-processors-js for example usage
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"LocalTrack.d.ts","sourceRoot":"","sources":["../../../../src/room/track/LocalTrack.ts"],"names":[],"mappings":"AAMA,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;AAIxD,MAAM,CAAC,OAAO,CAAC,QA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nC,YAAY;IAIZ;;;;;;OAMG;IACG,aAAa;IAanB,SAAS,CAAC,QAAQ,CAAC,aAAa,IAAI,IAAI;CACzC"}
|
@@ -3,7 +3,9 @@ import { VideoLayer, VideoQuality } from '../../proto/livekit_models_pb';
|
|
3
3
|
import { SubscribedCodec, SubscribedQuality } from '../../proto/livekit_rtc_pb';
|
4
4
|
import type { VideoSenderStats } from '../stats';
|
5
5
|
import LocalTrack from './LocalTrack';
|
6
|
+
import { Track } from './Track';
|
6
7
|
import type { VideoCaptureOptions, VideoCodec } from './options';
|
8
|
+
import type { TrackProcessor } from './processor/types';
|
7
9
|
export declare class SimulcastTrackInfo {
|
8
10
|
codec: VideoCodec;
|
9
11
|
mediaStreamTrack: MediaStreamTrack;
|
@@ -28,12 +30,16 @@ export default class LocalVideoTrack extends LocalTrack {
|
|
28
30
|
get isSimulcast(): boolean;
|
29
31
|
startMonitor(signalClient: SignalClient): void;
|
30
32
|
stop(): void;
|
33
|
+
pauseUpstream(): Promise<void>;
|
34
|
+
resumeUpstream(): Promise<void>;
|
31
35
|
mute(): Promise<LocalVideoTrack>;
|
32
36
|
unmute(): Promise<LocalVideoTrack>;
|
37
|
+
protected setTrackMuted(muted: boolean): void;
|
33
38
|
getSenderStats(): Promise<VideoSenderStats[]>;
|
34
39
|
setPublishingQuality(maxQuality: VideoQuality): void;
|
35
40
|
setDeviceId(deviceId: ConstrainDOMString): Promise<boolean>;
|
36
41
|
restartTrack(options?: VideoCaptureOptions): Promise<void>;
|
42
|
+
setProcessor(processor: TrackProcessor<Track.Kind>, showProcessedStreamLocally?: boolean): Promise<void>;
|
37
43
|
addSimulcastTrack(codec: VideoCodec, encodings?: RTCRtpEncodingParameters[]): SimulcastTrackInfo;
|
38
44
|
setSimulcastTrackSender(codec: VideoCodec, sender: RTCRtpSender): void;
|
39
45
|
/**
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"LocalVideoTrack.d.ts","sourceRoot":"","sources":["../../../../src/room/track/LocalVideo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CAW5D;AAED,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,SAAS,CAAC,EAAE,wBAAwB,EAAE,EACtC,GAAG,CAAC,EAAE,OAAO,GACZ,UAAU,EAAE,CA6Cd"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"RemoteAudioTrack.d.ts","sourceRoot":"","sources":["../../../../src/room/track/RemoteAudioTrack.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAEnD,OAAO,WAAW,MAAM,eAAe,CAAC;AAExC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAEpD,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,WAAW;IACvD,OAAO,CAAC,SAAS,CAAC,CAAqB;IAEvC,OAAO,CAAC,aAAa,CAAqB;IAE1C,OAAO,CAAC,YAAY,CAAC,CAAe;IAEpC,OAAO,CAAC,QAAQ,CAAC,CAAW;IAE5B,OAAO,CAAC,UAAU,CAAC,CAA6B;IAEhD,OAAO,CAAC,mBAAmB,CAAc;IAEzC,OAAO,CAAC,MAAM,CAAC,CAAS;gBAGtB,UAAU,EAAE,gBAAgB,EAC5B,GAAG,EAAE,MAAM,EACX,QAAQ,CAAC,EAAE,cAAc,EACzB,YAAY,CAAC,EAAE,YAAY,EAC3B,WAAW,CAAC,EAAE,kBAAkB;IAUlC;;OAEG;IACH,SAAS,CAAC,MAAM,EAAE,MAAM;
|
1
|
+
{"version":3,"file":"RemoteAudioTrack.d.ts","sourceRoot":"","sources":["../../../../src/room/track/RemoteAudioTrack.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAEnD,OAAO,WAAW,MAAM,eAAe,CAAC;AAExC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAEpD,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,WAAW;IACvD,OAAO,CAAC,SAAS,CAAC,CAAqB;IAEvC,OAAO,CAAC,aAAa,CAAqB;IAE1C,OAAO,CAAC,YAAY,CAAC,CAAe;IAEpC,OAAO,CAAC,QAAQ,CAAC,CAAW;IAE5B,OAAO,CAAC,UAAU,CAAC,CAA6B;IAEhD,OAAO,CAAC,mBAAmB,CAAc;IAEzC,OAAO,CAAC,MAAM,CAAC,CAAS;gBAGtB,UAAU,EAAE,gBAAgB,EAC5B,GAAG,EAAE,MAAM,EACX,QAAQ,CAAC,EAAE,cAAc,EACzB,YAAY,CAAC,EAAE,YAAY,EAC3B,WAAW,CAAC,EAAE,kBAAkB;IAUlC;;OAEG;IACH,SAAS,CAAC,MAAM,EAAE,MAAM;IAexB;;OAEG;IACH,SAAS,IAAI,MAAM;IAiBnB;;;OAGG;IACG,SAAS,CAAC,QAAQ,EAAE,MAAM;IAahC,MAAM,IAAI,gBAAgB;IAC1B,MAAM,CAAC,OAAO,EAAE,gBAAgB,GAAG,gBAAgB;IAwBnD;;OAEG;IACH,MAAM,IAAI,gBAAgB,EAAE;IAE5B;;;OAGG;IACH,MAAM,CAAC,OAAO,EAAE,gBAAgB,GAAG,gBAAgB;IAqBnD;;;OAGG;IACH,eAAe,CAAC,YAAY,EAAE,YAAY,GAAG,SAAS;IAStD;;;;OAIG;IACH,kBAAkB,CAAC,KAAK,EAAE,SAAS,EAAE;IAOrC,OAAO,CAAC,eAAe;IAmCvB,OAAO,CAAC,kBAAkB;IAO1B,SAAS,CAAC,eAAe,sBAYvB;cAEc,gBAAgB,IAAI,OAAO,CAAC,kBAAkB,GAAG,SAAS,CAAC;CAyB5E"}
|
@@ -10,9 +10,20 @@ export type ProcessorOptions<T extends Track.Kind> = {
|
|
10
10
|
/**
|
11
11
|
* @experimental
|
12
12
|
*/
|
13
|
-
export interface
|
13
|
+
export interface AudioProcessorOptions extends ProcessorOptions<Track.Kind.Audio> {
|
14
|
+
audioContext: AudioContext;
|
15
|
+
}
|
16
|
+
/**
|
17
|
+
* @experimental
|
18
|
+
*/
|
19
|
+
export interface VideoProcessorOptions extends ProcessorOptions<Track.Kind.Video> {
|
20
|
+
}
|
21
|
+
/**
|
22
|
+
* @experimental
|
23
|
+
*/
|
24
|
+
export interface TrackProcessor<T extends Track.Kind, U extends ProcessorOptions<T> = ProcessorOptions<T>> {
|
14
25
|
name: string;
|
15
|
-
init: (opts:
|
26
|
+
init: (opts: U) => void;
|
16
27
|
destroy: () => Promise<void>;
|
17
28
|
processedTrack?: MediaStreamTrack;
|
18
29
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/room/track/processor/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEtC;;GAEG;AACH,MAAM,MAAM,gBAAgB,CAAC,CAAC,SAAS,KAAK,CAAC,IAAI,IAAI;IACnD,IAAI,EAAE,CAAC,CAAC;IACR,KAAK,EAAE,gBAAgB,CAAC;IACxB,OAAO,CAAC,EAAE,gBAAgB,CAAC;CAC5B,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/room/track/processor/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEtC;;GAEG;AACH,MAAM,MAAM,gBAAgB,CAAC,CAAC,SAAS,KAAK,CAAC,IAAI,IAAI;IACnD,IAAI,EAAE,CAAC,CAAC;IACR,KAAK,EAAE,gBAAgB,CAAC;IACxB,OAAO,CAAC,EAAE,gBAAgB,CAAC;CAC5B,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,qBAAsB,SAAQ,gBAAgB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC;IAC/E,YAAY,EAAE,YAAY,CAAC;CAC5B;AAED;;GAEG;AACH,MAAM,WAAW,qBAAsB,SAAQ,gBAAgB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC;CAAG;AAEpF;;GAEG;AACH,MAAM,WAAW,cAAc,CAC7B,CAAC,SAAS,KAAK,CAAC,IAAI,EACpB,CAAC,SAAS,gBAAgB,CAAC,CAAC,CAAC,GAAG,gBAAgB,CAAC,CAAC,CAAC;IAEnD,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,CAAC;IACxB,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7B,cAAc,CAAC,EAAE,gBAAgB,CAAC;CACnC"}
|
package/dist/src/room/types.d.ts
CHANGED
@@ -22,5 +22,5 @@ export type LiveKitReactNativeInfo = {
|
|
22
22
|
platform: 'ios' | 'android' | 'windows' | 'macos' | 'web' | 'native';
|
23
23
|
devicePixelRatio: number;
|
24
24
|
};
|
25
|
-
export type SimulationScenario = 'signal-reconnect' | 'speaker' | 'node-failure' | 'server-leave' | 'migration' | 'resume-reconnect' | 'force-tcp' | 'force-tls' | 'full-reconnect';
|
25
|
+
export type SimulationScenario = 'signal-reconnect' | 'speaker' | 'node-failure' | 'server-leave' | 'migration' | 'resume-reconnect' | 'force-tcp' | 'force-tls' | 'full-reconnect' | 'subscriber-bandwidth';
|
26
26
|
//# sourceMappingURL=types.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/room/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,iBAAiB,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,iBAAiB,GAAG;IAC9B,OAAO,CAAC,EAAE;QACR,KAAK,CAAC,EAAE,OAAO,CAAC;QAChB,KAAK,CAAC,EAAE,OAAO,CAAC;QAChB,aAAa,CAAC,EAAE,OAAO,CAAC;KACzB,CAAC;IACF,YAAY,CAAC,EAAE;QACb,KAAK,CAAC,EAAE,MAAM,CAA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E,GAAG,MAAM,EAAE,CAAC;IAC7C,uDAAuD;IACvD,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IAEnC,QAAQ,EAAE,KAAK,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,KAAK,GAAG,QAAQ,CAAC;IACrE,gBAAgB,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAC1B,kBAAkB,GAClB,SAAS,GACT,cAAc,GACd,cAAc,GACd,WAAW,GACX,kBAAkB,GAClB,WAAW,GACX,WAAW,GACX,gBAAgB,GAIhB,sBAAsB,CAAC"}
|
@@ -1,17 +1,13 @@
|
|
1
1
|
import { ParticipantInfo, ReconnectReason, Room, SpeakerInfo, VideoLayer } from '../proto/livekit_models_pb';
|
2
2
|
import { AddTrackRequest, ConnectionQualityUpdate, JoinResponse, LeaveRequest, ReconnectResponse, SessionDescription, SignalRequest, SignalTarget, SimulateScenario, StreamStateUpdate, SubscribedQualityUpdate, SubscriptionPermissionUpdate, SubscriptionResponse, SyncState, TrackPermission, TrackPublishedResponse, TrackUnpublishedResponse, UpdateSubscription, UpdateTrackSettings } from '../proto/livekit_rtc_pb';
|
3
3
|
import { AsyncQueue } from '../utils/AsyncQueue';
|
4
|
-
interface ConnectOpts {
|
5
|
-
autoSubscribe: boolean;
|
4
|
+
interface ConnectOpts extends SignalOptions {
|
6
5
|
/** internal */
|
7
6
|
reconnect?: boolean;
|
8
7
|
/** internal */
|
9
8
|
reconnectReason?: number;
|
10
9
|
/** internal */
|
11
10
|
sid?: string;
|
12
|
-
/** @deprecated */
|
13
|
-
publishOnly?: string;
|
14
|
-
adaptiveStream?: boolean;
|
15
11
|
}
|
16
12
|
export interface SignalOptions {
|
17
13
|
autoSubscribe: boolean;
|
@@ -20,6 +16,7 @@ export interface SignalOptions {
|
|
20
16
|
adaptiveStream?: boolean;
|
21
17
|
maxRetries: number;
|
22
18
|
e2eeEnabled: boolean;
|
19
|
+
websocketTimeout: number;
|
23
20
|
}
|
24
21
|
type SignalMessage = SignalRequest['message'];
|
25
22
|
/** @internal */
|
@@ -21,6 +21,10 @@ export declare class E2EEManager extends E2EEManager_base {
|
|
21
21
|
* @internal
|
22
22
|
*/
|
23
23
|
setParticipantCryptorEnabled(enabled: boolean, participantId?: string): Promise<void>;
|
24
|
+
/**
|
25
|
+
* @internal
|
26
|
+
*/
|
27
|
+
setSifTrailer(trailer: Uint8Array): void;
|
24
28
|
private onWorkerMessage;
|
25
29
|
private onWorkerError;
|
26
30
|
setupEngine(engine: RTCEngine): void;
|
@@ -28,6 +32,7 @@ export declare class E2EEManager extends E2EEManager_base {
|
|
28
32
|
private postRatchetRequest;
|
29
33
|
private postKey;
|
30
34
|
private postRTPMap;
|
35
|
+
private postSifTrailer;
|
31
36
|
private setupE2EEReceiver;
|
32
37
|
private setupE2EESender;
|
33
38
|
/**
|
@@ -35,10 +35,12 @@ export declare class ExternalE2EEKeyProvider extends BaseKeyProvider {
|
|
35
35
|
ratchetInterval: number | undefined;
|
36
36
|
constructor(options?: Partial<Omit<KeyProviderOptions, 'sharedKey'>>);
|
37
37
|
/**
|
38
|
-
* Accepts a passphrase that's used to create the crypto keys
|
38
|
+
* Accepts a passphrase that's used to create the crypto keys.
|
39
|
+
* When passing in a string, PBKDF2 is used.
|
40
|
+
* Also accepts an Array buffer of cryptographically random numbers that uses HKDF.
|
39
41
|
* @param key
|
40
42
|
*/
|
41
|
-
setKey(key: string): Promise<void>;
|
43
|
+
setKey(key: string | ArrayBuffer): Promise<void>;
|
42
44
|
}
|
43
45
|
export {};
|
44
46
|
//# sourceMappingURL=KeyProvider.d.ts.map
|
@@ -12,4 +12,6 @@ export declare const IV_LENGTH = 12;
|
|
12
12
|
export declare const E2EE_FLAG = "lk_e2ee";
|
13
13
|
export declare const SALT = "LKFrameEncryptionKey";
|
14
14
|
export declare const KEY_PROVIDER_DEFAULTS: KeyProviderOptions;
|
15
|
+
export declare const MAX_SIF_COUNT = 100;
|
16
|
+
export declare const MAX_SIF_DURATION = 2000;
|
15
17
|
//# sourceMappingURL=constants.d.ts.map
|
@@ -26,6 +26,12 @@ export interface RTPVideoMapMessage extends BaseMessage {
|
|
26
26
|
map: Map<number, VideoCodec>;
|
27
27
|
};
|
28
28
|
}
|
29
|
+
export interface SifTrailerMessage extends BaseMessage {
|
30
|
+
kind: 'setSifTrailer';
|
31
|
+
data: {
|
32
|
+
trailer: Uint8Array;
|
33
|
+
};
|
34
|
+
}
|
29
35
|
export interface EncodeMessage extends BaseMessage {
|
30
36
|
kind: 'decode' | 'encode';
|
31
37
|
data: {
|
@@ -78,7 +84,7 @@ export interface EnableMessage extends BaseMessage {
|
|
78
84
|
enabled: boolean;
|
79
85
|
};
|
80
86
|
}
|
81
|
-
export type E2EEWorkerMessage = InitMessage | SetKeyMessage | EncodeMessage | ErrorMessage | EnableMessage | RemoveTransformMessage | RTPVideoMapMessage | UpdateCodecMessage | RatchetRequestMessage | RatchetMessage;
|
87
|
+
export type E2EEWorkerMessage = InitMessage | SetKeyMessage | EncodeMessage | ErrorMessage | EnableMessage | RemoveTransformMessage | RTPVideoMapMessage | UpdateCodecMessage | RatchetRequestMessage | RatchetMessage | SifTrailerMessage;
|
82
88
|
export type KeySet = {
|
83
89
|
material: CryptoKey;
|
84
90
|
encryptionKey: CryptoKey;
|
@@ -6,6 +6,7 @@ export declare function importKey(keyBytes: Uint8Array | ArrayBuffer, algorithm?
|
|
6
6
|
name: string;
|
7
7
|
}, usage?: 'derive' | 'encrypt'): Promise<CryptoKey>;
|
8
8
|
export declare function createKeyMaterialFromString(password: string): Promise<CryptoKey>;
|
9
|
+
export declare function createKeyMaterialFromBuffer(cryptoBuffer: ArrayBuffer): Promise<CryptoKey>;
|
9
10
|
/**
|
10
11
|
* Derives a set of keys from the master key.
|
11
12
|
* See https://tools.ietf.org/html/draft-omara-sframe-00#section-4.3.1
|
@@ -31,12 +31,13 @@ export declare class FrameCryptor extends BaseFrameCryptor {
|
|
31
31
|
/**
|
32
32
|
* used for detecting server injected unencrypted frames
|
33
33
|
*/
|
34
|
-
private
|
34
|
+
private sifTrailer;
|
35
|
+
private sifGuard;
|
35
36
|
constructor(opts: {
|
36
37
|
keys: ParticipantKeyHandler;
|
37
38
|
participantId: string;
|
38
39
|
keyProviderOptions: KeyProviderOptions;
|
39
|
-
|
40
|
+
sifTrailer?: Uint8Array;
|
40
41
|
});
|
41
42
|
/**
|
42
43
|
* Assign a different participant to the cryptor.
|
@@ -119,6 +120,7 @@ export declare class FrameCryptor extends BaseFrameCryptor {
|
|
119
120
|
* inspects frame payloadtype if available and maps it to the codec specified in rtpMap
|
120
121
|
*/
|
121
122
|
getVideoCodec(frame: RTCEncodedVideoFrame): VideoCodec | undefined;
|
123
|
+
setSifTrailer(trailer: Uint8Array): void;
|
122
124
|
}
|
123
125
|
/**
|
124
126
|
* Slice the NALUs present in the supplied buffer, assuming it is already byte-aligned
|
@@ -0,0 +1,11 @@
|
|
1
|
+
export declare class SifGuard {
|
2
|
+
private consecutiveSifCount;
|
3
|
+
private sifSequenceStartedAt;
|
4
|
+
private lastSifReceivedAt;
|
5
|
+
private userFramesSinceSif;
|
6
|
+
recordSif(): void;
|
7
|
+
recordUserFrame(): void;
|
8
|
+
isSifAllowed(): boolean;
|
9
|
+
reset(): void;
|
10
|
+
}
|
11
|
+
//# sourceMappingURL=SifGuard.d.ts.map
|
@@ -23,6 +23,9 @@ export interface InternalRoomOptions {
|
|
23
23
|
* enable Dynacast, off by default. With Dynacast dynamically pauses
|
24
24
|
* video layers that are not being consumed by any subscribers, significantly
|
25
25
|
* reducing publishing CPU and bandwidth usage.
|
26
|
+
*
|
27
|
+
* Dynacast will be enabled if SVC codecs (VP9/AV1) are used. Multi-codec simulcast
|
28
|
+
* requires dynacast
|
26
29
|
*/
|
27
30
|
dynacast: boolean;
|
28
31
|
/**
|
@@ -95,6 +98,8 @@ export interface InternalRoomConnectOptions {
|
|
95
98
|
publishOnly?: string;
|
96
99
|
/** specifies how often an initial join connection is allowed to retry (only applicable if server is not reachable) */
|
97
100
|
maxRetries: number;
|
101
|
+
/** amount of time for Websocket connection to be established, defaults to 15s */
|
102
|
+
websocketTimeout: number;
|
98
103
|
}
|
99
104
|
/**
|
100
105
|
* Options for Room.connect()
|
@@ -5,5 +5,6 @@ export default class DeviceManager {
|
|
5
5
|
static userMediaPromiseMap: Map<MediaDeviceKind, Promise<MediaStream>>;
|
6
6
|
getDevices(kind?: MediaDeviceKind, requestPermissions?: boolean): Promise<MediaDeviceInfo[]>;
|
7
7
|
normalizeDeviceId(kind: MediaDeviceKind, deviceId?: string, groupId?: string): Promise<string | undefined>;
|
8
|
+
private hasDeviceInUse;
|
8
9
|
}
|
9
10
|
//# sourceMappingURL=DeviceManager.d.ts.map
|
@@ -123,7 +123,7 @@ declare class Room extends Room_base {
|
|
123
123
|
/**
|
124
124
|
* @internal for testing
|
125
125
|
*/
|
126
|
-
simulateScenario(scenario: SimulationScenario): Promise<void>;
|
126
|
+
simulateScenario(scenario: SimulationScenario, arg?: any): Promise<void>;
|
127
127
|
private onPageLeave;
|
128
128
|
/**
|
129
129
|
* Browsers have different policies regarding audio playback. Most requiring
|
@@ -33,6 +33,7 @@ export default class Participant extends Participant_base {
|
|
33
33
|
lastSpokeAt?: Date | undefined;
|
34
34
|
permissions?: ParticipantPermission;
|
35
35
|
private _connectionQuality;
|
36
|
+
protected audioContext?: AudioContext;
|
36
37
|
get isEncrypted(): boolean;
|
37
38
|
/** @internal */
|
38
39
|
constructor(sid: string, identity: string, name?: string, metadata?: string);
|
@@ -68,6 +69,10 @@ export default class Participant extends Participant_base {
|
|
68
69
|
setIsSpeaking(speaking: boolean): void;
|
69
70
|
/** @internal */
|
70
71
|
setConnectionQuality(q: ProtoQuality): void;
|
72
|
+
/**
|
73
|
+
* @internal
|
74
|
+
*/
|
75
|
+
setAudioContext(ctx: AudioContext | undefined): void;
|
71
76
|
protected addTrackPublication(publication: TrackPublication): void;
|
72
77
|
}
|
73
78
|
export type ParticipantEventCallbacks = {
|
@@ -12,7 +12,6 @@ export default class RemoteParticipant extends Participant {
|
|
12
12
|
tracks: Map<string, RemoteTrackPublication>;
|
13
13
|
signalClient: SignalClient;
|
14
14
|
private volumeMap;
|
15
|
-
private audioContext?;
|
16
15
|
private audioOutput?;
|
17
16
|
/** @internal */
|
18
17
|
static fromParticipantInfo(signalClient: SignalClient, pi: ParticipantInfo): RemoteParticipant;
|
@@ -41,10 +40,6 @@ export default class RemoteParticipant extends Participant {
|
|
41
40
|
updateInfo(info: ParticipantInfo): boolean;
|
42
41
|
/** @internal */
|
43
42
|
unpublishTrack(sid: Track.SID, sendUnpublish?: boolean): void;
|
44
|
-
/**
|
45
|
-
* @internal
|
46
|
-
*/
|
47
|
-
setAudioContext(ctx: AudioContext | undefined): void;
|
48
43
|
/**
|
49
44
|
* @internal
|
50
45
|
*/
|
@@ -7,7 +7,7 @@
|
|
7
7
|
export default class CriticalTimers {
|
8
8
|
static setTimeout: (callback: (args: void) => void, ms?: number | undefined) => NodeJS.Timeout;
|
9
9
|
static setInterval: (callback: (args: void) => void, ms?: number | undefined) => NodeJS.Timer;
|
10
|
-
static clearTimeout: (timeoutId: NodeJS.Timeout) => void;
|
11
|
-
static clearInterval: (intervalId: NodeJS.Timeout) => void;
|
10
|
+
static clearTimeout: (timeoutId: string | number | NodeJS.Timeout | undefined) => void;
|
11
|
+
static clearInterval: (intervalId: string | number | NodeJS.Timeout | undefined) => void;
|
12
12
|
}
|
13
13
|
//# sourceMappingURL=timers.d.ts.map
|
@@ -1,9 +1,11 @@
|
|
1
1
|
import type { AudioSenderStats } from '../stats';
|
2
2
|
import LocalTrack from './LocalTrack';
|
3
3
|
import type { AudioCaptureOptions } from './options';
|
4
|
+
import type { TrackProcessor } from './processor/types';
|
4
5
|
export default class LocalAudioTrack extends LocalTrack {
|
5
6
|
/** @internal */
|
6
7
|
stopOnMute: boolean;
|
8
|
+
private audioContext?;
|
7
9
|
private prevStats?;
|
8
10
|
/**
|
9
11
|
*
|
@@ -11,7 +13,7 @@ export default class LocalAudioTrack extends LocalTrack {
|
|
11
13
|
* @param constraints MediaTrackConstraints that are being used when restarting or reacquiring tracks
|
12
14
|
* @param userProvidedTrack Signals to the SDK whether or not the mediaTrack should be managed (i.e. released and reacquired) internally by the SDK
|
13
15
|
*/
|
14
|
-
constructor(mediaTrack: MediaStreamTrack, constraints?: MediaTrackConstraints, userProvidedTrack?: boolean);
|
16
|
+
constructor(mediaTrack: MediaStreamTrack, constraints?: MediaTrackConstraints, userProvidedTrack?: boolean, audioContext?: AudioContext);
|
15
17
|
setDeviceId(deviceId: ConstrainDOMString): Promise<boolean>;
|
16
18
|
mute(): Promise<LocalAudioTrack>;
|
17
19
|
unmute(): Promise<LocalAudioTrack>;
|
@@ -19,6 +21,12 @@ export default class LocalAudioTrack extends LocalTrack {
|
|
19
21
|
protected restart(constraints?: MediaTrackConstraints): Promise<LocalTrack>;
|
20
22
|
startMonitor(): void;
|
21
23
|
protected monitorSender: () => Promise<void>;
|
24
|
+
setProcessor(processor: TrackProcessor<typeof this.kind>): Promise<void>;
|
25
|
+
/**
|
26
|
+
* @internal
|
27
|
+
* @experimental
|
28
|
+
*/
|
29
|
+
setAudioContext(audioContext: AudioContext | undefined): void;
|
22
30
|
getSenderStats(): Promise<AudioSenderStats | undefined>;
|
23
31
|
checkForSilence(): Promise<boolean>;
|
24
32
|
}
|
@@ -54,8 +54,8 @@ export default abstract class LocalTrack extends Track {
|
|
54
54
|
* the server.
|
55
55
|
* this API is unsupported on Safari < 12 due to a bug
|
56
56
|
**/
|
57
|
-
pauseUpstream
|
58
|
-
resumeUpstream
|
57
|
+
pauseUpstream(): Promise<void>;
|
58
|
+
resumeUpstream(): Promise<void>;
|
59
59
|
/**
|
60
60
|
* Sets a processor on this track.
|
61
61
|
* See https://github.com/livekit/track-processors-js for example usage
|
@@ -67,7 +67,7 @@ export default abstract class LocalTrack extends Track {
|
|
67
67
|
* @returns
|
68
68
|
*/
|
69
69
|
setProcessor(processor: TrackProcessor<typeof this.kind>, showProcessedStreamLocally?: boolean): Promise<void>;
|
70
|
-
getProcessor(): TrackProcessor<Track.Kind
|
70
|
+
getProcessor(): TrackProcessor<Track.Kind, import("./processor/types").ProcessorOptions<Track.Kind>> | undefined;
|
71
71
|
/**
|
72
72
|
* Stops the track processor
|
73
73
|
* See https://github.com/livekit/track-processors-js for example usage
|