bugfix hls mobile

This commit is contained in:
2026-01-28 22:59:59 +01:00
parent bb8d88f60a
commit 891feaed5d
2 changed files with 15 additions and 0 deletions

View File

@@ -2,6 +2,13 @@
<changelog>
<version>
<number>2.1.2 (a)</number>
<logs>
<log>Correzione e bugfix di problematiche varie.</log>
</logs>
</version>
<version>
<number>2.1.2</number>
<logs>

View File

@@ -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);