Fix decoded frame timestamps (#49)

This commit is contained in:
Vanilagy
2025-08-10 19:26:41 +02:00
parent 5608f519a7
commit 56ae97f994
3 changed files with 85 additions and 27 deletions
+18
View File
@@ -586,3 +586,21 @@ export class CallSerializer {
return this.currentPromise = this.currentPromise.then(fn);
}
}
let isSafariCache: boolean | null = null;
export const isSafari = () => {
if (isSafariCache !== null) {
return isSafariCache;
}
const result = !!(
typeof navigator !== 'undefined'
&& navigator.vendor?.match(/apple/i)
&& !navigator.userAgent?.match(/crios/i)
&& !navigator.userAgent?.match(/fxios/i)
&& !navigator.userAgent?.match(/Opera|OPT\//)
);
isSafariCache = result;
return result;
};