Adding autoplay video attribute on click

Any ideas how to trigger html5 video to start playing by clicking custom “Play” button?

By default video set to display:none. On click it changes to display:block. Play button does opposite on click. If I have “autoplay” attribute for hidden video then clicking play button reveals video at random playback moment. Not to mention that my video has a sound.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.