Maraton mediatico
Ver Video Corto × function playShort(videoId) { const modal = document.getElementById('miModalVideo'); const iframe = document.getElementById('videoPlayer'); // Usamos el formato embed normal, que también funciona para Shorts iframe.src = `https://www.youtube.com/embed/${videoId}?autoplay=1&rel=0`; modal.style.display = 'flex'; } function cerrarVideo() { const modal = document.getElementById('miModalVideo'); const iframe = document.getElementById('videoPlayer'); iframe.src = 'about:blank'; // Detiene el video modal.style.display = 'none'; }