Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

View file
nameglobe.html
height150
View file
namesketchfab.html
height150
View file
namemyVideo.html
height150

 

Getting Youtube and Vimeo Images for your Thumbnails 

 

Youtube videos have several static images that represent it.

https://www.youtube.com/watch?v=KaOC9danxNo

By calling the video ID (KaOC9danxNo), you can grab various resolutions that are the representative of the video.

http://img.youtube.com/vi/KaOC9danxNo/maxresdefault.jpg

http://img.youtube.com/vi/KaOC9danxNo/0.jpg


For Vimeo it's a little bit trickier.

For this video https://vimeo.com/175266909


You can pull this xml document

https://vimeo.com/api/v2/video/175266909.xml

You can get the data returned as JSON as well.

https://vimeo.com/api/v2/video/175266909.json


Pulling the largest thumbnail from the XML 

<thumbnail_large>https://i.vimeocdn.com/video/582362777_640.webp</thumbnail_large>

https://i.vimeocdn.com/video/582362777_640.webp

Just changing the extension will load other formats.

https://i.vimeocdn.com/video/582362777_640.jpg

https://i.vimeocdn.com/video/582362777_640.png


 

Content by Label
showLabelsfalse
max5
spacesV72D
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel in ("external","youtube","url","vimeo","html") and type = "page" and space = "V72D"
labelshtml URL Youtube Vimeo external

...