Extrema TV Costa Rica
- 5 comentarios
- 5483
Disfrute nuestra programación

<!DOCTYPE html>
<html lang=»es»>
<head>
<meta charset=»UTF-8″>
<title>Extrema TV en Vivo</title>
<script src=»https://cdn.jsdelivr.net/npm/hls.js@latest»></script>
<style>
body {
background-color: #000;
margin: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
video {
width: 90%;
max-width: 960px;
border: 4px solid #ffcc00;
border-radius: 12px;
}
</style>
</head>
<body>
<video id=»video» controls autoplay></video>
<script>
const video = document.getElementById(‘video’);
const streamUrl = ‘https://627bb251f23c7.streamlock.net:444/ExtremaTV/ExtremaTV/playlist.m3u8’;
if (Hls.isSupported()) {
const hls = new Hls();
hls.loadSource(streamUrl);
hls.attachMedia(video);
hls.on(Hls.Events.MANIFEST_PARSED, function () {
video.play();
});
hls.on(Hls.Events.ERROR, function (event, data) {
console.error(‘❌ HLS.js Error:’, data);
alert(«⚠️ No se pudo cargar el stream. Puede que esté apagado o el servidor no permita acceso.»);
});
} else if (video.canPlayType(‘application/vnd.apple.mpegurl’)) {
video.src = streamUrl;
video.addEventListener(‘loadedmetadata’, function () {
video.play();
});
} else {
alert(«Tu navegador no soporta streaming HLS.»);
}
</script>
</body>
</html>


