Click the poster image the HTML5 video plays?

This is working for me Andrew.

In your html head add this small piece of js:

var video = document.getElementById('video');
video.addEventListener('click',function(){
    video.play();
},false);

Or, just add an onlick attribute directly to your html element:

<video src="https://stackoverflow.com/questions/5278262/your_video" width="250" height="50" poster="your_image" onclick="this.play();"/>

Leave a Comment