style: auto-fix linting issues

This commit is contained in:
SamidyFR 2026-03-11 06:14:00 +00:00 committed by github-actions[bot]
parent c4af3ea204
commit 3c51d45d74

View file

@ -109,19 +109,23 @@ export class Player {
this._setupVideoSync(); this._setupVideoSync();
} }
_resetDashPlayer() { _resetDashPlayer() {
if (this.dashInitialized && this.dashPlayer) { if (this.dashInitialized && this.dashPlayer) {
try { this.dashPlayer.attachView(null); } catch (e) {} try {
try { this.dashPlayer.destroy(); } catch (e) {} this.dashPlayer.attachView(null);
this.dashPlayer = MediaPlayer().create(); } catch (e) {}
this.dashPlayer.updateSettings({ try {
streaming: { this.dashPlayer.destroy();
buffer: { fastSwitchEnabled: true }, } catch (e) {}
}, this.dashPlayer = MediaPlayer().create();
}); this.dashPlayer.updateSettings({
this.dashInitialized = false; streaming: {
buffer: { fastSwitchEnabled: true },
},
});
this.dashInitialized = false;
}
} }
}
_setupVideoSync() { _setupVideoSync() {
if (!this.video || !this.audio) return; if (!this.video || !this.audio) return;
@ -898,7 +902,10 @@ _resetDashPlayer() {
console.error('DashPlayer initialize failed for audio:', e); console.error('DashPlayer initialize failed for audio:', e);
throw new Error('DASH initialization failed'); 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.setupHlsVideo(activeElement, streamUrl, null);
this.applyAudioEffects(); this.applyAudioEffects();