<iframe width="560" height="315" src="https://www.youtube.com/embed/4fY9kOpACI8" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
<script>
document.addEventListener("DOMContentLoaded", function(event) {
setTimeout(function() {
var iframe = document.querySelector('iframe');
iframe.src = iframe.src + '?autoplay=1';
}, 2000);
});
</script>