I think this module is great. However, the problem is that when adding Vimeo videos through the Media Module, it requires you to use the Vimeo URL, which generates the video using the object code rather than the iframe (http://drupal.org/node/1174850#comment-5116676). As far as I can tell, this module won't work because of that. Maybe that's a Media Module issue but I was curious to know if there's an easy way around that. Or maybe I'm just doing it all wrong to begin with (ridiculously possible).

I guess the other workaround would be to just not use the Media Module for my Vimeo embeds but it would be nice to be able to do so. Please let me know if this would be better addressed in the Media Module issue queue.

Again, awesome module that I am really looking forward to using.

Thank you.

Comments

derekahmedzai’s picture

Try with the latest version of the fitvids script - it should work with <object> too.

dddave’s picture

Version: 7.x-1.3 » 7.x-1.x-dev
Status: Active » Closed (works as designed)

The main issue here is the crap that media and associated modules are adding. At the moment we are working to make media behave sane, starting with media_youtube. The results of this process (#1555276: Clean up theming function, Use recommended iframe player by default, without js) will spawn advise for all other modules in the "mediaverse". If you still have issues there is a good chance that this module cannot do anything and media_xxx is to blame.

eusonic’s picture

If you're still experiencing this problem, switch to the dev version of the media_vimeo module. It now uses the iframe code.

eusonic’s picture

I spoke too soon... There is another problem with the media_vimeo module. It adds width and height to the wrapper div via a style attribute. this prevents FitVids from working its magic. Simply remove the style tag from media_vimeo/includes/themes/media-vimeo-video.tpl.php

Changing it to this:

<div class="media-vimeo-outer-wrapper" id="media-vimeo-<?php print $id; ?>">
  <div class="media-vimeo-preview-wrapper" id="<?php print $wrapper_id; ?>">
    <?php print $output; ?>
  </div>
</div>

I posted an issue on that module here: http://drupal.org/node/1698300. I'm cross posting here just to let the FitVids users know how to resolve this.