From 9085fa19a9972f0c31f0ba92505c77a52acf3d66 Mon Sep 17 00:00:00 2001 From: Bobby Date: Tue, 11 Mar 2025 01:14:10 +0530 Subject: separate video/tracks in anime stream service and encode --- static/js/libs/videoPlayer.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'static/js') diff --git a/static/js/libs/videoPlayer.js b/static/js/libs/videoPlayer.js index 076d2aed..474741e0 100644 --- a/static/js/libs/videoPlayer.js +++ b/static/js/libs/videoPlayer.js @@ -1,7 +1,7 @@ class VideoPlayer { static defaultConfig = { selectors: { - container: '.win98-player', + container: '.shifoo-video-player', video: '#video-player', controls: { play: '#playBtn', @@ -321,17 +321,17 @@ class VideoPlayer { } getQualityButtonHTML(text) { - return ` + return ` - + ${text}`; } setupBufferingIndicator() { - const playerContainer = this.elements.video.closest('.win98-player-content'); + const playerContainer = this.elements.video.closest('.shifoo-video-player-content'); let loadingTimeout; const isBuffering = () => { @@ -464,7 +464,7 @@ class VideoPlayer { // Update the CC button text const defaultTrack = this.config.source.tracks[defaultTrackIndex]; this.elements.controls.cc.innerHTML = ` - + ${defaultTrack.label} `; @@ -541,7 +541,7 @@ class VideoPlayer { // Update button text this.elements.controls.cc.innerHTML = ` - + ${e.target.textContent} `; @@ -592,7 +592,7 @@ class VideoPlayer { }); this.isHoveringControls = false; - const controlsArea = this.elements.container.querySelector('.win98-controls'); + const controlsArea = this.elements.container.querySelector('.shifoo-video-player-controls'); controlsArea.addEventListener('mouseenter', () => { this.isHoveringControls = true; @@ -704,7 +704,7 @@ class VideoPlayer { } updateMuteButton(isAudio) { - this.elements.controls.mute.querySelector('.win98-icon').innerHTML = isAudio ? + this.elements.controls.mute.querySelector('.shifoo-video-player-icon').innerHTML = isAudio ? '' : ''; } -- cgit v1.2.3