livekit-client 2.1.0 → 2.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- {"version":3,"file":"PCTransport.d.ts","sourceRoot":"","sources":["../../../src/room/PCTransport.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAMtC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAG7C,gBAAgB;AAChB,UAAU,gBAAgB;IACxB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,iBAAiB,CAAC;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAUD,eAAO,MAAM,QAAQ;;;;CAIX,CAAC;AAEX,gBAAgB;AAChB,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,YAAY;IACnD,OAAO,CAAC,GAAG,CAA2B;IAEtC,OAAO,KAAK,EAAE,GAKb;IAED,OAAO,CAAC,MAAM,CAAC,CAAmB;IAElC,OAAO,CAAC,GAAG,CAAO;IAElB,OAAO,CAAC,aAAa,CAAgB;IAErC,iBAAiB,EAAE,mBAAmB,EAAE,CAAM;IAE9C,aAAa,EAAE,OAAO,CAAS;IAE/B,WAAW,EAAE,OAAO,CAAS;IAE7B,aAAa,EAAE,gBAAgB,EAAE,CAAM;IAEvC,gBAAgB,EAAE,MAAM,EAAE,CAAM;IAEhC,cAAc,EAAE,MAAM,EAAE,CAAM;IAE9B,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,yBAAyB,KAAK,IAAI,CAAC;IAErD,cAAc,CAAC,EAAE,CAAC,SAAS,EAAE,eAAe,KAAK,IAAI,CAAC;IAEtD,mBAAmB,CAAC,EAAE,CAAC,EAAE,EAAE,KAAK,KAAK,IAAI,CAAC;IAE1C,uBAAuB,CAAC,EAAE,CAAC,KAAK,EAAE,sBAAsB,KAAK,IAAI,CAAC;IAElE,0BAA0B,CAAC,EAAE,CAAC,KAAK,EAAE,qB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AAI,CAAC;IAE5D,aAAa,CAAC,EAAE,CAAC,EAAE,EAAE,mBAAmB,KAAK,IAAI,CAAC;IAElD,OAAO,CAAC,EAAE,CAAC,EAAE,EAAE,aAAa,KAAK,IAAI,CAAC;gBAE1B,MAAM,CAAC,EAAE,gBAAgB,EAAE,aAAa,GAAE,aAAkB;IAQxE,OAAO,CAAC,QAAQ;IA+BhB,OAAO,KAAK,UAAU,GAIrB;IAED,IAAI,cAAc,IAAI,OAAO,CAK5B;IAEK,eAAe,CAAC,SAAS,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC;IAO9D,oBAAoB,CAAC,EAAE,EAAE,yBAAyB,GAAG,OAAO,CAAC,IAAI,CAAC;IAoFxE,SAAS;iDAAiC,KAAK,KAAK,IAAI;;MAWhD;IAEF,kBAAkB,CAAC,OAAO,CAAC,EAAE,eAAe;IA8E5C,kBAAkB,IAAI,OAAO,CAAC,yBAAyB,CAAC;IAY9D,iBAAiB,CAAC,KAAK,EAAE,MAAM,EAAE,eAAe,EAAE,kBAAkB;IAIpE,cAAc,CAAC,gBAAgB,EAAE,gBAAgB,EAAE,eAAe,EAAE,qBAAqB;IAIzF,QAAQ,CAAC,KAAK,EAAE,gBAAgB;IAOhC,oBAAoB,CAAC,IAAI,EAAE,gBAAgB;IAI3C,gBAAgB,CAAC,SAAS,EAAE,gBAAgB;IAO5C,cAAc,IAAI,OAAO;IAIzB,WAAW,CAAC,MAAM,EAAE,YAAY;IAIhC,kBAAkB;IAIlB,qBAAqB;IAIrB,kBAAkB;IAIlB,eAAe;IAIf,UAAU;IAIV,mBAAmB;IAInB,oBAAoB;IAIpB,QAAQ;IAIF,mBAAmB,IAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;IAqCxD,KAAK,aAiBH;YAEY,YAAY;CAkD3B"}
@@ -8,10 +8,10 @@ import { PCTransportManager } from './PCTransportManager';
8
8
  import type { RegionUrlProvider } from './RegionUrlProvider';
9
9
  import type LocalTrack from './track/LocalTrack';
10
10
  import type LocalTrackPublication from './track/LocalTrackPublication';
11
- import type LocalVideoTrack from './track/LocalVideoTrack';
11
+ import LocalVideoTrack from './track/LocalVideoTrack';
12
12
  import type { SimulcastTrackInfo } from './track/LocalVideoTrack';
13
13
  import type RemoteTrackPublication from './track/RemoteTrackPublication';
14
- import { Track } from './track/Track';
14
+ import type { Track } from './track/Track';
15
15
  import type { TrackPublishOptions, VideoCodec } from './track/options';
16
16
  declare const RTCEngine_base: new () => TypedEventEmitter<EngineEventCallbacks>;
17
17
  /** @internal */
@@ -90,7 +90,6 @@ export default class RTCEngine extends RTCEngine_base {
90
90
  private handleDataMessage;
91
91
  private handleDataError;
92
92
  private handleBufferedAmountLow;
93
- private setPreferredCodec;
94
93
  createSender(track: LocalTrack, opts: TrackPublishOptions, encodings?: RTCRtpEncodingParameters[]): Promise<RTCRtpSender>;
95
94
  createSimulcastSender(track: LocalVideoTrack, simulcastTrack: SimulcastTrackInfo, opts: TrackPublishOptions, encodings?: RTCRtpEncodingParameters[]): Promise<RTCRtpSender | undefined>;
96
95
  private createTransceiverRTCRtpSender;
@@ -1 +1 @@
1
- {"version":3,"file":"RTCEngine.d.ts","sourceRoot":"","sources":["../../../src/room/RTCEngine.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,eAAe,EAGpB,KAAK,uBAAuB,EAE5B,UAAU,EACV,eAAe,EACf,gBAAgB,EAChB,KAAK,YAAY,EAEjB,eAAe,EAGf,IAAI,IAAI,SAAS,EAEjB,WAAW,EACX,KAAK,iBAAiB,EACtB,uBAAuB,EACvB,KAAK,4BAA4B,EACjC,KAAK,oBAAoB,EAEzB,SAAS,EAET,wBAAwB,EAExB,UAAU,EACX,MAAM,mBAAmB,CAAC;AAG3B,OAAO,KAAK,iBAAiB,MAAM,eAAe,CAAC;AACnD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EACL,YAAY,EAGb,MAAM,qBAAqB,CAAC;AAE7B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AG,gBAAgB,EACpC,eAAe,CAAC,EAAE,OAAO,GACxB,OAAO,CAAC,qBAAqB,GAAG,SAAS,CAAC;IAkGvC,eAAe,CACnB,MAAM,EAAE,UAAU,EAAE,GAAG,gBAAgB,EAAE,GACxC,OAAO,CAAC,qBAAqB,EAAE,CAAC;IAO7B,kBAAkB,CAAC,OAAO,CAAC,EAAE,mBAAmB,EAAE,aAAa,GAAE,OAAc;IAoCrF;;;;;;OAMG;IACG,WAAW,CAAC,IAAI,EAAE,UAAU,EAAE,OAAO,GAAE,kBAAuB,GAAG,OAAO,CAAC,IAAI,CAAC;IAqBpF;;;;;;;;;;;;;;;;OAgBG;IACH,+BAA+B,CAC7B,sBAAsB,EAAE,OAAO,EAC/B,2BAA2B,GAAE,0BAA0B,EAAO;IAShE,gBAAgB;IAChB,UAAU,CAAC,IAAI,EAAE,eAAe,GAAG,OAAO;IA+B1C,OAAO,CAAC,kCAAkC,CAUxC;IAEF,gBAAgB;IAChB,OAAO,CAAC,cAAc,CAEpB;IAGF,gBAAgB;IAChB,OAAO,CAAC,YAAY,CAclB;IAEF,OAAO,CAAC,qBAAqB,CAM3B;IAEF,OAAO,CAAC,sBAAsB,CAM5B;IAEF,OAAO,CAAC,oBAAoB,CAU1B;IAEF,OAAO,CAAC,6BAA6B,CA6BnC;IAEF,OAAO,CAAC,2BAA2B,CAUjC;IAEF,OAAO,CAAC,gBAAgB,CAyDtB;IAEF,OAAO,CAAC,sBAAsB;CAuB/B"}
@@ -15,13 +15,13 @@ export declare function supportsAV1(): boolean;
15
15
  export declare function supportsVP9(): boolean;
16
16
  export declare function isSVCCodec(codec?: string): boolean;
17
17
  export declare function supportsSetSinkId(elm?: HTMLMediaElement): boolean;
18
- export declare function supportsSetCodecPreferences(transceiver: RTCRtpTransceiver): boolean;
19
18
  export declare function isBrowserSupported(): boolean;
20
19
  export declare function isFireFox(): boolean;
21
20
  export declare function isChromiumBased(): boolean;
22
21
  export declare function isSafari(): boolean;
23
22
  export declare function isSafari17(): boolean;
24
23
  export declare function isMobile(): boolean;
24
+ export declare function isE2EESimulcastSupported(): boolean | undefined;
25
25
  export declare function isWeb(): boolean;
26
26
  export declare function isReactNative(): boolean;
27
27
  export declare function isCloud(serverUrl: URL): boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/room/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAkB,MAAM,mBAAmB,CAAC;AAK/D,OAAO,KAAK,eAAe,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,gBAAgB,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAe,MAAM,iBAAiB,CAAC;AAK1D,eAAO,MAAM,cAAc,4FACgE,CAAC;AAE5F,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAMvD;AAED,wBAAsB,KAAK,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAE3D;AAED,gBAAgB;AAChB,wBAAgB,mBAAmB,YAElC;AAED,gBAAgB;AAChB,wBAAgB,gBAAgB,YAE/B;AAED,wBAAgB,sBAAsB,YAErC;AAED,wBAAgB,gBAAgB,YAE/B;AAED,wBAAgB,WAAW,IAAI,OAAO,CAmBrC;AAED,wBAAgB,WAAW,IAAI,OAAO,CA2BrC;AAED,wBAAgB,UAAU,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAElD;AAED,wBAAgB,iBAAiB,CAAC,GAAG,CAAC,EAAE,gBAAgB,GAAG,OAAO,CAQjE;AAQD,wBAAgB,2BAA2B,CAAC,WAAW,EAAE,iBAAiB,GAAG,OAAO,CAiBnF;AAED,wBAAgB,kBAAkB,YAKjC;AAED,wBAAgB,SAAS,IAAI,OAAO,CAEnC;AAED,wBAAgB,eAAe,IAAI,OAAO,CAEzC;AAED,wBAAgB,QAAQ,IAAI,OAAO,CAElC;AAED,wBAAgB,UAAU,IAAI,O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CAAC,MAAM,CAAS;;IAOvB,QAAQ;IAIR,IAAI,kBAGoB,IAAI;CAgB7B;AAED,wBAAgB,YAAY,CAAC,UAAU,EAAE,MAAM,GAAG,UAAU,IAAI,UAAU,CAEzE;AAED,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,kBAAkB,GAAG,MAAM,CAqBvE;AAED,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAKlD;AAED,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAK7C"}
@@ -4,6 +4,7 @@ export type BrowserDetails = {
4
4
  name: DetectableBrowser;
5
5
  version: string;
6
6
  os?: DetectableOS;
7
+ osVersion?: string;
7
8
  };
8
9
  /**
9
10
  * @internal
@@ -1 +1 @@
1
- {"version":3,"file":"browserParser.d.ts","sourceRoot":"","sources":["../../../src/utils/browserParser.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG,SAAS,GAAG,QAAQ,CAAC;AAChE,MAAM,MAAM,YAAY,GAAG,KAAK,GAAG,OAAO,CAAC;AAE3C,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,EAAE,iBAAiB,CAAC;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,EAAE,CAAC,EAAE,YAAY,CAAC;CACnB,CAAC;AAIF;;GAEG;AACH,wBAAgB,UAAU,CAAC,SAAS,CAAC,EAAE,MAAM,EAAE,KAAK,UAAO,8BAU1D"}
1
+ {"version":3,"file":"browserParser.d.ts","sourceRoot":"","sources":["../../../src/utils/browserParser.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG,SAAS,GAAG,QAAQ,CAAC;AAChE,MAAM,MAAM,YAAY,GAAG,KAAK,GAAG,OAAO,CAAC;AAE3C,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,EAAE,iBAAiB,CAAC;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,EAAE,CAAC,EAAE,YAAY,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAIF;;GAEG;AACH,wBAAgB,UAAU,CAAC,SAAS,CAAC,EAAE,MAAM,EAAE,KAAK,UAAO,GAAG,cAAc,GAAG,SAAS,CAUvF"}
@@ -9,10 +9,10 @@ import { PCTransportManager } from './PCTransportManager';
9
9
  import type { RegionUrlProvider } from './RegionUrlProvider';
10
10
  import type LocalTrack from './track/LocalTrack';
11
11
  import type LocalTrackPublication from './track/LocalTrackPublication';
12
- import type LocalVideoTrack from './track/LocalVideoTrack';
12
+ import LocalVideoTrack from './track/LocalVideoTrack';
13
13
  import type { SimulcastTrackInfo } from './track/LocalVideoTrack';
14
14
  import type RemoteTrackPublication from './track/RemoteTrackPublication';
15
- import { Track } from './track/Track';
15
+ import type { Track } from './track/Track';
16
16
  import type { TrackPublishOptions, VideoCodec } from './track/options';
17
17
  declare const RTCEngine_base: new () => TypedEventEmitter<EngineEventCallbacks>;
18
18
  /** @internal */
@@ -91,7 +91,6 @@ export default class RTCEngine extends RTCEngine_base {
91
91
  private handleDataMessage;
92
92
  private handleDataError;
93
93
  private handleBufferedAmountLow;
94
- private setPreferredCodec;
95
94
  createSender(track: LocalTrack, opts: TrackPublishOptions, encodings?: RTCRtpEncodingParameters[]): Promise<RTCRtpSender>;
96
95
  createSimulcastSender(track: LocalVideoTrack, simulcastTrack: SimulcastTrackInfo, opts: TrackPublishOptions, encodings?: RTCRtpEncodingParameters[]): Promise<RTCRtpSender | undefined>;
97
96
  private createTransceiverRTCRtpSender;
@@ -15,13 +15,13 @@ export declare function supportsAV1(): boolean;
15
15
  export declare function supportsVP9(): boolean;
16
16
  export declare function isSVCCodec(codec?: string): boolean;
17
17
  export declare function supportsSetSinkId(elm?: HTMLMediaElement): boolean;
18
- export declare function supportsSetCodecPreferences(transceiver: RTCRtpTransceiver): boolean;
19
18
  export declare function isBrowserSupported(): boolean;
20
19
  export declare function isFireFox(): boolean;
21
20
  export declare function isChromiumBased(): boolean;
22
21
  export declare function isSafari(): boolean;
23
22
  export declare function isSafari17(): boolean;
24
23
  export declare function isMobile(): boolean;
24
+ export declare function isE2EESimulcastSupported(): boolean | undefined;
25
25
  export declare function isWeb(): boolean;
26
26
  export declare function isReactNative(): boolean;
27
27
  export declare function isCloud(serverUrl: URL): boolean;
@@ -4,6 +4,7 @@ export type BrowserDetails = {
4
4
  name: DetectableBrowser;
5
5
  version: string;
6
6
  os?: DetectableOS;
7
+ osVersion?: string;
7
8
  };
8
9
  /**
9
10
  * @internal
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "livekit-client",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "description": "JavaScript/TypeScript client SDK for LiveKit",
5
5
  "main": "./dist/livekit-client.umd.js",
6
6
  "unpkg": "./dist/livekit-client.umd.js",
@@ -474,8 +474,6 @@ export default class PCTransport extends EventEmitter {
474
474
  await this.pc.setLocalDescription(sd);
475
475
  }
476
476
  } catch (e) {
477
- // this error cannot always be caught.
478
- // If the local description has a setCodecPreferences error, this error will be uncaught
479
477
  let msg = 'unknown error';
480
478
  if (e instanceof Error) {
481
479
  msg = e.message;
@@ -53,22 +53,14 @@ import { EngineEvent } from './events';
53
53
  import CriticalTimers from './timers';
54
54
  import type LocalTrack from './track/LocalTrack';
55
55
  import type LocalTrackPublication from './track/LocalTrackPublication';
56
- import type LocalVideoTrack from './track/LocalVideoTrack';
56
+ import LocalVideoTrack from './track/LocalVideoTrack';
57
57
  import type { SimulcastTrackInfo } from './track/LocalVideoTrack';
58
58
  import type RemoteTrackPublication from './track/RemoteTrackPublication';
59
- import { Track } from './track/Track';
59
+ import type { Track } from './track/Track';
60
60
  import type { TrackPublishOptions, VideoCodec } from './track/options';
61
61
  import { getTrackPublicationInfo } from './track/utils';
62
62
  import type { LoggerOptions } from './types';
63
- import {
64
- Mutex,
65
- isVideoCodec,
66
- isWeb,
67
- sleep,
68
- supportsAddTrack,
69
- supportsSetCodecPreferences,
70
- supportsTransceiver,
71
- } from './utils';
63
+ import { Mutex, isVideoCodec, isWeb, sleep, supportsAddTrack, supportsTransceiver } from './utils';
72
64
 
73
65
  const lossyDataChannel = '_lossy';
74
66
  const reliableDataChannel = '_reliable';
@@ -671,51 +663,6 @@ export default class RTCEngine extends (EventEmitter as new () => TypedEventEmit
671
663
  this.updateAndEmitDCBufferStatus(channelKind);
672
664
  };
673
665
 
674
- private setPreferredCodec(
675
- transceiver: RTCRtpTransceiver,
676
- kind: Track.Kind,
677
- videoCodec: VideoCodec,
678
- ) {
679
- if (!('getCapabilities' in RTCRtpReceiver)) {
680
- return;
681
- }
682
- // when setting codec preferences, the capabilites need to be read from the RTCRtpReceiver
683
- const cap = RTCRtpReceiver.getCapabilities(kind);
684
- if (!cap) return;
685
- this.log.debug('get receiver capabilities', { ...this.logContext, cap });
686
- const matched: RTCRtpCodecCapability[] = [];
687
- const partialMatched: RTCRtpCodecCapability[] = [];
688
- const unmatched: RTCRtpCodecCapability[] = [];
689
- cap.codecs.forEach((c) => {
690
- const codec = c.mimeType.toLowerCase();
691
- if (codec === 'audio/opus') {
692
- matched.push(c);
693
- return;
694
- }
695
- const matchesVideoCodec = codec === `video/${videoCodec}`;
696
- if (!matchesVideoCodec) {
697
- unmatched.push(c);
698
- return;
699
- }
700
- // for h264 codecs that have sdpFmtpLine available, use only if the
701
- // profile-level-id is 42e01f for cross-browser compatibility
702
- if (videoCodec === 'h264') {
703
- if (c.sdpFmtpLine && c.sdpFmtpLine.includes('profile-level-id=42e01f')) {
704
- matched.push(c);
705
- } else {
706
- partialMatched.push(c);
707
- }
708
- return;
709
- }
710
-
711
- matched.push(c);
712
- });
713
-
714
- if (supportsSetCodecPreferences(transceiver)) {
715
- transceiver.setCodecPreferences(matched.concat(partialMatched, unmatched));
716
- }
717
- }
718
-
719
666
  async createSender(
720
667
  track: LocalTrack,
721
668
  opts: TrackPublishOptions,
@@ -766,6 +713,10 @@ export default class RTCEngine extends (EventEmitter as new () => TypedEventEmit
766
713
  streams.push(track.mediaStream);
767
714
  }
768
715
 
716
+ if (track instanceof LocalVideoTrack) {
717
+ track.codec = opts.videoCodec;
718
+ }
719
+
769
720
  const transceiverInit: RTCRtpTransceiverInit = { direction: 'sendonly', streams };
770
721
  if (encodings) {
771
722
  transceiverInit.sendEncodings = encodings;
@@ -776,10 +727,6 @@ export default class RTCEngine extends (EventEmitter as new () => TypedEventEmit
776
727
  transceiverInit,
777
728
  );
778
729
 
779
- if (track.kind === Track.Kind.Video && opts.videoCodec) {
780
- this.setPreferredCodec(transceiver, track.kind, opts.videoCodec);
781
- track.codec = opts.videoCodec;
782
- }
783
730
  return transceiver.sender;
784
731
  }
785
732
 
@@ -804,7 +751,6 @@ export default class RTCEngine extends (EventEmitter as new () => TypedEventEmit
804
751
  if (!opts.videoCodec) {
805
752
  return;
806
753
  }
807
- this.setPreferredCodec(transceiver, track.kind, opts.videoCodec);
808
754
  track.setSimulcastTrackSender(opts.videoCodec, transceiver.sender);
809
755
  return transceiver.sender;
810
756
  }
@@ -40,9 +40,9 @@ import {
40
40
  import type { DataPublishOptions } from '../types';
41
41
  import {
42
42
  Future,
43
+ isE2EESimulcastSupported,
43
44
  isFireFox,
44
45
  isSVCCodec,
45
- isSafari,
46
46
  isSafari17,
47
47
  isWeb,
48
48
  supportsAV1,
@@ -621,10 +621,9 @@ export default class LocalParticipant extends Participant {
621
621
  ...options,
622
622
  };
623
623
 
624
- // disable simulcast if e2ee is set on safari
625
- if (isSafari() && this.roomOptions.e2ee) {
624
+ if (!isE2EESimulcastSupported() && this.roomOptions.e2ee) {
626
625
  this.log.info(
627
- `End-to-end encryption is set up, simulcast publishing will be disabled on Safari`,
626
+ `End-to-end encryption is set up, simulcast publishing will be disabled on Safari versions and iOS browsers running iOS < v17.2`,
628
627
  {
629
628
  ...this.logContext,
630
629
  },
@@ -827,7 +826,6 @@ export default class LocalParticipant extends Participant {
827
826
  ...getLogContextFromTrack(track),
828
827
  codec: updatedCodec,
829
828
  });
830
- /* @ts-ignore */
831
829
  opts.videoCodec = updatedCodec;
832
830
 
833
831
  // recompute encodings since bitrates/etc could have changed
package/src/room/utils.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { ClientInfo, ClientInfo_SDK } from '@livekit/protocol';
2
- import type { DetectableBrowser } from '../utils/browserParser';
3
2
  import { getBrowser } from '../utils/browserParser';
4
3
  import { protocolVersion, version } from '../version';
5
4
  import CriticalTimers from './timers';
@@ -107,31 +106,6 @@ export function supportsSetSinkId(elm?: HTMLMediaElement): boolean {
107
106
  return 'setSinkId' in elm;
108
107
  }
109
108
 
110
- const setCodecPreferencesVersions: Record<DetectableBrowser, string> = {
111
- Chrome: '100',
112
- Safari: '15',
113
- Firefox: '100',
114
- };
115
-
116
- export function supportsSetCodecPreferences(transceiver: RTCRtpTransceiver): boolean {
117
- if (!isWeb()) {
118
- return false;
119
- }
120
- if (!('setCodecPreferences' in transceiver)) {
121
- return false;
122
- }
123
- const browser = getBrowser();
124
- if (!browser?.name || !browser.version) {
125
- // version is required
126
- return false;
127
- }
128
- const v = setCodecPreferencesVersions[browser.name];
129
- if (v) {
130
- return compareVersions(browser.version, v) >= 0;
131
- }
132
- return false;
133
- }
134
-
135
109
  export function isBrowserSupported() {
136
110
  if (typeof RTCPeerConnection === 'undefined') {
137
111
  return false;
@@ -158,7 +132,35 @@ export function isSafari17(): boolean {
158
132
 
159
133
  export function isMobile(): boolean {
160
134
  if (!isWeb()) return false;
161
- return /Tablet|iPad|Mobile|Android|BlackBerry/.test(navigator.userAgent);
135
+
136
+ return (
137
+ // @ts-expect-error `userAgentData` is not yet part of typescript
138
+ navigator.userAgentData?.mobile ??
139
+ /Tablet|iPad|Mobile|Android|BlackBerry/.test(navigator.userAgent)
140
+ );
141
+ }
142
+
143
+ export function isE2EESimulcastSupported() {
144
+ const browser = getBrowser();
145
+ const supportedSafariVersion = '17.2'; // see https://bugs.webkit.org/show_bug.cgi?id=257803
146
+ if (browser) {
147
+ if (browser.name !== 'Safari' && browser.os !== 'iOS') {
148
+ return true;
149
+ } else if (
150
+ browser.os === 'iOS' &&
151
+ browser.osVersion &&
152
+ compareVersions(supportedSafariVersion, browser.osVersion) >= 0
153
+ ) {
154
+ return true;
155
+ } else if (
156
+ browser.name === 'Safari' &&
157
+ compareVersions(supportedSafariVersion, browser.version) >= 0
158
+ ) {
159
+ return true;
160
+ } else {
161
+ return false;
162
+ }
163
+ }
162
164
  }
163
165
 
164
166
  export function isWeb(): boolean {
@@ -29,12 +29,14 @@ describe('browser parser', () => {
29
29
  expect(details?.name).toBe('Safari');
30
30
  expect(details?.version).toBe('16.3');
31
31
  expect(details?.os).toBe('macOS');
32
+ expect(details?.osVersion).toBe('10.15.7');
32
33
  });
33
34
  it('parses Safari iOS correctly', () => {
34
35
  const details = getBrowser(iOSSafariUA, true);
35
36
  expect(details?.name).toBe('Safari');
36
37
  expect(details?.version).toBe('16.5');
37
38
  expect(details?.os).toBe('iOS');
39
+ expect(details?.osVersion).toBe('16.5.1');
38
40
  });
39
41
  it('parses Firefox correctly', () => {
40
42
  const details = getBrowser(firefoxUA, true);
@@ -46,6 +48,7 @@ describe('browser parser', () => {
46
48
  expect(details?.name).toBe('Firefox');
47
49
  expect(details?.version).toBe('115.0');
48
50
  expect(details?.os).toBe('iOS');
51
+ expect(details?.osVersion).toBe('13.4.1');
49
52
  });
50
53
  it('parses Chrome correctly', () => {
51
54
  const details = getBrowser(chromeUA, true);
@@ -57,6 +60,7 @@ describe('browser parser', () => {
57
60
  expect(details?.name).toBe('Chrome');
58
61
  expect(details?.version).toBe('115.0.5790.130');
59
62
  expect(details?.os).toBe('iOS');
63
+ expect(details?.osVersion).toBe('16.5');
60
64
  });
61
65
  it('detects brave as chromium based', () => {
62
66
  const details = getBrowser(braveUA, true);
@@ -10,6 +10,7 @@ export type BrowserDetails = {
10
10
  name: DetectableBrowser;
11
11
  version: string;
12
12
  os?: DetectableOS;
13
+ osVersion?: string;
13
14
  };
14
15
 
15
16
  let browserDetails: BrowserDetails | undefined;
@@ -17,7 +18,7 @@ let browserDetails: BrowserDetails | undefined;
17
18
  /**
18
19
  * @internal
19
20
  */
20
- export function getBrowser(userAgent?: string, force = true) {
21
+ export function getBrowser(userAgent?: string, force = true): BrowserDetails | undefined {
21
22
  if (typeof userAgent === 'undefined' && typeof navigator === 'undefined') {
22
23
  return;
23
24
  }
@@ -37,6 +38,7 @@ const browsersList = [
37
38
  name: 'Firefox',
38
39
  version: getMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i, ua),
39
40
  os: ua.toLowerCase().includes('fxios') ? 'iOS' : undefined,
41
+ osVersion: getOSVersion(ua),
40
42
  };
41
43
  return browser;
42
44
  },
@@ -48,6 +50,7 @@ const browsersList = [
48
50
  name: 'Chrome',
49
51
  version: getMatch(/(?:chrome|chromium|crios|crmo)\/(\d+(\.?_?\d+)+)/i, ua),
50
52
  os: ua.toLowerCase().includes('crios') ? 'iOS' : undefined,
53
+ osVersion: getOSVersion(ua),
51
54
  };
52
55
 
53
56
  return browser;
@@ -61,6 +64,7 @@ const browsersList = [
61
64
  name: 'Safari',
62
65
  version: getMatch(commonVersionIdentifier, ua),
63
66
  os: ua.includes('mobile/') ? 'iOS' : 'macOS',
67
+ osVersion: getOSVersion(ua),
64
68
  };
65
69
 
66
70
  return browser;
@@ -72,3 +76,9 @@ function getMatch(exp: RegExp, ua: string, id = 1) {
72
76
  const match = ua.match(exp);
73
77
  return (match && match.length >= id && match[id]) || '';
74
78
  }
79
+
80
+ function getOSVersion(ua: string) {
81
+ return ua.includes('mac os')
82
+ ? getMatch(/\(.+?(\d+_\d+(:?_\d+)?)/, ua, 1).replace(/_/g, '.')
83
+ : undefined;
84
+ }