html - selecting iframes of youtube videos -
i have page displays images of youtube videos, , user can select videos out of them. displaying them this
<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>
the user can select these videos (by selecting mean big border appearing on container indicating selected) here clicking on container (the image, except area occupied play icon). users can play these videos clicking on play icons. when click, contents of youtubemediacontainer replaced youtube iframe videos play.
issue after video played, how user select video. can put overlay of sorts on iframe? best way this?
why not perhaps create separate player div inside entry? in manner of:
<ul> <li> <div class="youtubelistentry"> <img src="video_preview_image1.jpg"> <img src="play_icon.png"> <div id="youtubemediaplaceholder1"></div> </div> </li> <li> <div class="youtubelistentry"> <img src="video_preview_image2.jpg"> <img src="play_icon.png"> <div id="youtubemediaplaceholder2"></div> </div> </li> <ul>
this way, still retain original structure can have user select video.
Comments
Post a Comment