livekit-client 2.0.8 → 2.0.9

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.
@@ -12538,7 +12538,8 @@ const KEY_PROVIDER_DEFAULTS = {
12538
12538
  sharedKey: false,
12539
12539
  ratchetSalt: SALT,
12540
12540
  ratchetWindowSize: 8,
12541
- failureTolerance: DECRYPTION_FAILURE_TOLERANCE
12541
+ failureTolerance: DECRYPTION_FAILURE_TOLERANCE,
12542
+ keyringSize: 16
12542
12543
  };
12543
12544
 
12544
12545
  var KeyProviderEvent;
@@ -13473,7 +13474,7 @@ function getMatch(exp, ua) {
13473
13474
  return match && match.length >= id && match[id] || '';
13474
13475
  }
13475
13476
 
13476
- var version$1 = "2.0.8";
13477
+ var version$1 = "2.0.9";
13477
13478
 
13478
13479
  const version = version$1;
13479
13480
  const protocolVersion = 12;
@@ -18175,12 +18176,13 @@ class RTCEngine extends eventsExports.EventEmitter {
18175
18176
  this.reliableDC.onbufferedamountlow = this.handleBufferedAmountLow;
18176
18177
  }
18177
18178
  setPreferredCodec(transceiver, kind, videoCodec) {
18178
- if (!('getCapabilities' in RTCRtpSender)) {
18179
+ if (!('getCapabilities' in RTCRtpReceiver)) {
18179
18180
  return;
18180
18181
  }
18181
- const cap = RTCRtpSender.getCapabilities(kind);
18182
+ // when setting codec preferences, the capabilites need to be read from the RTCRtpReceiver
18183
+ const cap = RTCRtpReceiver.getCapabilities(kind);
18182
18184
  if (!cap) return;
18183
- this.log.debug('get sender capabilities', Object.assign(Object.assign({}, this.logContext), {
18185
+ this.log.debug('get receiver capabilities', Object.assign(Object.assign({}, this.logContext), {
18184
18186
  cap
18185
18187
  }));
18186
18188
  const matched = [];