diff --git a/public/js/components/VideoPlayer.js b/public/js/components/VideoPlayer.js index d642a32..cadf9a3 100644 --- a/public/js/components/VideoPlayer.js +++ b/public/js/components/VideoPlayer.js @@ -181,7 +181,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) { @@ -236,13 +236,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(); }); @@ -474,7 +474,9 @@ class VideoPlayer { // Transcoded streams are fragmented MP4 - play directly with