Via URL
The Youtube has a specific URL to collect thumbnails of the videos:
http://img.youtube.com/vi/VIDEO_ID/#.jpg
The #
can be 0, 1, 2 or 3 corresponding to thumbnails that Youtube generates for video:
Via number:
0 = 480×360 pixeis (Tamanho normal)
1 = 120×90 pixeis (captura 01)
2 = 120×90 pixeis (captura 02)
3 = 120×90 pixeis (captura 03)
Via Qualidade:
default = 120x90 pixeis (normal)
mqdefault = 320x180 pixels (qualidade média)
hqdefault = 480x360 pixels (qualidade elevada)
For HD videos we also have:
sddefault = 640x480 pixels (normal)
maxresdefault = 1920x1080 pixels (máxima resolução)
The use is simple:
http://img.youtube.com/vi/wDP2Q11Dc5k/1.jpg
or
http://img.youtube.com/vi/wDP2Q11Dc5k/default.jpg
Through the API v2.0
The use of the API is highly recommended because the collection of thumbnails from the URL is not documented making it unviable.
Example to use the API to collect it thumbnail above presented:
$.getJSON("http://gdata.youtube.com/feeds/api/videos/wDP2Q11Dc5k?v=2&alt=jsonc", function(json){
$("<img/>").attr("src", json.data.thumbnail.sqDefault).appendTo("body");
});
Much other information is provided with the use of the API:
And is the load dynamic? If you want any alternative it would be better to detail the question more
– brasofilo
@brasofilo the user will include the videos through a proper content manager developed where work, ie the loading is dynamic.
– Felipe Viero Goulart