From 2106ea29b74bb29d0ca20d2f4057788801131516 Mon Sep 17 00:00:00 2001 From: ArabCoders Date: Wed, 5 Mar 2025 21:50:54 +0300 Subject: [PATCH] disable default subtitle track for firefox as it has problem when we switch sources. --- ui/components/VideoPlayer.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ui/components/VideoPlayer.vue b/ui/components/VideoPlayer.vue index 4904d398..61ff726c 100644 --- a/ui/components/VideoPlayer.vue +++ b/ui/components/VideoPlayer.vue @@ -13,8 +13,8 @@ preload="auto"> - + @@ -45,6 +45,7 @@ const title = ref('') const isAudio = ref(false) const isApple = /(iPhone|iPod|iPad).*AppleWebKit/i.test(navigator.userAgent) const volume = useStorage('player_volume', 1) +const notFirefox = !navigator.userAgent.toLowerCase().includes('firefox') let hls = null;