I looked through the current feature requests and didn't see one for Vimeo video support. If this isn't already in the works, and others want it, I'll try to provided a vimeo.inc for review.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Alex UA’s picture

This has been requested before (see http://drupal.org/node/160988 ). If you could tackle it, that would be amazing. Currently, the main focus areas are (aaron can correct me if I'm missing anything) on the embedded audio field, two GHOP related tasks (better views integration and more embedded audio providers), standardizing the output of the embedded video field module so that it is xhtml compliant, and troubleshooting various bugs reported here (such as multiplying fields, problems with embedded media sets, etc).

Want to give it a go?

robomalo’s picture

I just started working on it. I'll have something to look at soon.

robomalo’s picture

Title: Vimeo support » Vimeo support

Update: I have a working vimeo.inc with some cool options for embedding. I want to test it out some more, and maybe add a couple more features after returning to work early next week. I will submit it for review soon thereafter. Basically, don't work on this feature request :)

robomalo’s picture

FileSize
7.95 KB

Attached is a working vimeo.inc. You must remove the .txt extension and change the file to just vimeo.inc. Please review and provide feedback.

From http://example.com/admin/content/emfield you can administer the following:

  • Override Vimeo's default player color
  • Show/hide video author's portrait
  • Show/hide video title
  • Show/hide byline
  • Enable/disable full screen playback

This .inc does not utilize Vimeo's API which allows editing/uploading/etc. from your own site. It only allows for embedding video content into your site, which I thought was appropriate due to the project's name. Thanks for you guys' hard work and I hope this contribution helps!

radune’s picture

This is great!
Is there a way to add a thumb for the video file as well?

Thanks a LOT.

robomalo’s picture

I'll have to look at this some more when I get some free time. When I made this .inc I looked for a way to add thumbs, and the only thing I could find was here: http://vimeo.com/api/simple-api/; and here: http://www.vimeo.com/api/. This module requires the video URL or embed code to add to a node. To get thumbs for the videos from Vimeo, it seems you need a much more complicated URL or request. If anyone knows an easy way, I'll add it. This patch/submission still needs to get reviewed/added.

aaron’s picture

Status: Active » Needs review
aaron’s picture

Assigned: Unassigned » aaron
darrenmothersele’s picture

Anyone able to get thumbnail images working for Vimeo?

lupus78’s picture

I'm also interested

darrenmothersele’s picture

FileSize
10.02 KB

I've managed to get this working with thumbnails, and it uses the API - so you need to sign up to Vimeo and request an API key.

I've added three options to the settings page: API Key, API Shared Secret, and the size of thumbnail to request from Vimeo.

I've also added the implementation of hook video_cck_vimeo_thumbnail

Note - this uses SimpleXML to parse the API result, so it will only work on PHP 5

Alex UA’s picture

Status: Needs review » Needs work

Thanks for this! I think we'll have to try and figure out a way to make this compatible with PHP4 before we commit it to CVS though...

darrenmothersele’s picture

I think the answer will be using this API function instead of SimpleXML...

http://api.drupal.org/api/function/drupal_xml_parser_create/5

I'm just looking at aggregator.module as an example of how to use this, and will try and update vimeo.inc accordingly.

darrenmothersele’s picture

FileSize
10.05 KB

creating XML parsers seemed a bit overkill... how about just using regex?

version attached should be PHP4 compatible, replaced use of SimpleXML with preg_match

Alex UA’s picture

Status: Needs work » Needs review

I checked it out, and it worked as advertised. Lets try to get one more user to test and mark as RTBC. As soon as it's been tested once more I'll commit.

amariotti’s picture

Works perfectly! Thanks!

Alex UA’s picture

Status: Needs review » Reviewed & tested by the community

Marking as RTBC. I'll add this to the supported provider in the list later today...

wescoughlin’s picture

Insanely Awesome! Thanks for the contribution.

Alex UA’s picture

Status: Reviewed & tested by the community » Fixed

This has been committed. Thanks robomalo & darrenmUK!

robomalo’s picture

I'm glad we were able to contribute something that got committed! Thanks for the great set of modules!

iaminawe’s picture

Hi,

I am using the latest dev version of the Embedded media field plugin (updated today) and I have added the Vimeo patch from #14 into my providers folder and have renamed it to vimeo.inc

I can see the vimeo options in the Embedded Media field configuration page and I have made sure that the "allow content from vimeo" checkbox is checked. I have left the other settings at default and have provided the advanced api key that I received from Vimeo to get thumbnails working.

The problem is when I Add video content, the list of providers allowed does not show vimeo and when I paste in the url of the video from vimeo into the emfield it is not automatically recognised and nothing show up on the frontend.

Anyone have any ideas what could be causing this?

Thanks

Alex UA’s picture

Vimeo should have already been present in the latest dev version.

iaminawe’s picture

I have just downloaded the latest dev version at http://drupal.org/node/154638 , updated today and when I look in emfield>>contrib>>video cck>>providers there is no vimeo.inc file.

Am I missing something?

Thanks

iaminawe’s picture

anyone else encountering this?

robomalo’s picture

Yes, the include is missing.

iaminawe’s picture

anyone able to fix this... sorry but I have a site hanging in the balance without vimeo support

wescoughlin’s picture

Download the vimeo.inc from post #14

Alex UA’s picture

We had a small problem with our versions. This now should be found in the version linked to as "dev".

iaminawe’s picture

I still have the same issue reported in #21 above with the new dev version.

Basically the vimeo configuration shows up in the "Embedded Media Field Configuration" and I set the api and secret, make sure that the checkbox to use Vimeo as a content provider is checked and save the settings.

When I got to Create Content>>Video there is no sign of Vimeo in the "Following services are provided" list and when I paste in a vimeo address the node does not recognise or display the video.

I am using the latest dev of Emfield and an up to date Drupal 5.7

This problem is really frustrating and I would appreciate any help that anyone has to offer.

Thanks
Gregg

Alex UA’s picture

I cannot recreate this problem. I have the videos working on my site with thumbnails, and it works as expected.

What version of PHP are you using? I wonder if this still requires PHP5...

iaminawe’s picture

I am using PHP 5.25...

very strange... setup is fine in backend and still invisible on frontend...
let me keep poking around..

thanks for your help

darrenmothersele’s picture

I can't see why this would need PHP5 - it no longer uses SimpleXML to parse the result of the Vimeo API call. It uses regex that's also available in PHP4.

Alex UA’s picture

Yeah, I couldn't either. I just wanted to start canceling out variables.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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

designbysoil’s picture

I am getting the same problem as #29, did anybody figure it out?

iBrainiac’s picture

Version: 5.x-1.x-dev » 6.x-1.x-dev
Assigned: aaron » Unassigned
Category: feature » support
Status: Closed (fixed) » Active

How do install this please?

Alex UA’s picture

Version: 6.x-1.x-dev » 5.x-1.x-dev
Status: Active » Closed (fixed)

Please do not reopen this issue. Vimeo support is part of the 5.2 and 5.x-1.x-dev packages. If you want to know about the 6 version, which is not ready to be used, please refer to that issue.

ts230’s picture

Please make this work! I have a site( theocas.net ) that uses Drupal, WYSYWIG and Vimeo for the videos. It's a paint having to switch to HTML view just to put in the video...

Also, how do I use it in Drupal 6?