Update public/script.js
Browse files- public/script.js +1 -3
public/script.js
CHANGED
|
@@ -79,7 +79,7 @@ async function changeChannel(channel) {
|
|
| 79 |
}
|
| 80 |
}
|
| 81 |
|
| 82 |
-
//
|
| 83 |
function togglePlay() {
|
| 84 |
if (videoPlayer.paused) {
|
| 85 |
videoPlayer.play();
|
|
@@ -88,7 +88,6 @@ function togglePlay() {
|
|
| 88 |
}
|
| 89 |
}
|
| 90 |
|
| 91 |
-
// Toggle fullscreen (supports all browsers & iOS Safari)
|
| 92 |
function toggleFullscreen() {
|
| 93 |
if (document.fullscreenElement) {
|
| 94 |
document.exitFullscreen();
|
|
@@ -105,7 +104,6 @@ function toggleFullscreen() {
|
|
| 105 |
}
|
| 106 |
}
|
| 107 |
|
| 108 |
-
// Toggle mute/unmute
|
| 109 |
function toggleMute() {
|
| 110 |
videoPlayer.muted = !videoPlayer.muted;
|
| 111 |
document.getElementById("muteBtn").textContent = videoPlayer.muted ? "π Unmute" : "π Mute";
|
|
|
|
| 79 |
}
|
| 80 |
}
|
| 81 |
|
| 82 |
+
// Controls
|
| 83 |
function togglePlay() {
|
| 84 |
if (videoPlayer.paused) {
|
| 85 |
videoPlayer.play();
|
|
|
|
| 88 |
}
|
| 89 |
}
|
| 90 |
|
|
|
|
| 91 |
function toggleFullscreen() {
|
| 92 |
if (document.fullscreenElement) {
|
| 93 |
document.exitFullscreen();
|
|
|
|
| 104 |
}
|
| 105 |
}
|
| 106 |
|
|
|
|
| 107 |
function toggleMute() {
|
| 108 |
videoPlayer.muted = !videoPlayer.muted;
|
| 109 |
document.getElementById("muteBtn").textContent = videoPlayer.muted ? "π Unmute" : "π Mute";
|