Best way to see Youtube video on a modal windows
Hi. What's the best way to see youtube videos on a modal windows with close bottom?
thanks
you mean full screen for video?
add following in your page which contain video.
<script type="text/javascript">
var vid;
function init() {
vid = document.getElementById("myVideo");
vid.addEventListener("loadedmetadata", addFullscreenButton, false);
}
function addFullscreenButton(){
goFullscreen();
}
function goFullscreen() {
vid.webkitEnterFullscreen();
}
</script>
load it in body tag, like <body onload="init();">
and add id="myVideo" to your video.
That's all.
Hi. How to call the video?
in this case, just tap on the video, it will bring the video to full screen and than play. that's all.
I am assuming this is solved :)
@zenz do you know to re-use that code in order to display 3 videos in fullscreen?
Hello!
Baker has moved! You can find the new issue board here: https://github.com/BakerFramework/baker/issues
Please post there on a new issue to ask for support. :)