Saving YouTube/Vimeo Embedded Videos as Thumbnails for MuraCMS
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.