livekit-client 1.15.1 → 1.15.3
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.e2ee.worker.js.map +1 -1
- package/dist/livekit-client.e2ee.worker.mjs +1 -2
- package/dist/livekit-client.e2ee.worker.mjs.map +1 -1
- package/dist/livekit-client.esm.mjs +142 -124
- 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/api/SignalClient.d.ts +11 -2
- package/dist/src/api/SignalClient.d.ts.map +1 -1
- package/dist/src/room/RTCEngine.d.ts.map +1 -1
- package/dist/src/room/participant/LocalParticipant.d.ts.map +1 -1
- package/dist/src/room/utils.d.ts.map +1 -1
- package/dist/ts4.2/src/api/SignalClient.d.ts +11 -2
- package/package.json +11 -11
- package/src/api/SignalClient.ts +142 -118
- package/src/room/RTCEngine.ts +7 -3
- package/src/room/Room.ts +1 -1
- package/src/room/participant/LocalParticipant.ts +12 -2
- package/src/room/utils.ts +11 -0
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) {
|