I'd like to play my iframe video with my #play
custom button. I've put the iframe in a bootstrap responsive embed div. Am I looking at the right contents in the iframe?
JS:
$(document).ready(function ($) {
$('#play').click(function () { //custom button id
$('iframe').contents().find('#wistia_video').get(0).play();
$('.row.grey, .row.header').hide(); //hides elements over htevideo
});
});
HTML:
<div class="embed-responsive embed-responsive-4by3">
<iframe src="//fast.wistia.net/embed/iframe/b4nym2w6dx" allowtransparency="true"
frameborder="0" scrolling="no" class="wistia_embed" name="wistia_embed"
allowfullscreen mozallowfullscreen webkitallowfullscreen oallowfullscreen
msallowfullscreen width="595" height="253"></iframe>
</div>
Iframe iports it's classes and ids dynamically, so I cannot post it here.