Added channel overlay to fullscreen video player

This commit is contained in:
Trevor Mears
2025-12-27 23:04:34 -08:00
parent f76e41c398
commit 6a1d5b44e9
2 changed files with 20 additions and 2 deletions
+3 -2
View File
@@ -6,6 +6,7 @@
class VideoPlayer {
constructor() {
this.video = document.getElementById('video-player');
this.container = document.querySelector('.video-container');
this.overlay = document.getElementById('player-overlay');
this.nowPlaying = document.getElementById('now-playing');
this.hls = null;
@@ -495,8 +496,8 @@ class VideoPlayer {
toggleFullscreen() {
if (document.fullscreenElement) {
document.exitFullscreen();
} else {
this.video.requestFullscreen();
} else if (this.container) {
this.container.requestFullscreen();
}
}
}