I have a mask over video like in the demo, and a button for play or pause.
the button works if i embed vimeo video like so:
<div class="video-wrapper"><button class="btn btn-play"><i class="fa fa-play"> <button class="btn btn-pause"><i class="fa fa-pause"><div class="mask">
<iframe id="player1" width="100%" height="100%" frameborder="0" allowfullscreen="" mozallowfullscreen="" webkitallowfullscreen="" src="//player.vimeo.com/video/163974817?autoplay=1&loop=1&title=0&byline=0&portrait=0&api=1&player_id=player1">
but not on youtube video :
<div class="video-wrapper"><button class="btn btn-play"><i class="fa fa-play"> <button class="btn btn-pause"><i class="fa fa-pause"><div class="mask">
<iframe id="player1" width="100%" height="100%" frameborder="0" allowfullscreen="" mozallowfullscreen="" webkitallowfullscreen="" src="https://www.youtube.com/embed/1rp_65VkU_k?autoplay=1&loop=1&title=0&byline=0&portrait=0&api=1&player_id=player1" >
when embedding youtube as above, the video is playing behind the mask, the button on top shows but cannot be clicked. the video just plays without stopping. same code for vimeo works just fine. I really need to use youtube though. please help.