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).
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | media_vimeo-base-oembed-support-1587686.patch | 1.33 KB | steven.wichers |
| #3 | MediaVimeoStreamWrapper.patch | 1.14 KB | dsbrianwebster |
| #2 | MediaVimeoStreamWrapper.inc_.txt | 1.47 KB | dsbrianwebster |
Comments
Comment #1
kreynen commentedFirst, there is no attached file.
Second, please provide the changes as a patch.
http://drupal.org/node/707484
Comment #2
dsbrianwebster commentedSorry, not sure how I forgot to attach the file.
Comment #3
dsbrianwebster commentedPatch attached as requested!
Comment #4
dsbrianwebster commentedComment #5
kreynen commented@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.
Comment #6
steven.wichers commentedHere's a fixed up patch file. No code changes.
Comment #7
simon georges commentedThe patch in #6 did the trick for us. Thank you!
Comment #8
dwkitchen commentedThis patch did the job for me
Comment #9
dwkitchen commentedComment #10
chiebert commented#6 Worked for us against 7.x-2.x-dev (Dec 1, 2012)
Comment #11
bc commentedsucces with patch in #6 -- yay. this should be pulled into the 2.x branch. thanks!
Comment #12
joelpittet#6 also worked for me against 7.x-2.0-rc1 (2013-Jul-23)
Comment #13
steinmb commentedAll patches is against latest dev.
Comment #14
joelpittetAh yeah sorry @steinmb, the reason I did that was that rc1's dates were ahead of -dev.
Comment #15
devin carlson commentedThis was fixed as part of a general cleanup of the stream wrapper.
Comment #17
cprofessionals commentedIt 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.