livekit-client 1.13.4 → 1.14.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +8 -3
- package/dist/livekit-client.e2ee.worker.js.map +1 -1
- package/dist/livekit-client.e2ee.worker.mjs.map +1 -1
- 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/events.d.ts +1 -1
- package/dist/src/room/participant/LocalParticipant.d.ts.map +1 -1
- package/dist/src/room/track/options.d.ts +7 -3
- package/dist/src/room/track/options.d.ts.map +1 -1
- package/dist/ts4.2/src/room/events.d.ts +1 -1
- package/dist/ts4.2/src/room/track/options.d.ts +7 -3
- package/package.json +1 -1
- package/src/room/events.ts +1 -1
- package/src/room/participant/LocalParticipant.ts +5 -4
- package/src/room/track/options.ts +7 -3
@@ -11863,7 +11863,7 @@ function getMatch(exp, ua) {
|
|
11863
11863
|
return match && match.length >= id && match[id] || '';
|
11864
11864
|
}
|
11865
11865
|
|
11866
|
-
var version$1 = "1.
|
11866
|
+
var version$1 = "1.14.0";
|
11867
11867
|
|
11868
11868
|
const version = version$1;
|
11869
11869
|
const protocolVersion = 9;
|
@@ -12168,7 +12168,7 @@ var RoomEvent;
|
|
12168
12168
|
/**
|
12169
12169
|
* LiveKit will attempt to autoplay all audio tracks when you attach them to
|
12170
12170
|
* audio elements. However, if that fails, we'll notify you via AudioPlaybackStatusChanged.
|
12171
|
-
* `Room.
|
12171
|
+
* `Room.canPlaybackAudio` will indicate if audio playback is permitted.
|
12172
12172
|
*/
|
12173
12173
|
RoomEvent["AudioPlaybackStatusChanged"] = "audioPlaybackChanged";
|
12174
12174
|
/**
|
@@ -20300,9 +20300,6 @@ class LocalParticipant extends Participant {
|
|
20300
20300
|
if (options === undefined) {
|
20301
20301
|
options = {};
|
20302
20302
|
}
|
20303
|
-
if (options.resolution === undefined) {
|
20304
|
-
options.resolution = ScreenSharePresets.h1080fps15.resolution;
|
20305
|
-
}
|
20306
20303
|
if (navigator.mediaDevices.getDisplayMedia === undefined) {
|
20307
20304
|
throw new DeviceUnsupportedError('getDisplayMedia not supported');
|
20308
20305
|
}
|
@@ -20504,6 +20501,10 @@ class LocalParticipant extends Participant {
|
|
20504
20501
|
// for svc codecs, disable simulcast and use vp8 for backup codec
|
20505
20502
|
if (track instanceof LocalVideoTrack) {
|
20506
20503
|
if (isSVCCodec(opts.videoCodec)) {
|
20504
|
+
// vp9 svc with screenshare has problem to encode, always use L1T3 here
|
20505
|
+
if (track.source === Track.Source.ScreenShare && opts.videoCodec === 'vp9') {
|
20506
|
+
opts.scalabilityMode = 'L1T3';
|
20507
|
+
}
|
20507
20508
|
// set scalabilityMode to 'L3T3_KEY' by default
|
20508
20509
|
opts.scalabilityMode = (_e = opts.scalabilityMode) !== null && _e !== void 0 ? _e : 'L3T3_KEY';
|
20509
20510
|
}
|