I have a webpage that showcases images of YouTube videos, allowing users to choose from them. This is how I am presenting them:
<ul>
<li>
<div class="youtubeMediaContainer">
<img src="video_preview_image1.jpg">
<img src="play_icon.png">
</div>
</li>
<li>
<div class="youtubeMediaContainer">
<img src="video_preview_image2.jpg">
<img src="play_icon.png">
</div>
</li>
<ul>
Users can select these videos (by selecting I mean a large border appears on the container indicating it's selected) by clicking on the container (the image, except for the play icon area). They can also play the videos by clicking on the play icons. Once clicked, the content inside youtubeMediaContainer is swapped with the YouTube iframe where the video plays.
The issue arises after watching a video - how does the user then select that particular video? Is it possible to overlay something over the iframe for selection purposes? What would be the most effective approach to solve this?