We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee4d961 commit d044183Copy full SHA for d044183
packages/playback-core/src/index.ts
@@ -368,6 +368,10 @@ const MSE_SUPPORTED = Hls.isSupported?.();
368
const shouldDefaultToMSE = (mediaEl: Pick<HTMLMediaElement, 'canPlayType'>) => isAndroidLike || !isSafari(mediaEl);
369
370
export const generatePlayerInitTime = () => {
371
+ // bail during SSR to avoid triggering prerender errors
372
+ // actual time will be generated during hydration
373
+ if (typeof window === 'undefined') return undefined;
374
+
375
return mux.utils.now();
376
};
377
0 commit comments