18
I have a iframe
of Youtube, and a div
above it, I want when the user clicks on that div
He plays the video.
My HTML:
<div class="p-relative">
<div class="botaoMaior">
<div class="btplay"></div>
</div>
<div class="editable videoMaior" name="videoMaior">
<iframe width="960" height="780" src="//www.youtube.com/embed/eX0IjD5DPQI" frameborder="0" allowfullscreen=""></iframe>
</div>
</div>
I’d like something from the tupo:
$( ".botaoMaior" ).click(function() {
$( ".botaoTeste" ).click();
});
http://css-tricks.com/play-button-youtube-and-vimeo-api/
– Jorge B.
@Jorgeb. I don’t know if this is exactly what I need. It’s a bit complex this explanation.
– Felipe Viero Goulart