bugfix hls mobile
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user