Adjusting comments into files.

This commit is contained in:
Johnnybegood90
2026-03-14 04:23:44 +01:00
parent 062954a780
commit 8dabd2d190
19 changed files with 69 additions and 73 deletions
+2 -3
View File
@@ -12,7 +12,7 @@ function openPip(channelName, programTitle) {
err.style.display = 'none';
pip.classList.add('visible');
// Détruire l'instance HLS précédente
// Tear down the previous HLS instance before opening another stream.
if (hlsInstance) { hlsInstance.destroy(); hlsInstance = null; }
video.src = '';
@@ -39,7 +39,7 @@ function openPip(channelName, programTitle) {
}
});
} else if (video.canPlayType('application/vnd.apple.mpegurl')) {
// Safari natif HLS
// Safari can play HLS natively without hls.js.
video.src = url;
video.addEventListener('loadedmetadata', () => video.play().catch(() => {}));
} else {
@@ -55,4 +55,3 @@ function closePip() {
if (hlsInstance) { hlsInstance.destroy(); hlsInstance = null; }
video.pause(); video.src = '';
}