Vimeo?
sam_squarewave - February 24, 2009 - 00:02
| Project: | Embedded Media Field |
| Version: | 6.x-1.x-dev |
| Component: | Providers |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
Anyone getting Vimeo working with Drupal 6? I'm getting - Sorry there was a problem loading this video.
I see this same result in the 'Provider analysis' post. I have api key and code.

#1
I see this - http://drupal.org/node/345515, will try.
#2
I'm using the latest dev version of the plugin on Drupal 6...and Vimeo video thumbnails still isn't appearing...any ideas?
#3
I see the provider no longer needs an api key, but still I have no luck with getting this to work.
#4
I am having no trouble with vimeo
#5
Are you using an API Key?
#6
no
#7
I'm also getting the "Sorry...there was a problem..." screen. This happens with or without an API key.
#8
Add me to the list. What I did notice is that the api seems to be working because if i put
http://vimeo.com/api/oembed.xml?url=http%3A//vimeo.com/with a video ID in it I still see the xml file with thumbnail_url Is it just the breakdown of the xml that's breaking...not sure I'm not too familiar with Viemo's api yet...
#9
function emvideo_vimeo_thumbnail($field, $item, $formatter, $node, $width, $height) {$url = "http://vimeo.com/api/clip/" . $item['value'] . "/php";
$contents = @file_get_contents($url);
$array = @unserialize(trim($contents));
return $array[0][user_thumbnail_large];
}
This is what i'm leaning too. If you use http://vimeo.com/api/clip/videoid/php it outputs it in php rather then xml....I would think less headaces what do you guys think?
#10
The issue is that the path that is being called is http://vimeo.com/api/oembed.xml?url=http://vimeo.com/moogaloop.swf?clip_... rather than http://vimeo.com/api/oembed.xml?url=http://vimeo.com/xxxxxxx so no xml is being returned I have a temporary fix but I thing is needs work hence I'm not going to submit a patch.
<?phpfunction emvideo_vimeo_thumbnail($field, $item, $formatter, $node, $width, $height) {
$movie_id = substr($item['value'], strpos($item['value'], '=') + 1);
$xml = emfield_request_xml('vimeo', 'http://vimeo.com/api/oembed.xml?url=http%3A//vimeo.com/'. $movie_id, array(), TRUE, FALSE, $movie_id);
return $xml['OEMBED']['THUMBNAIL_URL'][0];
}
?>
I'm guessing something needs to happen before thumbnail is called to pass in the correct embed value.
#11