livekit-client 2.5.1 → 2.5.2
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 +4 -2
- package/dist/livekit-client.e2ee.worker.mjs.map +1 -1
- package/dist/livekit-client.esm.mjs +250 -199
- 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/PCTransportManager.d.ts +1 -0
- package/dist/src/room/PCTransportManager.d.ts.map +1 -1
- package/dist/src/room/Room.d.ts +3 -3
- package/dist/src/room/Room.d.ts.map +1 -1
- package/dist/src/room/participant/LocalParticipant.d.ts.map +1 -1
- package/dist/src/room/track/LocalTrack.d.ts +1 -1
- package/dist/src/room/track/LocalTrack.d.ts.map +1 -1
- package/dist/src/room/track/create.d.ts +7 -0
- package/dist/src/room/track/create.d.ts.map +1 -1
- package/dist/ts4.2/src/room/PCTransportManager.d.ts +1 -0
- package/dist/ts4.2/src/room/Room.d.ts +3 -3
- package/dist/ts4.2/src/room/track/LocalTrack.d.ts +1 -1
- package/dist/ts4.2/src/room/track/create.d.ts +7 -0
- package/package.json +8 -8
- package/src/connectionHelper/checks/Checker.ts +1 -1
- package/src/e2ee/worker/FrameCryptor.ts +3 -1
- package/src/room/PCTransportManager.ts +12 -4
- package/src/room/Room.ts +41 -6
- package/src/room/participant/LocalParticipant.ts +14 -8
- package/src/room/track/LocalTrack.ts +4 -2
- package/src/room/track/create.ts +27 -8
@@ -12,7 +12,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
12
12
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
13
13
|
PERFORMANCE OF THIS SOFTWARE.
|
14
14
|
***************************************************************************** */
|
15
|
-
/* global Reflect, Promise, SuppressedError, Symbol */
|
15
|
+
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
|
16
16
|
|
17
17
|
|
18
18
|
function __awaiter(thisArg, _arguments, P, generator) {
|
@@ -1244,6 +1244,7 @@ class FrameCryptor extends BaseFrameCryptor {
|
|
1244
1244
|
}
|
1245
1245
|
} catch (error) {
|
1246
1246
|
if (error instanceof CryptorError && error.reason === CryptorErrorReason.InvalidKey) {
|
1247
|
+
// emit an error if the key handler thinks we have a valid key
|
1247
1248
|
if (this.keys.hasValidKey) {
|
1248
1249
|
this.emit(CryptorEvent.Error, error);
|
1249
1250
|
this.keys.decryptionFailure();
|
@@ -1255,9 +1256,10 @@ class FrameCryptor extends BaseFrameCryptor {
|
|
1255
1256
|
}
|
1256
1257
|
}
|
1257
1258
|
} else if (!this.keys.getKeySet(keyIndex) && this.keys.hasValidKey) {
|
1258
|
-
// emit an error
|
1259
|
+
// emit an error if the key index is out of bounds but the key handler thinks we still have a valid key
|
1259
1260
|
workerLogger.warn("skipping decryption due to missing key at index ".concat(keyIndex));
|
1260
1261
|
this.emit(CryptorEvent.Error, new CryptorError("missing key at index ".concat(keyIndex, " for participant ").concat(this.participantIdentity), CryptorErrorReason.MissingKey, this.participantIdentity));
|
1262
|
+
this.keys.decryptionFailure();
|
1261
1263
|
}
|
1262
1264
|
});
|
1263
1265
|
}
|