livekit-client 1.13.2 → 1.13.4
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +2 -2
- 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 +87 -16
- package/dist/livekit-client.e2ee.worker.mjs.map +1 -1
- package/dist/livekit-client.esm.mjs +137 -31
- 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/utils.d.ts +3 -0
- package/dist/src/e2ee/utils.d.ts.map +1 -1
- package/dist/src/e2ee/worker/FrameCryptor.d.ts.map +1 -1
- package/dist/src/room/RTCEngine.d.ts.map +1 -1
- package/dist/src/room/participant/LocalParticipant.d.ts +6 -2
- package/dist/src/room/participant/LocalParticipant.d.ts.map +1 -1
- package/dist/src/room/participant/Participant.d.ts +5 -3
- package/dist/src/room/participant/Participant.d.ts.map +1 -1
- package/dist/src/room/track/LocalTrack.d.ts +7 -0
- package/dist/src/room/track/LocalTrack.d.ts.map +1 -1
- package/dist/src/room/track/RemoteTrack.d.ts +7 -0
- package/dist/src/room/track/RemoteTrack.d.ts.map +1 -1
- package/dist/src/room/utils.d.ts +1 -1
- package/dist/ts4.2/src/e2ee/utils.d.ts +3 -0
- package/dist/ts4.2/src/room/participant/LocalParticipant.d.ts +6 -2
- package/dist/ts4.2/src/room/participant/Participant.d.ts +5 -3
- package/dist/ts4.2/src/room/track/LocalTrack.d.ts +7 -0
- package/dist/ts4.2/src/room/track/RemoteTrack.d.ts +7 -0
- package/dist/ts4.2/src/room/utils.d.ts +1 -1
- package/package.json +15 -15
- package/src/e2ee/utils.ts +52 -0
- package/src/e2ee/worker/FrameCryptor.ts +49 -27
- package/src/room/RTCEngine.ts +3 -2
- package/src/room/Room.ts +3 -3
- package/src/room/participant/LocalParticipant.ts +9 -7
- package/src/room/participant/Participant.ts +7 -5
- package/src/room/track/LocalTrack.ts +14 -0
- package/src/room/track/RemoteTrack.ts +14 -0
- package/src/room/track/options.ts +1 -1
- package/src/room/utils.ts +2 -2
package/dist/src/e2ee/utils.d.ts
CHANGED
@@ -22,4 +22,7 @@ export declare function mimeTypeToVideoCodecString(mimeType: string): "vp8" | "h
|
|
22
22
|
* https://tools.ietf.org/html/draft-omara-sframe-00#section-4.3.5.1
|
23
23
|
*/
|
24
24
|
export declare function ratchet(material: CryptoKey, salt: string): Promise<ArrayBuffer>;
|
25
|
+
export declare function needsRbspUnescaping(frameData: Uint8Array): boolean;
|
26
|
+
export declare function parseRbsp(stream: Uint8Array): Uint8Array;
|
27
|
+
export declare function writeRbsp(data_in: Uint8Array): Uint8Array;
|
25
28
|
//# sourceMappingURL=utils.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/e2ee/utils.ts"],"names":[],"mappings":"AAIA,wBAAgB,eAAe,YAE9B;AAED,wBAAgB,0BAA0B,YAGzC;AAED,wBAAgB,2BAA2B,YAM1C;AAED,wBAAgB,YAAY,CAC1B,KAAK,EAAE,oBAAoB,GAAG,oBAAoB,GACjD,KAAK,IAAI,oBAAoB,CAE/B;AAED,wBAAsB,SAAS,CAC7B,QAAQ,EAAE,UAAU,GAAG,WAAW,EAClC,SAAS,GAAE,MAAM,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAmC,EACrE,KAAK,GAAE,QAAQ,GAAG,SAAqB,sBAUxC;AAED,wBAAsB,2BAA2B,CAAC,QAAQ,EAAE,MAAM,sBAcjE;AAED,wBAAsB,2BAA2B,CAAC,YAAY,EAAE,WAAW,sBAO1E;AA0BD;;;GAGG;AACH,wBAAsB,UAAU,CAAC,QAAQ,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM;;;GAiBjE;AAED,wBAAgB,aAAa,IAAI,UAAU,CAE1C;AAED,wBAAgB,0BAA0B,CAAC,QAAQ,EAAE,MAAM,kCAM1D;AAED;;;GAGG;AACH,wBAAsB,OAAO,CAAC,QAAQ,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAKrF"}
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/e2ee/utils.ts"],"names":[],"mappings":"AAIA,wBAAgB,eAAe,YAE9B;AAED,wBAAgB,0BAA0B,YAGzC;AAED,wBAAgB,2BAA2B,YAM1C;AAED,wBAAgB,YAAY,CAC1B,KAAK,EAAE,oBAAoB,GAAG,oBAAoB,GACjD,KAAK,IAAI,oBAAoB,CAE/B;AAED,wBAAsB,SAAS,CAC7B,QAAQ,EAAE,UAAU,GAAG,WAAW,EAClC,SAAS,GAAE,MAAM,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAmC,EACrE,KAAK,GAAE,QAAQ,GAAG,SAAqB,sBAUxC;AAED,wBAAsB,2BAA2B,CAAC,QAAQ,EAAE,MAAM,sBAcjE;AAED,wBAAsB,2BAA2B,CAAC,YAAY,EAAE,WAAW,sBAO1E;AA0BD;;;GAGG;AACH,wBAAsB,UAAU,CAAC,QAAQ,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM;;;GAiBjE;AAED,wBAAgB,aAAa,IAAI,UAAU,CAE1C;AAED,wBAAgB,0BAA0B,CAAC,QAAQ,EAAE,MAAM,kCAM1D;AAED;;;GAGG;AACH,wBAAsB,OAAO,CAAC,QAAQ,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAKrF;AAED,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,UAAU,WAKxD;AAED,wBAAgB,SAAS,CAAC,MAAM,EAAE,UAAU,GAAG,UAAU,CAoBxD;AAKD,wBAAgB,SAAS,CAAC,OAAO,EAAE,UAAU,GAAG,UAAU,CAkBzD"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"FrameCryptor.d.ts","sourceRoot":"","sources":["../../../../src/e2ee/worker/F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17 @@ export default class LocalParticipant extends Participant {
|
|
44
44
|
private handleDisconnected;
|
45
45
|
/**
|
46
46
|
* Sets and updates the metadata of the local participant.
|
47
|
-
*
|
47
|
+
* The change does not take immediate effect.
|
48
|
+
* If successful, a `ParticipantEvent.MetadataChanged` event will be emitted on the local participant.
|
49
|
+
* Note: this requires `canUpdateOwnMetadata` permission.
|
48
50
|
* @param metadata
|
49
51
|
*/
|
50
52
|
setMetadata(metadata: string): void;
|
51
53
|
/**
|
52
54
|
* Sets and updates the name of the local participant.
|
53
|
-
*
|
55
|
+
* The change does not take immediate effect.
|
56
|
+
* If successful, a `ParticipantEvent.ParticipantNameChanged` event will be emitted on the local participant.
|
57
|
+
* Note: this requires `canUpdateOwnMetadata` permission.
|
54
58
|
* @param metadata
|
55
59
|
*/
|
56
60
|
setName(name: string): void;
|
@@ -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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C,OAAO,CAAC,EAAE,mBAAmB,EAAE,aAAa,GAAE,OAAc;IAiCrF;;;;;;;;;;OAUG;IACG,WAAW,CACf,IAAI,EAAE,UAAU,EAChB,IAAI,EAAE,eAAe,EACrB,cAAc,CAAC,EAAE,kBAAkB,GAClC,OAAO,CAAC,IAAI,CAAC;IAChB;;;;;;;;;;OAUG;IACG,WAAW,CACf,IAAI,EAAE,UAAU,EAChB,IAAI,EAAE,eAAe,EACrB,WAAW,CAAC,EAAE,iBAAiB,EAAE,GAAG,MAAM,EAAE,GAC3C,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"}
|
@@ -60,9 +60,11 @@ export default class Participant extends Participant_base {
|
|
60
60
|
get joinedAt(): Date | undefined;
|
61
61
|
/** @internal */
|
62
62
|
updateInfo(info: ParticipantInfo): boolean;
|
63
|
-
/**
|
64
|
-
|
65
|
-
|
63
|
+
/**
|
64
|
+
* Updates metadata from server
|
65
|
+
**/
|
66
|
+
private _setMetadata;
|
67
|
+
private _setName;
|
66
68
|
/** @internal */
|
67
69
|
setPermissions(permissions: ParticipantPermission): boolean;
|
68
70
|
/** @internal */
|
@@ -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;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,GAAG,EAAE,MAAM,CAAC;IAEZ,qDAAqD;IACrD,QAAQ,EAAE,MAAM,CAAC;IAEjB,yDAAyD;IACzD,IAAI,CAAC,EAAE,MA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
**/
|
57
57
|
pauseUpstream(): Promise<void>;
|
58
58
|
resumeUpstream(): Promise<void>;
|
59
|
+
/**
|
60
|
+
* Gets the RTCStatsReport for the LocalTrack's underlying RTCRtpSender
|
61
|
+
* See https://developer.mozilla.org/en-US/docs/Web/API/RTCStatsReport
|
62
|
+
*
|
63
|
+
* @returns Promise<RTCStatsReport> | undefined
|
64
|
+
*/
|
65
|
+
getRTCStatsReport(): Promise<RTCStatsReport | undefined>;
|
59
66
|
/**
|
60
67
|
* Sets a processor on this track.
|
61
68
|
* 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,QAAQ,OAAO,UAAW,SAAQ,KAAK;IACpD,gBAAgB;IAChB,MAAM,CAAC,EAAE,YAAY,CAAC;IAEtB,gBAAgB;IAChB,KAAK,CAAC,EAAE,UAAU,CAAC;IAEnB,IAAI,WAAW,0BAEd;IAED,SAAS,CAAC,YAAY,EAAE,qBAAqB,CAAC;IAE9C,SAAS,CAAC,cAAc,EAAE,OAAO,CAAC;IAElC,SAAS,CAAC,cAAc,EAAE,OAAO,CAAC;IAElC,SAAS,CAAC,QAAQ,EAAE,KAAK,CAAC;IAE1B,SAAS,CAAC,iBAAiB,EAAE,KAAK,CAAC;IAEnC,SAAS,CAAC,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IAE9C,SAAS,CAAC,SAAS,CAAC,EAAE,cAAc,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,CAAC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
|
stop(): void;
|
12
|
+
/**
|
13
|
+
* Gets the RTCStatsReport for the RemoteTrack's underlying RTCRtpReceiver
|
14
|
+
* See https://developer.mozilla.org/en-US/docs/Web/API/RTCStatsReport
|
15
|
+
*
|
16
|
+
* @returns Promise<RTCStatsReport> | undefined
|
17
|
+
*/
|
18
|
+
getRTCStatsReport(): Promise<RTCStatsReport | undefined>;
|
12
19
|
startMonitor(): void;
|
13
20
|
protected abstract monitorReceiver(): void;
|
14
21
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"RemoteTrack.d.ts","sourceRoot":"","sources":["../../../../src/room/track/RemoteTrack.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,WAAY,SAAQ,KAAK;IACrD,gBAAgB;IAChB,QAAQ,CAAC,EAAE,cAAc,CAAC;gBAGxB,UAAU,EAAE,gBAAgB,EAC5B,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,KAAK,CAAC,IAAI,EAChB,QAAQ,CAAC,EAAE,cAAc;IAO3B,gBAAgB;IAChB,QAAQ,CAAC,KAAK,EAAE,OAAO;IAQvB,gBAAgB;IAChB,cAAc,CAAC,MAAM,EAAE,WAAW;IAYlC,KAAK;IAML,IAAI;
|
1
|
+
{"version":3,"file":"RemoteTrack.d.ts","sourceRoot":"","sources":["../../../../src/room/track/RemoteTrack.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,WAAY,SAAQ,KAAK;IACrD,gBAAgB;IAChB,QAAQ,CAAC,EAAE,cAAc,CAAC;gBAGxB,UAAU,EAAE,gBAAgB,EAC5B,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,KAAK,CAAC,IAAI,EAChB,QAAQ,CAAC,EAAE,cAAc;IAO3B,gBAAgB;IAChB,QAAQ,CAAC,KAAK,EAAE,OAAO;IAQvB,gBAAgB;IAChB,cAAc,CAAC,MAAM,EAAE,WAAW;IAYlC,KAAK;IAML,IAAI;IAMJ;;;;;OAKG;IACG,iBAAiB,IAAI,OAAO,CAAC,cAAc,GAAG,SAAS,CAAC;IAS9D,YAAY;IAMZ,SAAS,CAAC,QAAQ,CAAC,eAAe,IAAI,IAAI;CAC3C"}
|
package/dist/src/room/utils.d.ts
CHANGED
@@ -76,7 +76,7 @@ export type AudioAnalyserOptions = {
|
|
76
76
|
export declare function createAudioAnalyser(track: LocalAudioTrack | RemoteAudioTrack, options?: AudioAnalyserOptions): {
|
77
77
|
calculateVolume: () => number;
|
78
78
|
analyser: AnalyserNode;
|
79
|
-
cleanup: () => void
|
79
|
+
cleanup: () => Promise<void>;
|
80
80
|
};
|
81
81
|
export declare class Mutex {
|
82
82
|
private _locking;
|
@@ -22,4 +22,7 @@ export declare function mimeTypeToVideoCodecString(mimeType: string): "vp8" | "h
|
|
22
22
|
* https://tools.ietf.org/html/draft-omara-sframe-00#section-4.3.5.1
|
23
23
|
*/
|
24
24
|
export declare function ratchet(material: CryptoKey, salt: string): Promise<ArrayBuffer>;
|
25
|
+
export declare function needsRbspUnescaping(frameData: Uint8Array): boolean;
|
26
|
+
export declare function parseRbsp(stream: Uint8Array): Uint8Array;
|
27
|
+
export declare function writeRbsp(data_in: Uint8Array): Uint8Array;
|
25
28
|
//# sourceMappingURL=utils.d.ts.map
|
@@ -44,13 +44,17 @@ export default class LocalParticipant extends Participant {
|
|
44
44
|
private handleDisconnected;
|
45
45
|
/**
|
46
46
|
* Sets and updates the metadata of the local participant.
|
47
|
-
*
|
47
|
+
* The change does not take immediate effect.
|
48
|
+
* If successful, a `ParticipantEvent.MetadataChanged` event will be emitted on the local participant.
|
49
|
+
* Note: this requires `canUpdateOwnMetadata` permission.
|
48
50
|
* @param metadata
|
49
51
|
*/
|
50
52
|
setMetadata(metadata: string): void;
|
51
53
|
/**
|
52
54
|
* Sets and updates the name of the local participant.
|
53
|
-
*
|
55
|
+
* The change does not take immediate effect.
|
56
|
+
* If successful, a `ParticipantEvent.ParticipantNameChanged` event will be emitted on the local participant.
|
57
|
+
* Note: this requires `canUpdateOwnMetadata` permission.
|
54
58
|
* @param metadata
|
55
59
|
*/
|
56
60
|
setName(name: string): void;
|
@@ -60,9 +60,11 @@ export default class Participant extends Participant_base {
|
|
60
60
|
get joinedAt(): Date | undefined;
|
61
61
|
/** @internal */
|
62
62
|
updateInfo(info: ParticipantInfo): boolean;
|
63
|
-
/**
|
64
|
-
|
65
|
-
|
63
|
+
/**
|
64
|
+
* Updates metadata from server
|
65
|
+
**/
|
66
|
+
private _setMetadata;
|
67
|
+
private _setName;
|
66
68
|
/** @internal */
|
67
69
|
setPermissions(permissions: ParticipantPermission): boolean;
|
68
70
|
/** @internal */
|
@@ -56,6 +56,13 @@ export default abstract class LocalTrack extends Track {
|
|
56
56
|
**/
|
57
57
|
pauseUpstream(): Promise<void>;
|
58
58
|
resumeUpstream(): Promise<void>;
|
59
|
+
/**
|
60
|
+
* Gets the RTCStatsReport for the LocalTrack's underlying RTCRtpSender
|
61
|
+
* See https://developer.mozilla.org/en-US/docs/Web/API/RTCStatsReport
|
62
|
+
*
|
63
|
+
* @returns Promise<RTCStatsReport> | undefined
|
64
|
+
*/
|
65
|
+
getRTCStatsReport(): Promise<RTCStatsReport | undefined>;
|
59
66
|
/**
|
60
67
|
* Sets a processor on this track.
|
61
68
|
* See https://github.com/livekit/track-processors-js for example usage
|
@@ -9,6 +9,13 @@ export default abstract class RemoteTrack extends Track {
|
|
9
9
|
setMediaStream(stream: MediaStream): void;
|
10
10
|
start(): void;
|
11
11
|
stop(): void;
|
12
|
+
/**
|
13
|
+
* Gets the RTCStatsReport for the RemoteTrack's underlying RTCRtpReceiver
|
14
|
+
* See https://developer.mozilla.org/en-US/docs/Web/API/RTCStatsReport
|
15
|
+
*
|
16
|
+
* @returns Promise<RTCStatsReport> | undefined
|
17
|
+
*/
|
18
|
+
getRTCStatsReport(): Promise<RTCStatsReport | undefined>;
|
12
19
|
startMonitor(): void;
|
13
20
|
protected abstract monitorReceiver(): void;
|
14
21
|
}
|
@@ -76,7 +76,7 @@ export type AudioAnalyserOptions = {
|
|
76
76
|
export declare function createAudioAnalyser(track: LocalAudioTrack | RemoteAudioTrack, options?: AudioAnalyserOptions): {
|
77
77
|
calculateVolume: () => number;
|
78
78
|
analyser: AnalyserNode;
|
79
|
-
cleanup: () => void
|
79
|
+
cleanup: () => Promise<void>;
|
80
80
|
};
|
81
81
|
export declare class Mutex {
|
82
82
|
private _locking;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "livekit-client",
|
3
|
-
"version": "1.13.
|
3
|
+
"version": "1.13.4",
|
4
4
|
"description": "JavaScript/TypeScript client SDK for LiveKit",
|
5
5
|
"main": "./dist/livekit-client.umd.js",
|
6
6
|
"unpkg": "./dist/livekit-client.umd.js",
|
@@ -61,42 +61,42 @@
|
|
61
61
|
"webrtc-adapter": "^8.1.1"
|
62
62
|
},
|
63
63
|
"devDependencies": {
|
64
|
-
"@babel/core": "7.22.
|
65
|
-
"@babel/preset-env": "7.22.
|
64
|
+
"@babel/core": "7.22.15",
|
65
|
+
"@babel/preset-env": "7.22.15",
|
66
66
|
"@bufbuild/protoc-gen-es": "^1.3.0",
|
67
67
|
"@changesets/cli": "2.26.2",
|
68
68
|
"@livekit/changesets-changelog-github": "^0.0.4",
|
69
69
|
"@rollup/plugin-babel": "6.0.3",
|
70
|
-
"@rollup/plugin-commonjs": "
|
70
|
+
"@rollup/plugin-commonjs": "25.0.4",
|
71
71
|
"@rollup/plugin-json": "6.0.0",
|
72
|
-
"@rollup/plugin-node-resolve": "15.1
|
72
|
+
"@rollup/plugin-node-resolve": "15.2.1",
|
73
73
|
"@rollup/plugin-terser": "^0.4.0",
|
74
74
|
"@size-limit/file": "^8.2.4",
|
75
75
|
"@size-limit/webpack": "^8.2.4",
|
76
76
|
"@trivago/prettier-plugin-sort-imports": "^4.1.1",
|
77
77
|
"@types/events": "^3.0.0",
|
78
78
|
"@types/sdp-transform": "2.4.6",
|
79
|
-
"@types/ua-parser-js": "0.7.
|
79
|
+
"@types/ua-parser-js": "0.7.37",
|
80
80
|
"@typescript-eslint/eslint-plugin": "5.62.0",
|
81
81
|
"@typescript-eslint/parser": "5.62.0",
|
82
82
|
"downlevel-dts": "^0.11.0",
|
83
|
-
"eslint": "8.
|
83
|
+
"eslint": "8.48.0",
|
84
84
|
"eslint-config-airbnb-typescript": "17.1.0",
|
85
|
-
"eslint-config-prettier": "
|
85
|
+
"eslint-config-prettier": "9.0.0",
|
86
86
|
"eslint-plugin-ecmascript-compat": "^3.0.0",
|
87
|
-
"eslint-plugin-import": "2.28.
|
88
|
-
"gh-pages": "
|
87
|
+
"eslint-plugin-import": "2.28.1",
|
88
|
+
"gh-pages": "6.0.0",
|
89
89
|
"jsdom": "^22.1.0",
|
90
90
|
"prettier": "^2.8.8",
|
91
|
-
"rollup": "3.
|
91
|
+
"rollup": "3.28.1",
|
92
92
|
"rollup-plugin-delete": "^2.0.0",
|
93
93
|
"rollup-plugin-re": "1.0.7",
|
94
94
|
"rollup-plugin-typescript2": "0.35.0",
|
95
95
|
"size-limit": "^8.2.4",
|
96
|
-
"typedoc": "0.
|
96
|
+
"typedoc": "0.25.1",
|
97
97
|
"typedoc-plugin-no-inherit": "1.4.0",
|
98
|
-
"typescript": "5.
|
99
|
-
"vite": "4.4.
|
100
|
-
"vitest": "^0.
|
98
|
+
"typescript": "5.2.2",
|
99
|
+
"vite": "4.4.9",
|
100
|
+
"vitest": "^0.34.0"
|
101
101
|
}
|
102
102
|
}
|
package/src/e2ee/utils.ts
CHANGED
@@ -134,3 +134,55 @@ export async function ratchet(material: CryptoKey, salt: string): Promise<ArrayB
|
|
134
134
|
// https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/deriveBits
|
135
135
|
return crypto.subtle.deriveBits(algorithmOptions, material, 256);
|
136
136
|
}
|
137
|
+
|
138
|
+
export function needsRbspUnescaping(frameData: Uint8Array) {
|
139
|
+
for (var i = 0; i < frameData.length - 3; i++) {
|
140
|
+
if (frameData[i] == 0 && frameData[i + 1] == 0 && frameData[i + 2] == 3) return true;
|
141
|
+
}
|
142
|
+
return false;
|
143
|
+
}
|
144
|
+
|
145
|
+
export function parseRbsp(stream: Uint8Array): Uint8Array {
|
146
|
+
const dataOut: number[] = [];
|
147
|
+
var length = stream.length;
|
148
|
+
for (var i = 0; i < stream.length; ) {
|
149
|
+
// Be careful about over/underflow here. byte_length_ - 3 can underflow, and
|
150
|
+
// i + 3 can overflow, but byte_length_ - i can't, because i < byte_length_
|
151
|
+
// above, and that expression will produce the number of bytes left in
|
152
|
+
// the stream including the byte at i.
|
153
|
+
if (length - i >= 3 && !stream[i] && !stream[i + 1] && stream[i + 2] == 3) {
|
154
|
+
// Two rbsp bytes.
|
155
|
+
dataOut.push(stream[i++]);
|
156
|
+
dataOut.push(stream[i++]);
|
157
|
+
// Skip the emulation byte.
|
158
|
+
i++;
|
159
|
+
} else {
|
160
|
+
// Single rbsp byte.
|
161
|
+
dataOut.push(stream[i++]);
|
162
|
+
}
|
163
|
+
}
|
164
|
+
return new Uint8Array(dataOut);
|
165
|
+
}
|
166
|
+
|
167
|
+
const kZerosInStartSequence = 2;
|
168
|
+
const kEmulationByte = 3;
|
169
|
+
|
170
|
+
export function writeRbsp(data_in: Uint8Array): Uint8Array {
|
171
|
+
const dataOut: number[] = [];
|
172
|
+
var numConsecutiveZeros = 0;
|
173
|
+
for (var i = 0; i < data_in.length; ++i) {
|
174
|
+
var byte = data_in[i];
|
175
|
+
if (byte <= kEmulationByte && numConsecutiveZeros >= kZerosInStartSequence) {
|
176
|
+
// Need to escape.
|
177
|
+
dataOut.push(kEmulationByte);
|
178
|
+
numConsecutiveZeros = 0;
|
179
|
+
}
|
180
|
+
dataOut.push(byte);
|
181
|
+
if (byte == 0) {
|
182
|
+
++numConsecutiveZeros;
|
183
|
+
} else {
|
184
|
+
numConsecutiveZeros = 0;
|
185
|
+
}
|
186
|
+
}
|
187
|
+
return new Uint8Array(dataOut);
|
188
|
+
}
|
@@ -8,7 +8,7 @@ import { ENCRYPTION_ALGORITHM, IV_LENGTH, UNENCRYPTED_BYTES } from '../constants
|
|
8
8
|
import { CryptorError, CryptorErrorReason } from '../errors';
|
9
9
|
import { CryptorCallbacks, CryptorEvent } from '../events';
|
10
10
|
import type { DecodeRatchetOptions, KeyProviderOptions, KeySet } from '../types';
|
11
|
-
import { deriveKeys, isVideoFrame } from '../utils';
|
11
|
+
import { deriveKeys, isVideoFrame, needsRbspUnescaping, parseRbsp, writeRbsp } from '../utils';
|
12
12
|
import type { ParticipantKeyHandler } from './ParticipantKeyHandler';
|
13
13
|
import { SifGuard } from './SifGuard';
|
14
14
|
|
@@ -211,13 +211,9 @@ export class FrameCryptor extends BaseFrameCryptor {
|
|
211
211
|
encodedFrame.getMetadata().synchronizationSource ?? -1,
|
212
212
|
encodedFrame.timestamp,
|
213
213
|
);
|
214
|
-
|
214
|
+
let frameInfo = this.getUnencryptedBytes(encodedFrame);
|
215
215
|
// Thіs is not encrypted and contains the VP8 payload descriptor or the Opus TOC byte.
|
216
|
-
const frameHeader = new Uint8Array(
|
217
|
-
encodedFrame.data,
|
218
|
-
0,
|
219
|
-
this.getUnencryptedBytes(encodedFrame),
|
220
|
-
);
|
216
|
+
const frameHeader = new Uint8Array(encodedFrame.data, 0, frameInfo.unencryptedBytes);
|
221
217
|
|
222
218
|
// Frame trailer contains the R|IV_LENGTH and key index
|
223
219
|
const frameTrailer = new Uint8Array(2);
|
@@ -240,20 +236,25 @@ export class FrameCryptor extends BaseFrameCryptor {
|
|
240
236
|
additionalData: new Uint8Array(encodedFrame.data, 0, frameHeader.byteLength),
|
241
237
|
},
|
242
238
|
encryptionKey,
|
243
|
-
new Uint8Array(encodedFrame.data,
|
239
|
+
new Uint8Array(encodedFrame.data, frameInfo.unencryptedBytes),
|
244
240
|
);
|
245
241
|
|
246
|
-
|
247
|
-
|
242
|
+
let newDataWithoutHeader = new Uint8Array(
|
243
|
+
cipherText.byteLength + iv.byteLength + frameTrailer.byteLength,
|
248
244
|
);
|
249
|
-
|
245
|
+
newDataWithoutHeader.set(new Uint8Array(cipherText)); // add ciphertext.
|
246
|
+
newDataWithoutHeader.set(new Uint8Array(iv), cipherText.byteLength); // append IV.
|
247
|
+
newDataWithoutHeader.set(frameTrailer, cipherText.byteLength + iv.byteLength); // append frame trailer.
|
248
|
+
|
249
|
+
if (frameInfo.isH264) {
|
250
|
+
newDataWithoutHeader = writeRbsp(newDataWithoutHeader);
|
251
|
+
}
|
250
252
|
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
newUint8.set(frameTrailer, frameHeader.byteLength + cipherText.byteLength + iv.byteLength); // append frame trailer.
|
253
|
+
var newData = new Uint8Array(frameHeader.byteLength + newDataWithoutHeader.byteLength);
|
254
|
+
newData.set(frameHeader);
|
255
|
+
newData.set(newDataWithoutHeader, frameHeader.byteLength);
|
255
256
|
|
256
|
-
encodedFrame.data = newData;
|
257
|
+
encodedFrame.data = newData.buffer;
|
257
258
|
|
258
259
|
return controller.enqueue(encodedFrame);
|
259
260
|
} catch (e: any) {
|
@@ -291,6 +292,10 @@ export class FrameCryptor extends BaseFrameCryptor {
|
|
291
292
|
this.sifGuard.recordSif();
|
292
293
|
|
293
294
|
if (this.sifGuard.isSifAllowed()) {
|
295
|
+
encodedFrame.data = encodedFrame.data.slice(
|
296
|
+
0,
|
297
|
+
encodedFrame.data.byteLength - this.sifTrailer.byteLength,
|
298
|
+
);
|
294
299
|
return controller.enqueue(encodedFrame);
|
295
300
|
} else {
|
296
301
|
workerLogger.warn('SIF limit reached, dropping frame');
|
@@ -346,7 +351,7 @@ export class FrameCryptor extends BaseFrameCryptor {
|
|
346
351
|
if (!ratchetOpts.encryptionKey && !keySet) {
|
347
352
|
throw new TypeError(`no encryption key found for decryption of ${this.participantIdentity}`);
|
348
353
|
}
|
349
|
-
|
354
|
+
let frameInfo = this.getUnencryptedBytes(encodedFrame);
|
350
355
|
// Construct frame trailer. Similar to the frame header described in
|
351
356
|
// https://tools.ietf.org/html/draft-omara-sframe-00#section-4.2
|
352
357
|
// but we put it at the end.
|
@@ -356,11 +361,20 @@ export class FrameCryptor extends BaseFrameCryptor {
|
|
356
361
|
// ---------+-------------------------+-+---------+----
|
357
362
|
|
358
363
|
try {
|
359
|
-
const frameHeader = new Uint8Array(
|
364
|
+
const frameHeader = new Uint8Array(encodedFrame.data, 0, frameInfo.unencryptedBytes);
|
365
|
+
var encryptedData = new Uint8Array(
|
360
366
|
encodedFrame.data,
|
361
|
-
|
362
|
-
|
367
|
+
frameHeader.length,
|
368
|
+
encodedFrame.data.byteLength - frameHeader.length,
|
363
369
|
);
|
370
|
+
if (frameInfo.isH264 && needsRbspUnescaping(encryptedData)) {
|
371
|
+
encryptedData = parseRbsp(encryptedData);
|
372
|
+
const newUint8 = new Uint8Array(frameHeader.byteLength + encryptedData.byteLength);
|
373
|
+
newUint8.set(frameHeader);
|
374
|
+
newUint8.set(encryptedData, frameHeader.byteLength);
|
375
|
+
encodedFrame.data = newUint8.buffer;
|
376
|
+
}
|
377
|
+
|
364
378
|
const frameTrailer = new Uint8Array(encodedFrame.data, encodedFrame.data.byteLength - 2, 2);
|
365
379
|
|
366
380
|
const ivLength = frameTrailer[0];
|
@@ -489,7 +503,11 @@ export class FrameCryptor extends BaseFrameCryptor {
|
|
489
503
|
return iv;
|
490
504
|
}
|
491
505
|
|
492
|
-
private getUnencryptedBytes(frame: RTCEncodedVideoFrame | RTCEncodedAudioFrame):
|
506
|
+
private getUnencryptedBytes(frame: RTCEncodedVideoFrame | RTCEncodedAudioFrame): {
|
507
|
+
unencryptedBytes: number;
|
508
|
+
isH264: boolean;
|
509
|
+
} {
|
510
|
+
var frameInfo = { unencryptedBytes: 0, isH264: false };
|
493
511
|
if (isVideoFrame(frame)) {
|
494
512
|
let detectedCodec = this.getVideoCodec(frame) ?? this.videoCodec;
|
495
513
|
|
@@ -498,7 +516,8 @@ export class FrameCryptor extends BaseFrameCryptor {
|
|
498
516
|
}
|
499
517
|
|
500
518
|
if (detectedCodec === 'vp8') {
|
501
|
-
|
519
|
+
frameInfo.unencryptedBytes = UNENCRYPTED_BYTES[frame.type];
|
520
|
+
return frameInfo;
|
502
521
|
}
|
503
522
|
|
504
523
|
const data = new Uint8Array(frame.data);
|
@@ -506,19 +525,20 @@ export class FrameCryptor extends BaseFrameCryptor {
|
|
506
525
|
const naluIndices = findNALUIndices(data);
|
507
526
|
|
508
527
|
// if the detected codec is undefined we test whether it _looks_ like a h264 frame as a best guess
|
509
|
-
|
528
|
+
frameInfo.isH264 =
|
510
529
|
detectedCodec === 'h264' ||
|
511
530
|
naluIndices.some((naluIndex) =>
|
512
531
|
[NALUType.SLICE_IDR, NALUType.SLICE_NON_IDR].includes(parseNALUType(data[naluIndex])),
|
513
532
|
);
|
514
533
|
|
515
|
-
if (isH264) {
|
534
|
+
if (frameInfo.isH264) {
|
516
535
|
for (const index of naluIndices) {
|
517
536
|
let type = parseNALUType(data[index]);
|
518
537
|
switch (type) {
|
519
538
|
case NALUType.SLICE_IDR:
|
520
539
|
case NALUType.SLICE_NON_IDR:
|
521
|
-
|
540
|
+
frameInfo.unencryptedBytes = index + 2;
|
541
|
+
return frameInfo;
|
522
542
|
default:
|
523
543
|
break;
|
524
544
|
}
|
@@ -529,9 +549,11 @@ export class FrameCryptor extends BaseFrameCryptor {
|
|
529
549
|
// no op, we just continue and fallback to vp8
|
530
550
|
}
|
531
551
|
|
532
|
-
|
552
|
+
frameInfo.unencryptedBytes = UNENCRYPTED_BYTES[frame.type];
|
553
|
+
return frameInfo;
|
533
554
|
} else {
|
534
|
-
|
555
|
+
frameInfo.unencryptedBytes = UNENCRYPTED_BYTES.audio;
|
556
|
+
return frameInfo;
|
535
557
|
}
|
536
558
|
}
|
537
559
|
|
package/src/room/RTCEngine.ts
CHANGED
@@ -267,7 +267,7 @@ export default class RTCEngine extends (EventEmitter as new () => TypedEventEmit
|
|
267
267
|
this.subscriber.close();
|
268
268
|
this.subscriber = undefined;
|
269
269
|
}
|
270
|
-
|
270
|
+
this.hasPublished = false;
|
271
271
|
this.primaryPC = undefined;
|
272
272
|
|
273
273
|
const dcCleanup = (dc: RTCDataChannel | undefined) => {
|
@@ -1092,7 +1092,8 @@ export default class RTCEngine extends (EventEmitter as new () => TypedEventEmit
|
|
1092
1092
|
// this means we'd have to check its status manually and update address
|
1093
1093
|
// manually
|
1094
1094
|
now - startTime > minReconnectWait &&
|
1095
|
-
this.primaryPC?.connectionState === 'connected'
|
1095
|
+
this.primaryPC?.connectionState === 'connected' &&
|
1096
|
+
(!this.hasPublished || this.publisher?.pc.connectionState === 'connected')
|
1096
1097
|
) {
|
1097
1098
|
this.pcState = PCState.Connected;
|
1098
1099
|
}
|
package/src/room/Room.ts
CHANGED
@@ -457,9 +457,9 @@ class Room extends (EventEmitter as new () => TypedEmitter<RoomEventCallbacks>)
|
|
457
457
|
}
|
458
458
|
}
|
459
459
|
if (nextUrl) {
|
460
|
-
log.info(
|
461
|
-
nextUrl
|
462
|
-
|
460
|
+
log.info(
|
461
|
+
`Initial connection failed with ConnectionError: ${e.message}. Retrying with another region: ${nextUrl}`,
|
462
|
+
);
|
463
463
|
await connectFn(resolve, reject, nextUrl);
|
464
464
|
} else {
|
465
465
|
reject(e);
|