diff --git a/public/index.html b/public/index.html index c7f0504..4a5e93d 100644 --- a/public/index.html +++ b/public/index.html @@ -115,58 +115,13 @@ - +
video.mp4
diff --git a/public/js/main.js b/public/js/main.js index 2a907a8..47a8283 100644 --- a/public/js/main.js +++ b/public/js/main.js @@ -86,7 +86,7 @@ document.addEventListener('DOMContentLoaded', () => { let defaultEncoder = 'software'; if (videoPlayer) { - videoPlayer.controls = false; + videoPlayer.controls = true; } if (playbackSpeed) { videoPlayer.playbackRate = parseFloat(playbackSpeed.value) || 1; @@ -436,16 +436,6 @@ document.addEventListener('DOMContentLoaded', () => { }); videoPlayer.addEventListener('volumechange', updateVolumeControls); - videoPlayer.addEventListener('click', () => { - if (!isStreamActive) return; - - if (videoPlayer.paused) { - videoPlayer.play().catch(() => {}); - return; - } - - videoPlayer.pause(); - }); // Browsers usually cannot seek inside a live fragmented MP4 stream. // When the user drags the native video controls, remap that action to our server-side seek flow.