bugfix hls mobile
This commit is contained in:
@@ -2,6 +2,13 @@
|
|||||||
|
|
||||||
<changelog>
|
<changelog>
|
||||||
|
|
||||||
|
<version>
|
||||||
|
<number>2.1.2 (a)</number>
|
||||||
|
<logs>
|
||||||
|
<log>Correzione e bugfix di problematiche varie.</log>
|
||||||
|
</logs>
|
||||||
|
</version>
|
||||||
|
|
||||||
<version>
|
<version>
|
||||||
<number>2.1.2</number>
|
<number>2.1.2</number>
|
||||||
<logs>
|
<logs>
|
||||||
|
|||||||
@@ -413,10 +413,17 @@ document.addEventListener('DOMContentLoaded', function () {
|
|||||||
return true;
|
return true;
|
||||||
} else if (audioPlayer.canPlayType('application/vnd.apple.mpegurl')) {
|
} else if (audioPlayer.canPlayType('application/vnd.apple.mpegurl')) {
|
||||||
console.log('HLS nativo supportato');
|
console.log('HLS nativo supportato');
|
||||||
|
|
||||||
|
// Visual Debugging per Mobile
|
||||||
|
if (playerStatus) {
|
||||||
|
playerStatus.textContent = 'Caricamento HLS Nativo...';
|
||||||
|
}
|
||||||
|
|
||||||
audioPlayer.src = streamHLS;
|
audioPlayer.src = streamHLS;
|
||||||
audioPlayer.play().then(() => {
|
audioPlayer.play().then(() => {
|
||||||
console.log('Riproduzione HLS nativa avviata');
|
console.log('Riproduzione HLS nativa avviata');
|
||||||
updatePlayState(true);
|
updatePlayState(true);
|
||||||
|
if (playerStatus) playerStatus.textContent += ' (Native)'; // Debug visivo
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
console.error('Errore HLS nativo:', err);
|
console.error('Errore HLS nativo:', err);
|
||||||
tryFallbackStream();
|
tryFallbackStream();
|
||||||
@@ -445,6 +452,7 @@ document.addEventListener('DOMContentLoaded', function () {
|
|||||||
audioPlayer.play().then(() => {
|
audioPlayer.play().then(() => {
|
||||||
console.log('Riproduzione stream diretto avviata');
|
console.log('Riproduzione stream diretto avviata');
|
||||||
updatePlayState(true);
|
updatePlayState(true);
|
||||||
|
if (playerStatus) playerStatus.textContent += ' (Fallback)'; // Debug visivo
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
console.error('Errore stream diretto:', err);
|
console.error('Errore stream diretto:', err);
|
||||||
updatePlayState(false);
|
updatePlayState(false);
|
||||||
|
|||||||
Reference in New Issue
Block a user