I would like to show thumbnails for videos on load and on hover or touch I want to play the video inside the parent div of the image. On mouseout and video ends, the div should show the image automatically. How can I do it?

In simple, I need a homepage just like youtube page. I will show the images first and on hover it should play or pause respective videos.