Any good solution for youtube video in Lightbox?
for a long time now, Im searching for a GOOD way to play my videos in a lightbox.
Since now I used this code here:
<a class="uk-button uk-button-default" href="#modal-center1" uk-toggle>Anschauen</a>
<div id="modal-center1" class="uk-modal-container" uk-modal="center: true">
<button class="uk-modal-close-outside" type="button" uk-close></button>
<iframe width="1280" height="720" uk-responsive src="https://www.youtube.com/embed/inv-yhgcuW4?rel=0&controls=0&showinfo=0" frameborder="0" allowfullscreen></iframe>
Unfortunately the close button doesnt stop playing the video. First you have to stop, then close...
So i tried this one:
<a class="uk-button uk-button-default" href="//www.youtube.com/watch?v=YE7VzlLtp-4" caption="YouTube">YouTube</a>
Well, the video stops playing when closing the window, BUT: The player doesnt allow me to watch the video in fullscreen and the video is using autoplay. I couldnt find a way to enable fullscreen or disable autoplay...
And there is more! The Lightbox of some videos is really small. Is there a way to integrate height and width?
So what is everyone else using? Am I missing something?