tobzzz
asked on
Click a preview image for YouTube clip opens a new windowwith YouTube vid inside
Hi Experts,
I'm storing YouTube embed code that's been copied and pasted from the video I want on YouTube. I'm storing the embed code in a database. What I want is a page that can show a bunch of thumbnail preview images of the videos I have stored in the db that when clicked *won't* start the video but *will* simply open a new window in which the embedded code will be pulled from the database and the video will display full size to watch.
I know how to do the latter, but the former of showing a preview thumbnail from the embed code is what I'm stuck on. Can anyone tell me how I can do this? Is it possible?
Thanks
/ Tobzzz
I'm storing YouTube embed code that's been copied and pasted from the video I want on YouTube. I'm storing the embed code in a database. What I want is a page that can show a bunch of thumbnail preview images of the videos I have stored in the db that when clicked *won't* start the video but *will* simply open a new window in which the embedded code will be pulled from the database and the video will display full size to watch.
I know how to do the latter, but the former of showing a preview thumbnail from the embed code is what I'm stuck on. Can anyone tell me how I can do this? Is it possible?
Thanks
/ Tobzzz
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
There's also the default image
http://img.youtube.com/vi/7NZ9X9A2efA/default.jpg
For a larger image try
http://img.youtube.com/vi/7NZ9X9A2efA/0.jpg
http://img.youtube.com/vi/7NZ9X9A2efA/default.jpg
For a larger image try
http://img.youtube.com/vi/7NZ9X9A2efA/0.jpg
Also the below will provide higher resolution but they're not documented in Youtubes API so I can't guarantee their reliability but I think they should work
http://img.youtube.com/vi/7NZ9X9A2efA/hqdefault.jpg
http://img.youtube.com/vi/7NZ9X9A2efA/hq1.jpg
http://img.youtube.com/vi/7NZ9X9A2efA/hq2.jpg
http://img.youtube.com/vi/7NZ9X9A2efA/hq3.jpg
Now you've got all the tricks for Youtube thumbnails :)
http://img.youtube.com/vi/7NZ9X9A2efA/hqdefault.jpg
http://img.youtube.com/vi/7NZ9X9A2efA/hq1.jpg
http://img.youtube.com/vi/7NZ9X9A2efA/hq2.jpg
http://img.youtube.com/vi/7NZ9X9A2efA/hq3.jpg
Now you've got all the tricks for Youtube thumbnails :)
ASKER
Perfect, remorina. Thank you very much.
ASKER