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
LVL 11
tobzzzAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

remorinaCommented:
One of the things I figured after so much pain.
Youtube has 3 auto generated thumbnails images for each video

For example if you're storing a youtube video link of:
http://www.youtube.com/watch?v=7NZ9X9A2efA

Then the auto generated thumbails for youtube would be
http://img.youtube.com/vi/7NZ9X9A2efA/1.jpg 
http://img.youtube.com/vi/7NZ9X9A2efA/2.jpg
http://img.youtube.com/vi/7NZ9X9A2efA/3.jpg


0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
tobzzzAuthor Commented:
Oh wow, that simple (when you know!) Great, thanks. I don't suppose there are bigger versions stored are there?
0
remorinaCommented:
0
remorinaCommented:
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 :)
0
tobzzzAuthor Commented:
Perfect, remorina. Thank you very much.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.