From 337f338224011c7174947646bad7135fc65e3708 Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Tue, 14 Jul 2026 16:17:57 +0200 Subject: [PATCH] Fix hls tech detection --- src/view.web.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/view.web.tsx b/src/view.web.tsx index f122caa..f481e05 100644 --- a/src/view.web.tsx +++ b/src/view.web.tsx @@ -108,7 +108,11 @@ export const OmniView = ({ const ref = useRef(undefined!); const src = player.source?.src[0]; - const Tech = src?.uri.endsWith("m3u8") ? HlsJsVideo : Video; + const isHls = + src?.mimeType?.toLowerCase().includes("mpegurl") || + src?.uri.split(/[?#]/)[0]?.toLowerCase().endsWith(".m3u8") || + false; + const Tech = isHls ? HlsJsVideo : Video; const config = useMemo(() => { const headers = src?.headers;