livekit-client 1.15.11 → 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.
- package/dist/livekit-client.esm.mjs +6 -5
- 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/room/RTCEngine.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/room/PCTransportManager.ts +1 -1
- package/src/room/RTCEngine.ts +4 -3
@@ -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;
|
@@ -16749,7 +16749,7 @@ class PCTransportManager {
|
|
16749
16749
|
}]
|
16750
16750
|
};
|
16751
16751
|
this.publisher = new PCTransport(rtcConfig, googConstraints, loggerOptions);
|
16752
|
-
this.subscriber = new PCTransport(rtcConfig, loggerOptions);
|
16752
|
+
this.subscriber = new PCTransport(rtcConfig, undefined, loggerOptions);
|
16753
16753
|
this.publisher.onConnectionStateChange = this.updateState;
|
16754
16754
|
this.subscriber.onConnectionStateChange = this.updateState;
|
16755
16755
|
this.publisher.onIceConnectionStateChange = this.updateState;
|
@@ -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 = [];
|