<script> document.getElementById('vid').play(); </script>
After autoplay put muted, the video will not have a sound, but it will autoplay
Just muted your video. Than add autoplay, Then it is going to work! :)