MY Vimeo Not Worky

pribeh - July 9, 2008 - 17:11
Project:Embedded Media Field
Version:5.x-1.x-dev
Component:Embedded Video Field
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

Hey,

I know you've worked hard to get vimeo to work. Just wondering if you could check my site (first blog post) to see why vimeo keeps apologizing to me. I'm using the dev version because 1.2 didn't work at all - at least with the dev I see the vimeo apologies.

Thanks so much,

Thomas

#1

pribeh - July 11, 2008 - 17:03

Yo,

Been troubleshooting this and have tried 12 different Vimeo videos and get the same results. Everything seems to be working, I get a video ID (moogaloop.swf?clip_id=1230792), but I just can't get the actual video, just the vimeo screen. Do I need an api key to get this to work?

#2

a_c_m - July 11, 2008 - 18:29

we are using 1.2 and vimeo seems to work as expected? What video are you trying to look at?

http://www.vimeo.com/moogaloop.swf?clip_id=moogaloop.swf?clip_id=1230792 shows there is a problem with the video - do you have a link to it working on vimeo ?

#3

a_c_m - July 11, 2008 - 18:29
Status:active» postponed (maintainer needs more info)

#4

pribeh - July 12, 2008 - 16:08

That's really funny. I just noticed that no matter what vimeo video I embed the same video Id appears (moogaloop.swf?clip_id=1124192). Obviously I've tried creating new posts, not just editing the same one, but still no change. What does that mean?

I'm going to try the previous version again just for the heck of it.

Update. Rebuilding media data doesn't help. And tried reverting back to 1.2 with no luck.

#5

nickvu2 - July 30, 2008 - 00:09

I've been having the same problem 1.2. Any Vimeo video I try to embed shows up with the message, "Sorry: There was a problem loading this video." I'm pretty sure I'm not having the same video ID issue mentioned in #4. I previewed the node, got the above error message, and the ID in the embed code still matches the video I'm trying to post.

#6

TinyElvis - August 26, 2008 - 21:00

I found that if you copy the actual URL instead of the embed code it fixes this issue. The only problem now is getting the HD part of it since it is like a masked URL.

#7

russellb - December 12, 2008 - 17:22

I found that Vimeo wasn't working in emfield Embedded Video Field 5.x-1.3 - I was getting "Sorry: There was a problem loading this video."

I've rewritten function theme_video_cck_vimeo_flash in vimeo.inc to reflect the format that a normal Vimeo embed currently uses, and now it works. Here's my version of theme_video_cck_vimeo_flash:

line 138 vimeo.inc

/**
* the embedded flash displaying the Vimeo video
*/
function theme_video_cck_vimeo_flash($embed, $width, $height, $autoplay) {
  $output = '';
  if ($embed) {
  $fullscreen = variable_get('video_cck_vimeo_full_screen', 1);
  $on_screen_info = variable_get('video_cck_vimeo_on_screen_info', array('portrait', 'title', 'byline'));
  $show_portrait = $on_screen_info['portrait'] ? 1 : 0;
  $show_title = $on_screen_info['title'] ? 1 : 0;
  $show_byline = $on_screen_info['byline'] ? 1 : 0;
    if (variable_get('video_cck_vimeo_color_override', FALSE)) {
      $color = video_cck_vimeo_convert_color(variable_get('video_cck_vimeo_color', VIDEO_CCK_VIMEO_COLOR_DEFAULT));
    }
    $output = '<object width="'. $width .'" height="'. $height .'">';
    $output .= '<param name="allowfullscreen" value="'. ($fullscreen ? 'true' : 'false') .'" />';
    $output .= '<param name="allowscriptaccess" value="always" />';
    $output .= '<param name="movie" value="http://vimeo.com/'. $embed .'&amp;server=vimeo.com&amp;fullscreen='. $fullscreen .'&amp;show_title='. $show_title .'&amp;show_byline='. $show_byline .'&amp;show_portrait='. $show_portrait .'&amp;color='. $color .'" />';
    $output .= '<embed src="http://vimeo.com/'. $embed .'&amp;server=vimeo.com&amp;fullscreen='. $fullscreen .'&amp;show_title='. $show_title .'&amp;show_byline='. $show_byline .'&amp;show_portrait='. $show_portrait .'&amp;color='. $color .'" width="'. $width .'" height="'. $height .'">';
    $output .= '</embed></object>';
  }
  return $output;
}

Can anyone tell me if this reworking could interact badly with the SWF Object stuff? We're not using that. We can make a proper patch but I don't want to break the SWF Object functionality.

#8

russellb - December 12, 2008 - 17:21
Category:support request» bug report
Status:postponed (maintainer needs more info)» needs review

not actually a patch, we'll make one if people think this is a good mod.

#9

pribeh - December 12, 2008 - 17:41

THIS TOTALLY FIXED MY PROBLEM. WORKS EXCELLENT!

#10

pribeh - December 13, 2008 - 16:42

Full video toggling doesn't work but that's probably another issue since that happens with blip.tv and other video embeds.

#11

aaron - December 16, 2008 - 14:10

as a_c_m noted, http://www.vimeo.com/moogaloop.swf?clip_id=moogaloop.swf?clip_id=1230792 doesn't work anyway. looking for another vimeo post to test with. would be helpful if folks could post URL's they're trying to use (that actually work from the provider) for easier testing.

#12

aaron - December 16, 2008 - 14:14
Status:needs review» postponed (maintainer needs more info)

for instance, http://vimeo.com/1507417 works just fine, as a random example i'm finding, even without the "patch" pasted above.

#13

pribeh - December 17, 2008 - 16:13

Nothing worked for me before the patch. I've now tested 12 different vids and they've all worked.

For instance, this one now works after applying the patch: http://vimeo.com/1688441

#14

russellb - December 19, 2008 - 12:08

I've been looking into this more:

My 'patch' is dodgy - it includes moogaloop.swf?clip_id= in the ID - I presume it should be just the number.

I'm guessing that this was the source of the D5 vimeo failing - a change in Vimeo embed format that made the regex pull out more than just the ID:

(vimeo ID: moogaloop.swf?clip_id=2470967)

Sounds like you've got things sorted right for D6 aaron - I guess we need to backport your stuff:

http://drupal.org/node/345515

Note that my 'patch' doesn't make the thumbnails work, again, I presume the system is looking for just the number of the ID, not the megaloop stuff.

#15

SlipAngel - April 10, 2009 - 02:29

Patch gives me the following error:

warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'theme_emvideo_vimeo_flash' was given in /usr/local/4admin/apache/vhosts/site-url.com/httpdocs/includes/theme.inc on line 617.

Removing the patch, I have found that using the page url that the video exists on inside of Vimeo fixes this issue. Obviously a bug in there somewhere.

#16

cogapp_alx - October 9, 2009 - 16:31
Status:postponed (maintainer needs more info)» needs review

russelb said (correctly):

My 'patch' is dodgy - it includes moogaloop.swf?clip_id= in the ID - I presume it should be just the number.

I'm guessing that this was the source of the D5 vimeo failing - a change in Vimeo embed format that made the regex pull out more than just the ID:

(vimeo ID: moogaloop.swf?clip_id=2470967)

Vimeo now seems to be giving out URLs in the form http://vimeo.com/moogaloop.swf?clip_id=6912147 , and the regex is expecting the clip ID straight after the domain. It also fails when pasting in some video page URLs, e.g. http://vimeo.com/channels/hd#6912147 .

The attached patch for vimeo.inc with a revised regex should fix both these problems. All it does is change the pattern from '@vimeo\.com/([^\"\&]+)@i' to '@vimeo\.com/[^\"\&\d]*([^\"\&]+)@i', to allow for non-numeric characters preceding the video ID.

AttachmentSize
vimeo.inc_.patch 423 bytes

#17

pribeh - October 9, 2009 - 16:51

Thanks so much for this patch cogapp_alx. Would anyone be so gracious as to provide an updated 6.x version? All my sites are on 6 now. Patch fails for 6.x. Am I wrong and this is already in the 6.x version. I seem to be having problems with vimeo embeds as of recently.

#18

aaron - October 20, 2009 - 18:22
Status:needs review» fixed

ok, got this fixed in both versions now. thanks for the patch!

#19

System Message - November 3, 2009 - 18:30
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.