From 891feaed5d1043bd3935158fe3300b059bdacfa3 Mon Sep 17 00:00:00 2001 From: alexspeaker Date: Wed, 28 Jan 2026 22:59:59 +0100 Subject: [PATCH] bugfix hls mobile --- data/changelog.xml | 7 +++++++ js/app.js | 8 ++++++++ 2 files changed, 15 insertions(+) diff --git a/data/changelog.xml b/data/changelog.xml index 460df6c..b9473d0 100644 --- a/data/changelog.xml +++ b/data/changelog.xml @@ -2,6 +2,13 @@ + + 2.1.2 (a) + + Correzione e bugfix di problematiche varie. + + + 2.1.2 diff --git a/js/app.js b/js/app.js index 45a9966..ffef677 100644 --- a/js/app.js +++ b/js/app.js @@ -413,10 +413,17 @@ document.addEventListener('DOMContentLoaded', function () { return true; } else if (audioPlayer.canPlayType('application/vnd.apple.mpegurl')) { console.log('HLS nativo supportato'); + + // Visual Debugging per Mobile + if (playerStatus) { + playerStatus.textContent = 'Caricamento HLS Nativo...'; + } + audioPlayer.src = streamHLS; audioPlayer.play().then(() => { console.log('Riproduzione HLS nativa avviata'); updatePlayState(true); + if (playerStatus) playerStatus.textContent += ' (Native)'; // Debug visivo }).catch(err => { console.error('Errore HLS nativo:', err); tryFallbackStream(); @@ -445,6 +452,7 @@ document.addEventListener('DOMContentLoaded', function () { audioPlayer.play().then(() => { console.log('Riproduzione stream diretto avviata'); updatePlayState(true); + if (playerStatus) playerStatus.textContent += ' (Fallback)'; // Debug visivo }).catch(err => { console.error('Errore stream diretto:', err); updatePlayState(false);