livekit-client 2.0.2 → 2.0.3
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 +52 -17
- package/dist/livekit-client.e2ee.worker.mjs.map +1 -1
- package/dist/livekit-client.esm.mjs +69 -40
- 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/KeyProvider.d.ts +1 -1
- package/dist/src/e2ee/KeyProvider.d.ts.map +1 -1
- package/dist/src/e2ee/worker/FrameCryptor.d.ts +1 -0
- package/dist/src/e2ee/worker/FrameCryptor.d.ts.map +1 -1
- package/dist/src/e2ee/worker/ParticipantKeyHandler.d.ts +2 -2
- package/dist/src/e2ee/worker/ParticipantKeyHandler.d.ts.map +1 -1
- package/dist/src/room/Room.d.ts +1 -0
- package/dist/src/room/Room.d.ts.map +1 -1
- package/dist/src/room/events.d.ts +5 -1
- package/dist/src/room/events.d.ts.map +1 -1
- package/dist/src/room/track/LocalAudioTrack.d.ts.map +1 -1
- package/dist/src/room/track/LocalTrack.d.ts +1 -0
- package/dist/src/room/track/LocalTrack.d.ts.map +1 -1
- package/dist/src/room/track/Track.d.ts +2 -0
- package/dist/src/room/track/Track.d.ts.map +1 -1
- package/dist/ts4.2/src/e2ee/KeyProvider.d.ts +1 -1
- package/dist/ts4.2/src/e2ee/worker/FrameCryptor.d.ts +1 -0
- package/dist/ts4.2/src/e2ee/worker/ParticipantKeyHandler.d.ts +2 -2
- package/dist/ts4.2/src/room/Room.d.ts +1 -0
- package/dist/ts4.2/src/room/events.d.ts +5 -1
- package/dist/ts4.2/src/room/track/LocalTrack.d.ts +1 -0
- package/dist/ts4.2/src/room/track/Track.d.ts +2 -0
- package/package.json +1 -1
- package/src/e2ee/KeyProvider.ts +6 -1
- package/src/e2ee/worker/FrameCryptor.ts +26 -0
- package/src/e2ee/worker/ParticipantKeyHandler.ts +9 -5
- package/src/e2ee/worker/e2ee.worker.ts +16 -17
- package/src/room/Room.ts +18 -4
- package/src/room/events.ts +4 -0
- package/src/room/track/LocalAudioTrack.ts +1 -0
- package/src/room/track/LocalTrack.ts +42 -33
- package/src/room/track/Track.ts +2 -0
@@ -7,7 +7,7 @@ declare const BaseKeyProvider_base: new () => TypedEventEmitter<KeyProviderCallb
|
|
7
7
|
*/
|
8
8
|
export declare class BaseKeyProvider extends BaseKeyProvider_base {
|
9
9
|
private keyInfoMap;
|
10
|
-
private options;
|
10
|
+
private readonly options;
|
11
11
|
constructor(options?: Partial<KeyProviderOptions>);
|
12
12
|
/**
|
13
13
|
* callback to invoke once a key has been set for a participant
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"KeyProvider.d.ts","sourceRoot":"","sources":["../../../src/e2ee/KeyProvider.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,iBAAiB,MAAM,eAAe,CAAC;AAGnD,OAAO,EAAE,KAAK,oBAAoB,EAAoB,MAAM,UAAU,CAAC;AACvE,OAAO,KAAK,EAAE,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;8CAMK,kBAAkB,oBAAoB,CAAC;AAHvG;;GAEG;AACH,qBAAa,eAAgB,SAAQ,oBAAmE;IACtG,OAAO,CAAC,UAAU,CAAuB;IAEzC,OAAO,CAAC,OAAO,CAAqB;
|
1
|
+
{"version":3,"file":"KeyProvider.d.ts","sourceRoot":"","sources":["../../../src/e2ee/KeyProvider.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,iBAAiB,MAAM,eAAe,CAAC;AAGnD,OAAO,EAAE,KAAK,oBAAoB,EAAoB,MAAM,UAAU,CAAC;AACvE,OAAO,KAAK,EAAE,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;8CAMK,kBAAkB,oBAAoB,CAAC;AAHvG;;GAEG;AACH,qBAAa,eAAgB,SAAQ,oBAAmE;IACtG,OAAO,CAAC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B,IAAI;IACrB,mCAAmC;IACnC,iBAAiB,IAAI;IACrB,mCAAmC;IACnC,iBAAiB,IAAI;IACrB,oCAAoC;IACpC,SAAS,IAAI;IACb,2CAA2C;IAC3C,GAAG,IAAI;IACP,6BAA6B;IAC7B,GAAG,IAAI;IACP,4BAA4B;IAC5B,GAAG,IAAI;IACP,4BAA4B;IAC5B,GAAG,IAAI;IACP,sBAAsB;IACtB,OAAO,KAAK;IACZ,oBAAoB;IACpB,UAAU,KAAK;IACf,kBAAkB;IAClB,WAAW,KAAK;IAChB,uCAAuC;IACvC,OAAO,KAAK;IACZ,sBAAsB;IACtB,WAAW,KAAK;IAChB,oCAAoC;IACpC,UAAU,KAAK;IACf,0BAA0B;IAC1B,GAAG,KAAK;IAIR,qEAAqE;IACrE,SAAS,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"}
|
@@ -44,11 +44,11 @@ export declare class ParticipantKeyHandler extends ParticipantKeyHandler_base {
|
|
44
44
|
setKey(material: CryptoKey, keyIndex?: number): Promise<void>;
|
45
45
|
/**
|
46
46
|
* takes in a key material with `deriveBits` and `deriveKey` set as key usages
|
47
|
-
* and derives encryption keys from the material and sets it on the key ring
|
47
|
+
* and derives encryption keys from the material and sets it on the key ring buffers
|
48
48
|
* together with the material
|
49
49
|
* also updates the currentKeyIndex
|
50
50
|
*/
|
51
|
-
setKeyFromMaterial(material: CryptoKey, keyIndex
|
51
|
+
setKeyFromMaterial(material: CryptoKey, keyIndex: number, emitRatchetEvent?: boolean): Promise<void>;
|
52
52
|
setKeySet(keySet: KeySet, keyIndex: number, emitRatchetEvent?: boolean): void;
|
53
53
|
setCurrentKeyIndex(index: number): Promise<void>;
|
54
54
|
getCurrentKeyIndex(): number;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ParticipantKeyHandler.d.ts","sourceRoot":"","sources":["../../../../src/e2ee/worker/ParticipantKeyHandler.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,iBAAiB,MAAM,eAAe,CAAC;AAGnD,OAAO,EAAmB,KAAK,8BAA8B,EAAE,MAAM,WAAW,CAAC;AACjF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;oDAcW,kBAAkB,8BAA8B,CAAC;AARvH;;;;;;;GAOG;AACH,qBAAa,qBAAsB,SAAQ,0BAA6E;IACtH,OAAO,CAAC,eAAe,CAAS;IAEhC,OAAO,CAAC,aAAa,CAA4B;IAEjD,OAAO,CAAC,kBAAkB,CAAqB;IAE/C,OAAO,CAAC,iBAAiB,CAAkC;IAE3D,OAAO,CAAC,mBAAmB,CAAS;IAEpC,OAAO,CAAC,sBAAsB,CAAK;IAEnC,OAAO,CAAC,YAAY,CAAiB;IAErC,IAAI,WAAW,YAEd;gBAEW,mBAAmB,EAAE,MAAM,EAAE,kBAAkB,EAAE,kBAAkB;IAU/E,iBAAiB;IAYjB,iBAAiB;IAIjB;;;OAGG;IACH,cAAc;IAKd;;;;;;OAMG;IACH,UAAU,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,MAAM,UAAO,GAAG,OAAO,CAAC,SAAS,CAAC;IA0ChE;;;;;OAKG;IACG,MAAM,CAAC,QAAQ,EAAE,SAAS,EAAE,QAAQ,SAAI;IAK9C;;;;;OAKG;IACG,kBAAkB,CAAC,QAAQ,EAAE,SAAS,EAAE,QAAQ,
|
1
|
+
{"version":3,"file":"ParticipantKeyHandler.d.ts","sourceRoot":"","sources":["../../../../src/e2ee/worker/ParticipantKeyHandler.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,iBAAiB,MAAM,eAAe,CAAC;AAGnD,OAAO,EAAmB,KAAK,8BAA8B,EAAE,MAAM,WAAW,CAAC;AACjF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;oDAcW,kBAAkB,8BAA8B,CAAC;AARvH;;;;;;;GAOG;AACH,qBAAa,qBAAsB,SAAQ,0BAA6E;IACtH,OAAO,CAAC,eAAe,CAAS;IAEhC,OAAO,CAAC,aAAa,CAA4B;IAEjD,OAAO,CAAC,kBAAkB,CAAqB;IAE/C,OAAO,CAAC,iBAAiB,CAAkC;IAE3D,OAAO,CAAC,mBAAmB,CAAS;IAEpC,OAAO,CAAC,sBAAsB,CAAK;IAEnC,OAAO,CAAC,YAAY,CAAiB;IAErC,IAAI,WAAW,YAEd;gBAEW,mBAAmB,EAAE,MAAM,EAAE,kBAAkB,EAAE,kBAAkB;IAU/E,iBAAiB;IAYjB,iBAAiB;IAIjB;;;OAGG;IACH,cAAc;IAKd;;;;;;OAMG;IACH,UAAU,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,MAAM,UAAO,GAAG,OAAO,CAAC,SAAS,CAAC;IA0ChE;;;;;OAKG;IACG,MAAM,CAAC,QAAQ,EAAE,SAAS,EAAE,QAAQ,SAAI;IAK9C;;;;;OAKG;IACG,kBAAkB,CAAC,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,gBAAgB,UAAQ;IAYxF,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,gBAAgB,UAAQ;IAQ9D,kBAAkB,CAAC,KAAK,EAAE,MAAM;IAKtC,kBAAkB;IAIlB;;;;OAIG;IACH,SAAS,CAAC,QAAQ,CAAC,EAAE,MAAM;CAG5B"}
|
package/dist/src/room/Room.d.ts
CHANGED
@@ -201,6 +201,7 @@ declare class Room extends Room_base {
|
|
201
201
|
private onLocalParticipantNameChanged;
|
202
202
|
private onLocalTrackMuted;
|
203
203
|
private onLocalTrackUnmuted;
|
204
|
+
private onTrackProcessorUpdate;
|
204
205
|
private onLocalTrackPublished;
|
205
206
|
private onLocalTrackUnpublished;
|
206
207
|
private onLocalConnectionQualityChanged;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Room.d.ts","sourceRoot":"","sources":["../../../src/room/Room.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,YAAY,MAAM,eAAe,CAAC;AAC9C,OAAO,gBAAgB,CAAC;AAIxB,OAAO,KAAK,EAEV,mBAAmB,EACnB,kBAAkB,EAClB,WAAW,EACZ,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,eAAe,EACf,gBAAgB,EAGhB,qBAAqB,EAIrB,iBAAiB,EAKlB,MAAM,4BAA4B,CAAC;AAYpC,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;AAGhE,OAAO,qBAAqB,MAAM,+BAA+B,CAAC;AAElE,OAAO,KAAK,WAAW,MAAM,qBAAqB,CAAC;AACnD,OAAO,sBAAsB,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACtC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;
|
1
|
+
{"version":3,"file":"Room.d.ts","sourceRoot":"","sources":["../../../src/room/Room.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,YAAY,MAAM,eAAe,CAAC;AAC9C,OAAO,gBAAgB,CAAC;AAIxB,OAAO,KAAK,EAEV,mBAAmB,EACnB,kBAAkB,EAClB,WAAW,EACZ,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,eAAe,EACf,gBAAgB,EAGhB,qBAAqB,EAIrB,iBAAiB,EAKlB,MAAM,4BAA4B,CAAC;AAYpC,OAAO,SAAS,MAAM,aAAa,CAAC;AAWpC,OAAO,gBAAgB,MAAM,gCAAgC,CAAC;AAC9D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,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;IACrD,kCAAkC,EAAE,CAAC,SAAS,EAAE,OAAO,EAAE,WAAW,CAAC,EAAE,WAAW,KAAK,IAAI,CAAC;IAC5F,eAAe,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACxC,qBAAqB,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,eAAe,KAAK,IAAI,CAAC;IACvE,mBAAmB,EAAE,CAAC,IAAI,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;CACxE,CAAC"}
|
@@ -490,6 +490,10 @@ export declare enum TrackEvent {
|
|
490
490
|
/**
|
491
491
|
* Fires on RemoteTrackPublication
|
492
492
|
*/
|
493
|
-
SubscriptionFailed = "subscriptionFailed"
|
493
|
+
SubscriptionFailed = "subscriptionFailed",
|
494
|
+
/**
|
495
|
+
* @internal
|
496
|
+
*/
|
497
|
+
TrackProcessorUpdate = "trackProcessorUpdate"
|
494
498
|
}
|
495
499
|
//# sourceMappingURL=events.d.ts.map
|
@@ -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;;OAEG;IACH,WAAW,gBAAgB;IAE3B;;;;;;;;;;OAUG;IACH,YAAY,iBAAiB;IAE7B;;;;OAIG;IACH,sBAAsB,2BAA2B;IAEjD;;OAEG;IACH,mBAAmB,wBAAwB;IAE3C;;;;;;OAMG;IACH,oBAAoB,yBAAyB;IAE7C;;;;;OAKG;IACH,uBAAuB,4BAA4B;IAEnD;;;;;;;;OAQG;IACH,cAAc,mBAAmB;IAEjC;;;;;OAKG;IACH,eAAe,oBAAoB;IAEnC;;;;OAIG;IACH,uBAAuB,4BAA4B;IAEnD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f,OAAO,YAAY;IACnB;;OAEG;IACH,SAAS,cAAc;IACvB,KAAK,UAAU;IACf,UAAU,eAAe;IACzB,YAAY,iBAAiB;IAC7B,gBAAgB;IAChB,cAAc,mBAAmB;IACjC,gBAAgB;IAChB,kBAAkB,uBAAuB;IACzC,gBAAgB;IAChB,oBAAoB,yBAAyB;IAC7C,gBAAgB;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;
|
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;;OAEG;IACH,WAAW,gBAAgB;IAE3B;;;;;;;;;;OAUG;IACH,YAAY,iBAAiB;IAE7B;;;;OAIG;IACH,sBAAsB,2BAA2B;IAEjD;;OAEG;IACH,mBAAmB,wBAAwB;IAE3C;;;;;;OAMG;IACH,oBAAoB,yBAAyB;IAE7C;;;;;OAKG;IACH,uBAAuB,4BAA4B;IAEnD;;;;;;;;OAQG;IACH,cAAc,mBAAmB;IAEjC;;;;;OAKG;IACH,eAAe,oBAAoB;IAEnC;;;;OAIG;IACH,uBAAuB,4BAA4B;IAEnD;;;;OAIG;IAC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;IACnB;;OAEG;IACH,SAAS,cAAc;IACvB,KAAK,UAAU;IACf,UAAU,eAAe;IACzB,YAAY,iBAAiB;IAC7B,gBAAgB;IAChB,cAAc,mBAAmB;IACjC,gBAAgB;IAChB,kBAAkB,uBAAuB;IACzC,gBAAgB;IAChB,oBAAoB,yBAAyB;IAC7C,gBAAgB;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;CAC9C"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"LocalAudioTrack.d.ts","sourceRoot":"","sources":["../../../../src/room/track/LocalAudioTrack.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AACjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE9C,OAAO,UAAU,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AACrD,OAAO,KAAK,EAAE,qBAAqB,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAG/E,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,UAAU,CAAC,KAAK,CAAC,IAAI,C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,CAAC;AAG/E,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC;IACvE,gBAAgB;IAChB,UAAU,EAAE,OAAO,CAAS;IAE5B,OAAO,CAAC,SAAS,CAAC,CAAmB;IAErC,SAAS,CAAC,SAAS,CAAC,EAAE,cAAc,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,EAAE,qBAAqB,CAAC,GAAG,SAAS,CAAC;IAE1F;;;;;OAKG;gBAED,UAAU,EAAE,gBAAgB,EAC5B,WAAW,CAAC,EAAE,qBAAqB,EACnC,iBAAiB,UAAO,EACxB,YAAY,CAAC,EAAE,YAAY,EAC3B,aAAa,CAAC,EAAE,aAAa;IAOzB,WAAW,CAAC,QAAQ,EAAE,kBAAkB,GAAG,OAAO,CAAC,OAAO,CAAC;IAa3D,IAAI,IAAI,OAAO,CAAC,OAAO,IAAI,CAAC;IAgB5B,MAAM,IAAI,OAAO,CAAC,OAAO,IAAI,CAAC;IAwB9B,YAAY,CAAC,OAAO,CAAC,EAAE,mBAAmB;cAWhC,OAAO,CAAC,WAAW,CAAC,EAAE,qBAAqB,GAAG,OAAO,CAAC,OAAO,IAAI,CAAC;IAOlF,YAAY;IAYZ,SAAS,CAAC,aAAa,sBAmBrB;IAEI,YAAY,CAAC,SAAS,EAAE,cAAc,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,EAAE,qBAAqB,CAAC;IA8BrF;;;OAGG;IACH,eAAe,CAAC,YAAY,EAAE,YAAY,GAAG,SAAS;IAIhD,cAAc,IAAI,OAAO,CAAC,gBAAgB,GAAG,SAAS,CAAC;IAyBvD,eAAe;CAUtB"}
|
@@ -18,6 +18,7 @@ export default abstract class LocalTrack<TrackKind extends Track.Kind = Track.Ki
|
|
18
18
|
protected processor?: TrackProcessor<TrackKind, any>;
|
19
19
|
protected processorLock: Mutex;
|
20
20
|
protected audioContext?: AudioContext;
|
21
|
+
private restartLock;
|
21
22
|
/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
4
|
import { TrackSource, TrackType } from '../../proto/livekit_models_pb';
|
5
5
|
import { StreamState as ProtoStreamState } from '../../proto/livekit_rtc_pb';
|
6
6
|
import type { LoggerOptions } from '../types';
|
7
|
+
import type { TrackProcessor } from './processor/types';
|
7
8
|
export declare enum VideoQuality {
|
8
9
|
LOW = 0,
|
9
10
|
MEDIUM = 1,
|
@@ -135,6 +136,7 @@ export type TrackEventCallbacks = {
|
|
135
136
|
elementDetached: (element: HTMLMediaElement) => void;
|
136
137
|
upstreamPaused: (track: any) => void;
|
137
138
|
upstreamResumed: (track: any) => void;
|
139
|
+
trackProcessorUpdate: (processor?: TrackProcessor<Track.Kind, any>) => void;
|
138
140
|
};
|
139
141
|
export {};
|
140
142
|
//# sourceMappingURL=Track.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Track.d.ts","sourceRoot":"","sources":["../../../../src/room/track/Track.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,iBAAiB,MAAM,eAAe,CAAC;AACnD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAY,EAAe,gBAAgB,EAAa,MAAM,cAAc,CAAC;AAC7E,OAAO,EAEL,WAAW,EACX,SAAS,EACV,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,WAAW,IAAI,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAE7E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;
|
1
|
+
{"version":3,"file":"Track.d.ts","sourceRoot":"","sources":["../../../../src/room/track/Track.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,iBAAiB,MAAM,eAAe,CAAC;AACnD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAY,EAAe,gBAAgB,EAAa,MAAM,cAAc,CAAC;AAC7E,OAAO,EAEL,WAAW,EACX,SAAS,EACV,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,WAAW,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,KAAK,KAAK,IAAI,CAAC;IAC7C,eAAe,EAAE,CAAC,OAAO,EAAE,gBAAgB,KAAK,IAAI,CAAC;IACrD,eAAe,EAAE,CAAC,OAAO,EAAE,gBAAgB,KAAK,IAAI,CAAC;IACrD,cAAc,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;IACrC,eAAe,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;IACtC,oBAAoB,EAAE,CAAC,SAAS,CAAC,EAAE,cAAc,CAAC,KAAK,CAAC,IAAI,EAAE,GAAG,CAAC,KAAK,IAAI,CAAC;CAC7E,CAAC"}
|
@@ -7,7 +7,7 @@ declare const BaseKeyProvider_base: new () => TypedEventEmitter<KeyProviderCallb
|
|
7
7
|
*/
|
8
8
|
export declare class BaseKeyProvider extends BaseKeyProvider_base {
|
9
9
|
private keyInfoMap;
|
10
|
-
private options;
|
10
|
+
private readonly options;
|
11
11
|
constructor(options?: Partial<KeyProviderOptions>);
|
12
12
|
/**
|
13
13
|
* callback to invoke once a key has been set for a participant
|
@@ -44,11 +44,11 @@ export declare class ParticipantKeyHandler extends ParticipantKeyHandler_base {
|
|
44
44
|
setKey(material: CryptoKey, keyIndex?: number): Promise<void>;
|
45
45
|
/**
|
46
46
|
* takes in a key material with `deriveBits` and `deriveKey` set as key usages
|
47
|
-
* and derives encryption keys from the material and sets it on the key ring
|
47
|
+
* and derives encryption keys from the material and sets it on the key ring buffers
|
48
48
|
* together with the material
|
49
49
|
* also updates the currentKeyIndex
|
50
50
|
*/
|
51
|
-
setKeyFromMaterial(material: CryptoKey, keyIndex
|
51
|
+
setKeyFromMaterial(material: CryptoKey, keyIndex: number, emitRatchetEvent?: boolean): Promise<void>;
|
52
52
|
setKeySet(keySet: KeySet, keyIndex: number, emitRatchetEvent?: boolean): void;
|
53
53
|
setCurrentKeyIndex(index: number): Promise<void>;
|
54
54
|
getCurrentKeyIndex(): number;
|
@@ -201,6 +201,7 @@ declare class Room extends Room_base {
|
|
201
201
|
private onLocalParticipantNameChanged;
|
202
202
|
private onLocalTrackMuted;
|
203
203
|
private onLocalTrackUnmuted;
|
204
|
+
private onTrackProcessorUpdate;
|
204
205
|
private onLocalTrackPublished;
|
205
206
|
private onLocalTrackUnpublished;
|
206
207
|
private onLocalConnectionQualityChanged;
|
@@ -490,6 +490,10 @@ export declare enum TrackEvent {
|
|
490
490
|
/**
|
491
491
|
* Fires on RemoteTrackPublication
|
492
492
|
*/
|
493
|
-
SubscriptionFailed = "subscriptionFailed"
|
493
|
+
SubscriptionFailed = "subscriptionFailed",
|
494
|
+
/**
|
495
|
+
* @internal
|
496
|
+
*/
|
497
|
+
TrackProcessorUpdate = "trackProcessorUpdate"
|
494
498
|
}
|
495
499
|
//# sourceMappingURL=events.d.ts.map
|
@@ -18,6 +18,7 @@ export default abstract class LocalTrack<TrackKind extends Track.Kind = Track.Ki
|
|
18
18
|
protected processor?: TrackProcessor<TrackKind, any>;
|
19
19
|
protected processorLock: Mutex;
|
20
20
|
protected audioContext?: AudioContext;
|
21
|
+
private restartLock;
|
21
22
|
/**
|
22
23
|
*
|
23
24
|
* @param mediaTrack
|
@@ -4,6 +4,7 @@ import { StructuredLogger } from '../../logger';
|
|
4
4
|
import { TrackSource, TrackType } from '../../proto/livekit_models_pb';
|
5
5
|
import { StreamState as ProtoStreamState } from '../../proto/livekit_rtc_pb';
|
6
6
|
import type { LoggerOptions } from '../types';
|
7
|
+
import type { TrackProcessor } from './processor/types';
|
7
8
|
export declare enum VideoQuality {
|
8
9
|
LOW = 0,
|
9
10
|
MEDIUM = 1,
|
@@ -135,6 +136,7 @@ export type TrackEventCallbacks = {
|
|
135
136
|
elementDetached: (element: HTMLMediaElement) => void;
|
136
137
|
upstreamPaused: (track: any) => void;
|
137
138
|
upstreamResumed: (track: any) => void;
|
139
|
+
trackProcessorUpdate: (processor?: TrackProcessor<Track.Kind, any>) => void;
|
138
140
|
};
|
139
141
|
export {};
|
140
142
|
//# sourceMappingURL=Track.d.ts.map
|
package/package.json
CHANGED
package/src/e2ee/KeyProvider.ts
CHANGED
@@ -12,7 +12,7 @@ import { createKeyMaterialFromBuffer, createKeyMaterialFromString } from './util
|
|
12
12
|
export class BaseKeyProvider extends (EventEmitter as new () => TypedEventEmitter<KeyProviderCallbacks>) {
|
13
13
|
private keyInfoMap: Map<string, KeyInfo>;
|
14
14
|
|
15
|
-
private options: KeyProviderOptions;
|
15
|
+
private readonly options: KeyProviderOptions;
|
16
16
|
|
17
17
|
constructor(options: Partial<KeyProviderOptions> = {}) {
|
18
18
|
super();
|
@@ -29,6 +29,11 @@ export class BaseKeyProvider extends (EventEmitter as new () => TypedEventEmitte
|
|
29
29
|
*/
|
30
30
|
protected onSetEncryptionKey(key: CryptoKey, participantIdentity?: string, keyIndex?: number) {
|
31
31
|
const keyInfo: KeyInfo = { key, participantIdentity, keyIndex };
|
32
|
+
if (!this.options.sharedKey && !participantIdentity) {
|
33
|
+
throw new Error(
|
34
|
+
'participant identity needs to be passed for encryption key if sharedKey option is false',
|
35
|
+
);
|
36
|
+
}
|
32
37
|
this.keyInfoMap.set(`${participantIdentity ?? 'shared'}-${keyIndex ?? 0}`, keyInfo);
|
33
38
|
this.emit(KeyProviderEvent.SetKey, keyInfo);
|
34
39
|
}
|
@@ -83,6 +83,14 @@ export class FrameCryptor extends BaseFrameCryptor {
|
|
83
83
|
this.sifGuard = new SifGuard();
|
84
84
|
}
|
85
85
|
|
86
|
+
private get logContext() {
|
87
|
+
return {
|
88
|
+
identity: this.participantIdentity,
|
89
|
+
trackId: this.trackId,
|
90
|
+
fallbackCodec: this.videoCodec,
|
91
|
+
};
|
92
|
+
}
|
93
|
+
|
86
94
|
/**
|
87
95
|
* Assign a different participant to the cryptor.
|
88
96
|
* useful for transceiver re-use
|
@@ -96,6 +104,7 @@ export class FrameCryptor extends BaseFrameCryptor {
|
|
96
104
|
}
|
97
105
|
|
98
106
|
unsetParticipant() {
|
107
|
+
workerLogger.debug('unsetting participant', this.logContext);
|
99
108
|
this.participantIdentity = undefined;
|
100
109
|
}
|
101
110
|
|
@@ -143,6 +152,13 @@ export class FrameCryptor extends BaseFrameCryptor {
|
|
143
152
|
this.videoCodec = codec;
|
144
153
|
}
|
145
154
|
|
155
|
+
workerLogger.debug('Setting up frame cryptor transform', {
|
156
|
+
operation,
|
157
|
+
passedTrackId: trackId,
|
158
|
+
codec,
|
159
|
+
...this.logContext,
|
160
|
+
});
|
161
|
+
|
146
162
|
const transformFn = operation === 'encode' ? this.encodeFunction : this.decodeFunction;
|
147
163
|
const transformStream = new TransformStream({
|
148
164
|
transform: transformFn.bind(this),
|
@@ -159,6 +175,7 @@ export class FrameCryptor extends BaseFrameCryptor {
|
|
159
175
|
}
|
160
176
|
|
161
177
|
setSifTrailer(trailer: Uint8Array) {
|
178
|
+
workerLogger.debug('setting SIF trailer', { ...this.logContext, trailer });
|
162
179
|
this.sifTrailer = trailer;
|
163
180
|
}
|
164
181
|
|
@@ -212,6 +229,8 @@ export class FrameCryptor extends BaseFrameCryptor {
|
|
212
229
|
encodedFrame.timestamp,
|
213
230
|
);
|
214
231
|
let frameInfo = this.getUnencryptedBytes(encodedFrame);
|
232
|
+
workerLogger.debug('frameInfo for encoded frame', { ...frameInfo, ...this.logContext });
|
233
|
+
|
215
234
|
// Thіs is not encrypted and contains the VP8 payload descriptor or the Opus TOC byte.
|
216
235
|
const frameHeader = new Uint8Array(encodedFrame.data, 0, frameInfo.unencryptedBytes);
|
217
236
|
|
@@ -262,6 +281,7 @@ export class FrameCryptor extends BaseFrameCryptor {
|
|
262
281
|
workerLogger.error(e);
|
263
282
|
}
|
264
283
|
} else {
|
284
|
+
workerLogger.debug('failed to decrypt, emitting error', this.logContext);
|
265
285
|
this.emit(
|
266
286
|
CryptorEvent.Error,
|
267
287
|
new CryptorError(`encryption key missing for encoding`, CryptorErrorReason.MissingKey),
|
@@ -284,11 +304,13 @@ export class FrameCryptor extends BaseFrameCryptor {
|
|
284
304
|
// skip for decryption for empty dtx frames
|
285
305
|
encodedFrame.data.byteLength === 0
|
286
306
|
) {
|
307
|
+
workerLogger.debug('skipping empty frame', this.logContext);
|
287
308
|
this.sifGuard.recordUserFrame();
|
288
309
|
return controller.enqueue(encodedFrame);
|
289
310
|
}
|
290
311
|
|
291
312
|
if (isFrameServerInjected(encodedFrame.data, this.sifTrailer)) {
|
313
|
+
workerLogger.debug('enqueue SIF', this.logContext);
|
292
314
|
this.sifGuard.recordSif();
|
293
315
|
|
294
316
|
if (this.sifGuard.isSifAllowed()) {
|
@@ -312,6 +334,7 @@ export class FrameCryptor extends BaseFrameCryptor {
|
|
312
334
|
const decodedFrame = await this.decryptFrame(encodedFrame, keyIndex);
|
313
335
|
this.keys.decryptionSuccess();
|
314
336
|
if (decodedFrame) {
|
337
|
+
workerLogger.debug('enqueue decrypted frame', this.logContext);
|
315
338
|
return controller.enqueue(decodedFrame);
|
316
339
|
}
|
317
340
|
} catch (error) {
|
@@ -352,6 +375,8 @@ export class FrameCryptor extends BaseFrameCryptor {
|
|
352
375
|
throw new TypeError(`no encryption key found for decryption of ${this.participantIdentity}`);
|
353
376
|
}
|
354
377
|
let frameInfo = this.getUnencryptedBytes(encodedFrame);
|
378
|
+
workerLogger.debug('frameInfo for decoded frame', { ...frameInfo, ...this.logContext });
|
379
|
+
|
355
380
|
// Construct frame trailer. Similar to the frame header described in
|
356
381
|
// https://tools.ietf.org/html/draft-omara-sframe-00#section-4.2
|
357
382
|
// but we put it at the end.
|
@@ -566,6 +591,7 @@ export class FrameCryptor extends BaseFrameCryptor {
|
|
566
591
|
// @ts-expect-error payloadType is not yet part of the typescript definition and currently not supported in Safari
|
567
592
|
const payloadType = frame.getMetadata().payloadType;
|
568
593
|
const codec = payloadType ? this.rtpMap.get(payloadType) : undefined;
|
594
|
+
workerLogger.debug('reading codec from frame', { codec, ...this.logContext });
|
569
595
|
return codec;
|
570
596
|
}
|
571
597
|
}
|
@@ -133,15 +133,19 @@ export class ParticipantKeyHandler extends (EventEmitter as new () => TypedEvent
|
|
133
133
|
|
134
134
|
/**
|
135
135
|
* takes in a key material with `deriveBits` and `deriveKey` set as key usages
|
136
|
-
* and derives encryption keys from the material and sets it on the key ring
|
136
|
+
* and derives encryption keys from the material and sets it on the key ring buffers
|
137
137
|
* together with the material
|
138
138
|
* also updates the currentKeyIndex
|
139
139
|
*/
|
140
|
-
async setKeyFromMaterial(material: CryptoKey, keyIndex
|
141
|
-
const newIndex = keyIndex >= 0 ? keyIndex % this.cryptoKeyRing.length : -1;
|
142
|
-
workerLogger.debug(`setting new key with index ${newIndex}`);
|
140
|
+
async setKeyFromMaterial(material: CryptoKey, keyIndex: number, emitRatchetEvent = false) {
|
143
141
|
const keySet = await deriveKeys(material, this.keyProviderOptions.ratchetSalt);
|
144
|
-
|
142
|
+
const newIndex = keyIndex >= 0 ? keyIndex % this.cryptoKeyRing.length : this.currentKeyIndex;
|
143
|
+
workerLogger.debug(`setting new key with index ${keyIndex}`, {
|
144
|
+
usage: material.usages,
|
145
|
+
algorithm: material.algorithm,
|
146
|
+
ratchetSalt: this.keyProviderOptions.ratchetSalt,
|
147
|
+
});
|
148
|
+
this.setKeySet(keySet, newIndex, emitRatchetEvent);
|
145
149
|
if (newIndex >= 0) this.currentKeyIndex = newIndex;
|
146
150
|
}
|
147
151
|
|
@@ -21,8 +21,6 @@ let isEncryptionEnabled: boolean = false;
|
|
21
21
|
|
22
22
|
let useSharedKey: boolean = false;
|
23
23
|
|
24
|
-
let sharedKey: CryptoKey | undefined;
|
25
|
-
|
26
24
|
let sifTrailer: Uint8Array | undefined;
|
27
25
|
|
28
26
|
let keyProviderOptions: KeyProviderOptions = KEY_PROVIDER_DEFAULTS;
|
@@ -72,10 +70,9 @@ onmessage = (ev) => {
|
|
72
70
|
break;
|
73
71
|
case 'setKey':
|
74
72
|
if (useSharedKey) {
|
75
|
-
workerLogger.warn('set shared key');
|
76
73
|
setSharedKey(data.key, data.keyIndex);
|
77
74
|
} else if (data.participantIdentity) {
|
78
|
-
workerLogger.
|
75
|
+
workerLogger.info(
|
79
76
|
`set participant sender key ${data.participantIdentity} index ${data.keyIndex}`,
|
80
77
|
);
|
81
78
|
getParticipantKeyHandler(data.participantIdentity).setKey(data.key, data.keyIndex);
|
@@ -125,9 +122,7 @@ async function handleRatchetRequest(data: RatchetRequestMessage['data']) {
|
|
125
122
|
}
|
126
123
|
|
127
124
|
function getTrackCryptor(participantIdentity: string, trackId: string) {
|
128
|
-
let cryptor = participantCryptors.find(
|
129
|
-
(c) => c.getParticipantIdentity() === participantIdentity && c.getTrackId() === trackId,
|
130
|
-
);
|
125
|
+
let cryptor = participantCryptors.find((c) => c.getTrackId() === trackId);
|
131
126
|
if (!cryptor) {
|
132
127
|
workerLogger.info('creating new cryptor for', { participantIdentity });
|
133
128
|
if (!keyProviderOptions) {
|
@@ -146,8 +141,7 @@ function getTrackCryptor(participantIdentity: string, trackId: string) {
|
|
146
141
|
// assign new participant id to track cryptor and pass in correct key handler
|
147
142
|
cryptor.setParticipant(participantIdentity, getParticipantKeyHandler(participantIdentity));
|
148
143
|
}
|
149
|
-
|
150
|
-
}
|
144
|
+
|
151
145
|
return cryptor;
|
152
146
|
}
|
153
147
|
|
@@ -158,9 +152,6 @@ function getParticipantKeyHandler(participantIdentity: string) {
|
|
158
152
|
let keys = participantKeys.get(participantIdentity);
|
159
153
|
if (!keys) {
|
160
154
|
keys = new ParticipantKeyHandler(participantIdentity, keyProviderOptions);
|
161
|
-
if (sharedKey) {
|
162
|
-
keys.setKey(sharedKey);
|
163
|
-
}
|
164
155
|
keys.on(KeyHandlerEvent.KeyRatcheted, emitRatchetedKeys);
|
165
156
|
participantKeys.set(participantIdentity, keys);
|
166
157
|
}
|
@@ -169,24 +160,32 @@ function getParticipantKeyHandler(participantIdentity: string) {
|
|
169
160
|
|
170
161
|
function getSharedKeyHandler() {
|
171
162
|
if (!sharedKeyHandler) {
|
163
|
+
workerLogger.debug('creating new shared key handler');
|
172
164
|
sharedKeyHandler = new ParticipantKeyHandler('shared-key', keyProviderOptions);
|
173
165
|
}
|
174
166
|
return sharedKeyHandler;
|
175
167
|
}
|
176
168
|
|
177
169
|
function unsetCryptorParticipant(trackId: string, participantIdentity: string) {
|
178
|
-
participantCryptors
|
179
|
-
|
180
|
-
|
170
|
+
const cryptor = participantCryptors.find(
|
171
|
+
(c) => c.getParticipantIdentity() === participantIdentity && c.getTrackId() === trackId,
|
172
|
+
);
|
173
|
+
if (!cryptor) {
|
174
|
+
workerLogger.warn('Could not unset participant on cryptor', { trackId, participantIdentity });
|
175
|
+
} else {
|
176
|
+
cryptor.unsetParticipant();
|
177
|
+
}
|
181
178
|
}
|
182
179
|
|
183
180
|
function setEncryptionEnabled(enable: boolean, participantIdentity: string) {
|
181
|
+
workerLogger.debug(`setting encryption enabled for all tracks of ${participantIdentity}`, {
|
182
|
+
enable,
|
183
|
+
});
|
184
184
|
encryptionEnabledMap.set(participantIdentity, enable);
|
185
185
|
}
|
186
186
|
|
187
187
|
function setSharedKey(key: CryptoKey, index?: number) {
|
188
|
-
workerLogger.
|
189
|
-
sharedKey = key;
|
188
|
+
workerLogger.info('set shared key', { index });
|
190
189
|
getSharedKeyHandler().setKey(key, index);
|
191
190
|
}
|
192
191
|
|
package/src/room/Room.ts
CHANGED
@@ -60,6 +60,7 @@ import type RemoteTrack from './track/RemoteTrack';
|
|
60
60
|
import RemoteTrackPublication from './track/RemoteTrackPublication';
|
61
61
|
import { Track } from './track/Track';
|
62
62
|
import type { TrackPublication } from './track/TrackPublication';
|
63
|
+
import type { TrackProcessor } from './track/processor/types';
|
63
64
|
import type { AdaptiveStreamSettings } from './track/types';
|
64
65
|
import { getNewAudioContext, sourceToKind } from './track/utils';
|
65
66
|
import type { SimulationOptions, SimulationScenario } from './types';
|
@@ -573,16 +574,23 @@ class Room extends (EventEmitter as new () => TypedEmitter<RoomEventCallbacks>)
|
|
573
574
|
this.localParticipant.sid = pi.sid;
|
574
575
|
this.localParticipant.identity = pi.identity;
|
575
576
|
|
577
|
+
if (this.options.e2ee && this.e2eeManager) {
|
578
|
+
try {
|
579
|
+
this.e2eeManager.setSifTrailer(joinResponse.sifTrailer);
|
580
|
+
} catch (e: any) {
|
581
|
+
this.log.error(e instanceof Error ? e.message : 'Could not set SifTrailer', {
|
582
|
+
...this.logContext,
|
583
|
+
error: e,
|
584
|
+
});
|
585
|
+
}
|
586
|
+
}
|
587
|
+
|
576
588
|
// populate remote participants, these should not trigger new events
|
577
589
|
this.handleParticipantUpdates([pi, ...joinResponse.otherParticipants]);
|
578
590
|
|
579
591
|
if (joinResponse.room) {
|
580
592
|
this.handleRoomUpdate(joinResponse.room);
|
581
593
|
}
|
582
|
-
|
583
|
-
if (this.options.e2ee && this.e2eeManager) {
|
584
|
-
this.e2eeManager.setSifTrailer(joinResponse.sifTrailer);
|
585
|
-
}
|
586
594
|
};
|
587
595
|
|
588
596
|
private attemptConnection = async (
|
@@ -1775,7 +1783,12 @@ class Room extends (EventEmitter as new () => TypedEmitter<RoomEventCallbacks>)
|
|
1775
1783
|
this.emit(RoomEvent.TrackUnmuted, pub, this.localParticipant);
|
1776
1784
|
};
|
1777
1785
|
|
1786
|
+
private onTrackProcessorUpdate = (processor?: TrackProcessor<Track.Kind, any>) => {
|
1787
|
+
processor?.onPublish?.(this);
|
1788
|
+
};
|
1789
|
+
|
1778
1790
|
private onLocalTrackPublished = async (pub: LocalTrackPublication) => {
|
1791
|
+
pub.track?.on(TrackEvent.TrackProcessorUpdate, this.onTrackProcessorUpdate);
|
1779
1792
|
pub.track?.getProcessor()?.onPublish?.(this);
|
1780
1793
|
|
1781
1794
|
this.emit(RoomEvent.LocalTrackPublished, pub, this.localParticipant);
|
@@ -1799,6 +1812,7 @@ class Room extends (EventEmitter as new () => TypedEmitter<RoomEventCallbacks>)
|
|
1799
1812
|
};
|
1800
1813
|
|
1801
1814
|
private onLocalTrackUnpublished = (pub: LocalTrackPublication) => {
|
1815
|
+
pub.track?.off(TrackEvent.TrackProcessorUpdate, this.onTrackProcessorUpdate);
|
1802
1816
|
this.emit(RoomEvent.LocalTrackUnpublished, pub, this.localParticipant);
|
1803
1817
|
};
|
1804
1818
|
|
package/src/room/events.ts
CHANGED
@@ -163,6 +163,7 @@ export default class LocalAudioTrack extends LocalTrack<Track.Kind.Audio> {
|
|
163
163
|
if (this.processor.processedTrack) {
|
164
164
|
await this.sender?.replaceTrack(this.processor.processedTrack);
|
165
165
|
}
|
166
|
+
this.emit(TrackEvent.TrackProcessorUpdate, this.processor);
|
166
167
|
} finally {
|
167
168
|
unlock();
|
168
169
|
}
|