Vimeo videos no longer fetch the thumbnail. It seems the http://vimeo.com/api/v2/video/ url is now defunct.

We can get the thumbnails via oembed. The example at https://developer.vimeo.com/apis/oembed works. Thumbnails are not returned, however, for private videos, so an we might want to provide defaults for that instance.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jazzdrive3 created an issue. See original summary.

jazzdrive3’s picture

Here is patch that fixes the main problem on the Vimeo provider. The second issue, where a thumbnail cannot be grabbed, should be a separate issue, since that deals with code one level up at ProviderPluginBase.php. I imagine we want to do something if there is an exception in ::downloadThumbnail(). Maybe provide our own icon image like the Media module does.

Sam152’s picture

Status: Needs review » Reviewed & tested by the community

Lets fix the API here and we can discuss the default image in a new issue. This looks good to me.

Sam152’s picture

Status: Reviewed & tested by the community » Fixed

  • Sam152 committed c27ed99 on 8.x-1.x authored by jazzdrive3
    Issue #2856476 by jazzdrive3: Vimeo API no longer available to get...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

bkosborne’s picture

Here's a follow up for being unable to retrieve the thumbnail: https://www.drupal.org/node/2858521

BarisW’s picture

Can this patch be reverted? The v2 api seems to work fine. The problem with the oEmbed is that thumbnails are very small.

BarisW’s picture

I wrote a patch as follow-up of this issue: #3061485: Revert issue 2856476 - Vimeo v2 API works fine