I noticed several people (including myself) having trouble getting thumbnails to load for vimeo videos set to private.

This is because the media_vimeo module uses the 'SIMPLE API' method to connect with vimeo, which according to vimeo--

"The Simple API is for public data only. If your videos are private, you will need to use the Advanced API. If your video is set to hide from vimeo.com, but is embeddable, you may also be able to use oEmbed."

On my current project the client is using vimeo as a hosting solution for members only content on their website. All their videos are private, embeddable only on their dot com.

I desperately needed a fix for launch date, so I began tweaking the "MediaVimeoStreamWrapper.inc" file to use the oEmbed method instead of the simple api and managed to find some code that worked for me -- showing thumbnails for PUBLIC and PRIVATE videos.

I attached the file!

If anyone else is experiencing this problem, please:

1. download the attached file
2. rename it to "MediaVimeoStreamWrapper.inc"
3. overwrite the matching file in media_vimeo/includes

If it works, please chime in on the possibility of commiting this switch to oEmbed over Simple API (pros and cons).

Comments

kreynen’s picture

Status: Active » Postponed (maintainer needs more info)

First, there is no attached file.

Second, please provide the changes as a patch.

http://drupal.org/node/707484

dsbrianwebster’s picture

Status: Active » Postponed (maintainer needs more info)
StatusFileSize
new1.47 KB

Sorry, not sure how I forgot to attach the file.

dsbrianwebster’s picture

StatusFileSize
new1.14 KB

Patch attached as requested!

dsbrianwebster’s picture

Status: Postponed (maintainer needs more info) » Active
kreynen’s picture

Status: Postponed (maintainer needs more info) » Active

@Delicious Simplicity

Thanks!

I'm not sure how much time @drewish or @aaron have these days, but I've been tuned out from media_ related work for a few months and I'm just starting to get back into it. This is as good a place as any to start.

steven.wichers’s picture

Here's a fixed up patch file. No code changes.

simon georges’s picture

Status: Active » Reviewed & tested by the community

The patch in #6 did the trick for us. Thank you!

dwkitchen’s picture

This patch did the job for me

dwkitchen’s picture

Version: 7.x-1.0-beta5 » 7.x-2.x-dev
chiebert’s picture

#6 Worked for us against 7.x-2.x-dev (Dec 1, 2012)

bc’s picture

succes with patch in #6 -- yay. this should be pulled into the 2.x branch. thanks!

joelpittet’s picture

Version: 7.x-2.x-dev » 7.x-2.0-rc1

#6 also worked for me against 7.x-2.0-rc1 (2013-Jul-23)

steinmb’s picture

Version: 7.x-2.0-rc1 » 7.x-2.x-dev

All patches is against latest dev.

joelpittet’s picture

Ah yeah sorry @steinmb, the reason I did that was that rc1's dates were ahead of -dev.

devin carlson’s picture

Issue summary: View changes
Status: Reviewed & tested by the community » Fixed

This was fixed as part of a general cleanup of the stream wrapper.

Status: Fixed » Closed (fixed)

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

cprofessionals’s picture

It seems that this fix was rolled into the latest dev release? I have tried patching, and just overwriting with the latest dev, and I cannot seem to get this to work. my thumbnail url is set to my sites domain. Any help would be appreciated. Video works fine, but when referenced as a thumbnail, I get nothing. Thanks in advance.