livekit-client 1.15.12 → 1.15.13
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.
|
@@ -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.
|
|
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
|
|
17521
|
+
if (!('getCapabilities' in RTCRtpReceiver)) {
|
|
17522
17522
|
return;
|
|
17523
17523
|
}
|
|
17524
|
-
|
|
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
|
|
17527
|
+
this.log.debug('get receiver capabilities', Object.assign(Object.assign({}, this.logContext), {
|
|
17527
17528
|
cap
|
|
17528
17529
|
}));
|
|
17529
17530
|
const matched = [];
|