From 3c51d45d7477e4f028e362807932b628b449da16 Mon Sep 17 00:00:00 2001 From: SamidyFR <168582143+SamidyFR@users.noreply.github.com> Date: Wed, 11 Mar 2026 06:14:00 +0000 Subject: [PATCH] style: auto-fix linting issues --- js/player.js | 33 ++++++++++++++++++++------------- 1 file changed, 20 insertions(+), 13 deletions(-) diff --git a/js/player.js b/js/player.js index 57e3b1f..f787274 100644 --- a/js/player.js +++ b/js/player.js @@ -109,19 +109,23 @@ export class Player { this._setupVideoSync(); } -_resetDashPlayer() { - if (this.dashInitialized && this.dashPlayer) { - try { this.dashPlayer.attachView(null); } catch (e) {} - try { this.dashPlayer.destroy(); } catch (e) {} - this.dashPlayer = MediaPlayer().create(); - this.dashPlayer.updateSettings({ - streaming: { - buffer: { fastSwitchEnabled: true }, - }, - }); - this.dashInitialized = false; + _resetDashPlayer() { + if (this.dashInitialized && this.dashPlayer) { + try { + this.dashPlayer.attachView(null); + } catch (e) {} + try { + this.dashPlayer.destroy(); + } catch (e) {} + this.dashPlayer = MediaPlayer().create(); + this.dashPlayer.updateSettings({ + streaming: { + buffer: { fastSwitchEnabled: true }, + }, + }); + this.dashInitialized = false; + } } -} _setupVideoSync() { if (!this.video || !this.audio) return; @@ -898,7 +902,10 @@ _resetDashPlayer() { console.error('DashPlayer initialize failed for audio:', e); throw new Error('DASH initialization failed'); } - } else if (streamUrl && (streamUrl.includes('.m3u8') || streamUrl.includes('application/vnd.apple.mpegurl'))) { + } else if ( + streamUrl && + (streamUrl.includes('.m3u8') || streamUrl.includes('application/vnd.apple.mpegurl')) + ) { this.setupHlsVideo(activeElement, streamUrl, null); this.applyAudioEffects();