How to change thumbnail/poster image via URL parameter with YouTube?

11,609

I don't know of a way to do this (I have looked before), so my solution was essentially to display the thumbnail in a container, and adding/displaying the embed when the thumb/container is clicked. Something like

http://jsfiddle.net/brysmi/RnN7R/

I would mess around with just making the thumbnail into the player div background or something like that. Also, if you wanted bigger player/thumbs, you would have to look at the things you found already to figure out the urls for hq sized version of http://img.youtube.com/vi/sftuxbvGwiU/2.jpg ...

After that, good luck.

See also How do I get a YouTube video thumbnail from the YouTube API?, Youtube JSAPI, examples not working, YouTube iframe API: how do I control a iframe player that's already in the HTML?

And so on. Cheers.

Share:
11,609
jonathanbell
Author by

jonathanbell

Updated on June 04, 2022

Comments