From fc2f20d921461f2c2e7b5141372be069244b1032 Mon Sep 17 00:00:00 2001 From: Trevor Mears Date: Thu, 1 Jan 2026 12:18:03 -0800 Subject: [PATCH] Fixed issue with safari/edge native HLS path mistakenly switching to proxy mode in some cases --- public/js/components/VideoPlayer.js | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/public/js/components/VideoPlayer.js b/public/js/components/VideoPlayer.js index 1fafab2..1f01e4e 100644 --- a/public/js/components/VideoPlayer.js +++ b/public/js/components/VideoPlayer.js @@ -176,7 +176,7 @@ class VideoPlayer { btnMute.addEventListener('click', () => { this.video.muted = !this.video.muted; btnMute.classList.toggle('muted', this.video.muted); - + // Update icon const icon = btnMute.querySelector('.icon'); if (this.video.muted) { @@ -231,13 +231,13 @@ class VideoPlayer { this.video.addEventListener('click', showControls); this.video.addEventListener('touchstart', showControls); - + // Keep controls visible when video is paused this.video.addEventListener('pause', () => { controls.classList.add('show'); clearTimeout(controlsTimeout); }); - + this.video.addEventListener('play', () => { hideControls(); }); @@ -469,7 +469,9 @@ class VideoPlayer { // Transcoded streams are fragmented MP4 - play directly with