From e8417a51444143100acc9562ebfe59c8a248e003 Mon Sep 17 00:00:00 2001 From: Pas <74743263+Pasithea0@users.noreply.github.com> Date: Tue, 11 Mar 2025 11:12:40 -0600 Subject: [PATCH] reenable native hls playback --- src/utils/detectFeatures.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils/detectFeatures.ts b/src/utils/detectFeatures.ts index f67c2207..5e59bf1e 100644 --- a/src/utils/detectFeatures.ts +++ b/src/utils/detectFeatures.ts @@ -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"); }