livekit-client 1.13.1 → 1.13.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 +3 -2
- package/dist/livekit-client.e2ee.worker.mjs.map +1 -1
- package/dist/livekit-client.esm.mjs +61 -34
- package/dist/livekit-client.esm.mjs.map +1 -1
- package/dist/livekit-client.umd.js +1 -1
- package/dist/livekit-client.umd.js.map +1 -1
- package/dist/src/e2ee/worker/FrameCryptor.d.ts.map +1 -1
- package/dist/src/room/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/utils.d.ts +1 -1
- 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/utils.d.ts +1 -1
- package/package.json +15 -15
- package/src/e2ee/worker/FrameCryptor.ts +6 -8
- package/src/room/participant/LocalParticipant.ts +7 -5
- package/src/room/participant/Participant.ts +7 -5
- package/src/room/track/options.ts +1 -1
- package/src/room/utils.ts +2 -2
@@ -1098,6 +1098,7 @@ class FrameCryptor extends BaseFrameCryptor {
|
|
1098
1098
|
if (isFrameServerInjected(encodedFrame.data, this.sifTrailer)) {
|
1099
1099
|
this.sifGuard.recordSif();
|
1100
1100
|
if (this.sifGuard.isSifAllowed()) {
|
1101
|
+
encodedFrame.data = encodedFrame.data.slice(0, encodedFrame.data.byteLength - this.sifTrailer.byteLength);
|
1101
1102
|
return controller.enqueue(encodedFrame);
|
1102
1103
|
} else {
|
1103
1104
|
workerLogger.warn('SIF limit reached, dropping frame');
|
@@ -1118,7 +1119,7 @@ class FrameCryptor extends BaseFrameCryptor {
|
|
1118
1119
|
} catch (error) {
|
1119
1120
|
if (error instanceof CryptorError && error.reason === CryptorErrorReason.InvalidKey) {
|
1120
1121
|
if (this.keys.hasValidKey) {
|
1121
|
-
this.emit(CryptorEvent.Error,
|
1122
|
+
this.emit(CryptorEvent.Error, error);
|
1122
1123
|
this.keys.decryptionFailure();
|
1123
1124
|
}
|
1124
1125
|
} else {
|
@@ -1210,7 +1211,7 @@ class FrameCryptor extends BaseFrameCryptor {
|
|
1210
1211
|
throw new CryptorError("valid key missing for participant ".concat(this.participantIdentity), CryptorErrorReason.InvalidKey);
|
1211
1212
|
}
|
1212
1213
|
} else {
|
1213
|
-
throw new CryptorError(
|
1214
|
+
throw new CryptorError("Decryption failed: ".concat(error.message), CryptorErrorReason.InvalidKey);
|
1214
1215
|
}
|
1215
1216
|
}
|
1216
1217
|
});
|