diff --git a/public/index.html b/public/index.html index 60ccb72..32a5ac6 100644 --- a/public/index.html +++ b/public/index.html @@ -110,58 +110,12 @@ - +
video.mp4
diff --git a/public/js/main.js b/public/js/main.js index 747dca6..26671f2 100644 --- a/public/js/main.js +++ b/public/js/main.js @@ -86,7 +86,7 @@ document.addEventListener('DOMContentLoaded', () => { let controlsPointerReleaseTimeout = null; if (videoPlayer) { - videoPlayer.controls = false; + videoPlayer.controls = true; } if (playbackSpeed) { videoPlayer.playbackRate = parseFloat(playbackSpeed.value) || 1; @@ -427,16 +427,7 @@ 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.