autoplay will only work if you specify it as muted by default, like this.
<video autoplay muted>
<source src="https://stackoverflow.com/questions/50607588/video.mp4" type="video/mp4"></source>
</video>
Don’t worry, users will be able to unmute the video as part of the html5 video element.