I recently experienced that vimeo thumbnails were not created correctly, but used the default vimeo thumbnail Vimeo default Thumbnail

I use the thumbnails rather than the video player in a video gallery.

It turned out that one has to use the new Vimeo URL with https:// to get the thumbnail again. I am not sure when Vimeo changed to https:// completely, but the bug appeared only recently. The thumbnails that are saved in files/video_embed_field_thumbnails/vimeo do not help, because each time one re-saves the video, the thumbnail is pulled fresh from vimeo.

Now I have to update all Video embed fields to the new URL pattern.
This is not an option for people who have a lot of videos and do not know how to do it with a script.

So maybe there can be found a solution to pull the thumbnails without changing existing URLs.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

eigentor created an issue. See original summary.

eigentor’s picture

Issue summary: View changes
eigentor’s picture

Updated Issue description.

blasthaus’s picture

How did you come to this conclusion? Can you provide a link?
The data returned from vimeo for the thumbnail url is still showing http://i.vimeocdn.com/video/blah.jpg, not https://...

blasthaus’s picture

Status: Active » Needs review
FileSize
3.33 KB

Circling back here after some research. The Vimeo API endpoint has indeed changed to https and the module needs updating. This is not to say that the thumbnail data will always be returned as an https url.

The patch attached covers all possible cases of using 'http' when constructing a url and uses https if it's vimeo. This is the way forward I hope.

ryanbriscall’s picture

More websites are going secure now, and Google Chrome will soon start "name and shaming" websites that are not https.

Our website is using https, but it fails because this module is not using https when querying the vimeo api.

We have a page with a vimeo video on it, but the thumbnail is using an http scheme.

I fixed this problem by hacking the video_embed_field.handlers.inc file,
changing "http://vimeo.com/api/oembed"
to "https://vimeo.com/api/oembed"

This is not a complete fix though until you clear out the saved video data from the database.

For example, my node id of 20252 can be found in the field_data_field_add_video database table as a field called entity_id.

I had to query an UPDATE to the field_data_field_add_video table to SET the field_add_video_video_data field to = NULL WHERE entity_id = 20252;

Then I went to my website /node/20252/edit and re-saved it, to generate the new video data with the newly fixed https scheme thumbnail URL.

joelstein’s picture

Title: Vimeo URL needs 'https://' to generate thumbnail » Switch to https for Vimeo oEmbed thumbnails
FileSize
587 bytes

If you request the oEmbed thumbnails via "http" (which is what this module does at the time of this writing), then you get back a "http" thumbnail URL.

Here's a patch that switches this to "https" so that we get back a "https" thumbnail URL.

joelstein’s picture

I created an issue to use the Vimeo API (rather than oEmbed) which would resolve this issue as well.

#3105171: Use Vimeo API to get thumbnails