livekit-client 1.15.1 → 1.15.3

Sign up to get free protection for your applications and to get access to all the features.
package/src/room/utils.ts CHANGED
@@ -47,6 +47,10 @@ export function supportsAV1(): boolean {
47
47
  if (!('getCapabilities' in RTCRtpSender)) {
48
48
  return false;
49
49
  }
50
+ if (isSafari()) {
51
+ // Safari 17 on iPhone14 reports AV1 capability, but does not actually support it
52
+ return false;
53
+ }
50
54
  const capabilities = RTCRtpSender.getCapabilities('video');
51
55
  let hasAV1 = false;
52
56
  if (capabilities) {
@@ -69,6 +73,13 @@ export function supportsVP9(): boolean {
69
73
  // https://bugzilla.mozilla.org/show_bug.cgi?id=1633876
70
74
  return false;
71
75
  }
76
+ if (isSafari()) {
77
+ const browser = getBrowser();
78
+ if (browser?.version && compareVersions(browser.version, '16') < 0) {
79
+ // Safari 16 and below does not support VP9
80
+ return false;
81
+ }
82
+ }
72
83
  const capabilities = RTCRtpSender.getCapabilities('video');
73
84
  let hasVP9 = false;
74
85
  if (capabilities) {