Link to home
Start Free TrialLog in
Avatar of tobzzz
tobzzzFlag for Spain

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
ASKER CERTIFIED SOLUTION
Avatar of remorina
remorina
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of tobzzz

ASKER

Oh wow, that simple (when you know!) Great, thanks. I don't suppose there are bigger versions stored are there?
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 :)
Avatar of tobzzz

ASKER

Perfect, remorina. Thank you very much.