livekit-client 1.15.12 → 1.15.13

Sign up to get free protection for your applications and to get access to all the features.
@@ -10614,7 +10614,7 @@ function getMatch(exp, ua) {
10614
10614
  return match && match.length >= id && match[id] || '';
10615
10615
  }
10616
10616
 
10617
- var version$1 = "1.15.12";
10617
+ var version$1 = "1.15.13";
10618
10618
 
10619
10619
  const version = version$1;
10620
10620
  const protocolVersion = 11;
@@ -17518,12 +17518,13 @@ class RTCEngine extends eventsExports.EventEmitter {
17518
17518
  this.reliableDC.onbufferedamountlow = this.handleBufferedAmountLow;
17519
17519
  }
17520
17520
  setPreferredCodec(transceiver, kind, videoCodec) {
17521
- if (!('getCapabilities' in RTCRtpSender)) {
17521
+ if (!('getCapabilities' in RTCRtpReceiver)) {
17522
17522
  return;
17523
17523
  }
17524
- const cap = RTCRtpSender.getCapabilities(kind);
17524
+ // when setting codec preferences, the capabilites need to be read from the RTCRtpReceiver
17525
+ const cap = RTCRtpReceiver.getCapabilities(kind);
17525
17526
  if (!cap) return;
17526
- this.log.debug('get sender capabilities', Object.assign(Object.assign({}, this.logContext), {
17527
+ this.log.debug('get receiver capabilities', Object.assign(Object.assign({}, this.logContext), {
17527
17528
  cap
17528
17529
  }));
17529
17530
  const matched = [];