I added a video shortly when I started the site and I wanted it to be in autoplay.
I know that if I put the page in html5 it would perform as well as I did the test. But as it is inside this box and using js, it does not start.
The script code in js that I'm using is this:
<script>
$(document).ready(function(){
$(".iframe").colorbox({iframe:true, width:"80%", height:"80%"});
$.colorbox({href:"comunicado.php"});
$('#video_player').prop('autoplay', true);
});
</script>
And in the video in html I have it like this:
<video width="99%" height="500" controls="controls" autoplay="autoplay">
<source id="video_player" src="comercial.mp4" type="video/mp4">
</video>
I have tried in several ways, but since I am not an expert I do not know what is happening. I would love your help!