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.
@@ -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.13.4";
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.canPlayAudio` will indicate if audio playback is permitted.
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
  }