I am using custom buttons to keep my design consistent. I have added a button which is layered on top of the iframe using the z-index property in CSS. Onclick the iframe reacts but does not begin to play. I have used this code on other websites and it worked fine.
This code works in Safari but not in Chrome. I am not sure if maybe I should try re-installing Chrome.
I have also added 1 other lines which I have tried (commented out). Can anyone suggest why this is not working on chrome?
$('#playLucid').click(function() {
$('#playLucid').css('display', 'none');
//$("#expose").attr('src','https://www.youtube.com/embed/7bU-x8pJbig?autoplay=1');
$("#expose")[0].src += "?autoplay=1";
});