Código Javascript:
Ver original
<script> function revealVideo(div, video_id) { var video = document.getElementById(video_id).src; document.getElementById(video_id).src = video + '&autoplay=1'; // adding autoplay to the URL document.getElementById(div).style.display = 'block'; } function hideVideo(div, video_id) { var video = document.getElementById(video_id).src; var cleaned = video.replace('&autoplay=1', ''); document.getElementById(video_id).src = cleaned; document.getElementById(div).style.display = 'none'; } </script>