reenable native hls playback

This commit is contained in:
Pas 2025-03-11 11:12:40 -06:00
parent ee74957a28
commit e8417a5144

View file

@ -1,5 +1,6 @@
import { detect } from "detect-browser";
import fscreen from "fscreen";
import Hls from "hls.js";
export const isSafari = /^((?!chrome|android).)*safari/i.test(
navigator.userAgent,
@ -49,7 +50,7 @@ export function canWebkitPictureInPicture(): boolean {
}
export function canPlayHlsNatively(video: HTMLVideoElement): boolean {
// if (Hls.isSupported()) return false; // no need to play natively
if (Hls.isSupported()) return false; // no need to play natively
return !!video.canPlayType("application/vnd.apple.mpegurl");
}