livekit-client 1.13.1 → 1.13.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +2 -2
- package/dist/livekit-client.e2ee.worker.mjs.map +1 -1
- package/dist/livekit-client.esm.mjs +12 -12
- 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/package.json +1 -1
- package/src/e2ee/worker/FrameCryptor.ts +2 -8
- package/src/room/participant/LocalParticipant.ts +1 -1
@@ -11840,7 +11840,7 @@ function getMatch(exp, ua) {
|
|
11840
11840
|
return match && match.length >= id && match[id] || '';
|
11841
11841
|
}
|
11842
11842
|
|
11843
|
-
var version$1 = "1.13.
|
11843
|
+
var version$1 = "1.13.2";
|
11844
11844
|
|
11845
11845
|
const version = version$1;
|
11846
11846
|
const protocolVersion = 9;
|
@@ -20318,7 +20318,7 @@ class LocalParticipant extends Participant {
|
|
20318
20318
|
});
|
20319
20319
|
}
|
20320
20320
|
publish(track, opts, isStereo) {
|
20321
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
20321
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
20322
20322
|
return __awaiter(this, void 0, void 0, function* () {
|
20323
20323
|
const existingTrackOfSource = Array.from(this.tracks.values()).find(publishedTrack => track instanceof LocalTrack && publishedTrack.source === track.source);
|
20324
20324
|
if (existingTrackOfSource && track.source !== Track.Source.Unknown) {
|
@@ -20366,8 +20366,8 @@ class LocalParticipant extends Participant {
|
|
20366
20366
|
source: Track.sourceToProto(track.source),
|
20367
20367
|
disableDtx: !((_a = opts.dtx) !== null && _a !== void 0 ? _a : true),
|
20368
20368
|
encryption: this.encryptionType,
|
20369
|
-
stereo: isStereo
|
20370
|
-
|
20369
|
+
stereo: isStereo,
|
20370
|
+
disableRed: !((_b = opts.red) !== null && _b !== void 0 ? _b : true)
|
20371
20371
|
});
|
20372
20372
|
// compute encodings and layers for video
|
20373
20373
|
let encodings;
|
@@ -20382,7 +20382,7 @@ class LocalParticipant extends Participant {
|
|
20382
20382
|
} catch (e) {
|
20383
20383
|
// use defaults, it's quite painful for congestion control without simulcast
|
20384
20384
|
// so using default dims according to publish settings
|
20385
|
-
const defaultRes = (
|
20385
|
+
const defaultRes = (_d = (_c = this.roomOptions.videoCaptureDefaults) === null || _c === void 0 ? void 0 : _c.resolution) !== null && _d !== void 0 ? _d : VideoPresets.h720.resolution;
|
20386
20386
|
dims = {
|
20387
20387
|
width: defaultRes.width,
|
20388
20388
|
height: defaultRes.height
|
@@ -20397,7 +20397,7 @@ class LocalParticipant extends Participant {
|
|
20397
20397
|
if (track instanceof LocalVideoTrack) {
|
20398
20398
|
if (isSVCCodec(opts.videoCodec)) {
|
20399
20399
|
// set scalabilityMode to 'L3T3_KEY' by default
|
20400
|
-
opts.scalabilityMode = (
|
20400
|
+
opts.scalabilityMode = (_e = opts.scalabilityMode) !== null && _e !== void 0 ? _e : 'L3T3_KEY';
|
20401
20401
|
}
|
20402
20402
|
// set up backup
|
20403
20403
|
if (opts.videoCodec && opts.backupCodec && opts.videoCodec !== opts.backupCodec.codec) {
|
@@ -20422,7 +20422,7 @@ class LocalParticipant extends Participant {
|
|
20422
20422
|
req.simulcastCodecs = [new SimulcastCodec({
|
20423
20423
|
codec: opts.videoCodec,
|
20424
20424
|
cid: track.mediaStreamTrack.id,
|
20425
|
-
enableSimulcastLayers: (
|
20425
|
+
enableSimulcastLayers: (_f = opts.simulcast) !== null && _f !== void 0 ? _f : false
|
20426
20426
|
})];
|
20427
20427
|
}
|
20428
20428
|
}
|
@@ -20430,9 +20430,9 @@ class LocalParticipant extends Participant {
|
|
20430
20430
|
req.layers = videoLayersFromEncodings(req.width, req.height, encodings, isSVCCodec(opts.videoCodec));
|
20431
20431
|
} else if (track.kind === Track.Kind.Audio) {
|
20432
20432
|
encodings = [{
|
20433
|
-
maxBitrate: (
|
20434
|
-
priority: (
|
20435
|
-
networkPriority: (
|
20433
|
+
maxBitrate: (_h = (_g = opts.audioPreset) === null || _g === void 0 ? void 0 : _g.maxBitrate) !== null && _h !== void 0 ? _h : opts.audioBitrate,
|
20434
|
+
priority: (_k = (_j = opts.audioPreset) === null || _j === void 0 ? void 0 : _j.priority) !== null && _k !== void 0 ? _k : 'high',
|
20435
|
+
networkPriority: (_m = (_l = opts.audioPreset) === null || _l === void 0 ? void 0 : _l.priority) !== null && _m !== void 0 ? _m : 'high'
|
20436
20436
|
}];
|
20437
20437
|
}
|
20438
20438
|
if (!this.engine || this.engine.isClosed) {
|
@@ -20494,10 +20494,10 @@ class LocalParticipant extends Participant {
|
|
20494
20494
|
this.engine.publisher.setTrackCodecBitrate({
|
20495
20495
|
transceiver: trackTransceiver,
|
20496
20496
|
codec: 'opus',
|
20497
|
-
maxbr: ((
|
20497
|
+
maxbr: ((_o = encodings[0]) === null || _o === void 0 ? void 0 : _o.maxBitrate) ? encodings[0].maxBitrate / 1000 : 0
|
20498
20498
|
});
|
20499
20499
|
}
|
20500
|
-
} else if (track.codec && isSVCCodec(track.codec) && ((
|
20500
|
+
} else if (track.codec && isSVCCodec(track.codec) && ((_p = encodings[0]) === null || _p === void 0 ? void 0 : _p.maxBitrate)) {
|
20501
20501
|
this.engine.publisher.setTrackCodecBitrate({
|
20502
20502
|
cid: req.cid,
|
20503
20503
|
codec: track.codec,
|