Saving YouTube/Vimeo Embedded Videos as Thumbnails for MuraCMS

21 Apr 13 - Coldfusion, MuraCMS, Railo - Janusz Buda - 2 Comments

I have been working on site with MuraCMS that embedded a few hundred YouTube and Vimeo videos into the content. The requirement was to have a thumbnail listing of categorised videos in the content, enabling the user to click on the thumbnail to load the relevant video into the browser.

Using the YouTube and Vimeo API’s, I could load in the thumbnails on each request. However some of the pages could have had up to 50 video thumbnails to render. Calling the relevant video channel to load in the thumbnail had negative impact on the site loading times and affected the user experience.

I quickly knocked up a script, that could be hit via a url, to download and save these files into the site image directory.

2 Comments

  • Ronnie April 23, 2013 at 6:14 am

    Very cool! I’ve been working on a Mura Wiki site that this would make a good addition to…

  • Janusz Buda April 23, 2013 at 7:23 am

    Glad you like it and adding it to the Wiki would be great.

    I am looking at some improvements to this and want to modify it so that missing thumbnails can ‘self heal’ when they are requested to render. That way it would not be a requirement to run this script manually. But it was something i quickly created to make it easier to get the thumbs.

Leave a Comment