Vimeo support

robomalo - January 11, 2008 - 19:34
Project:Embedded Media Field
Version:5.x-1.x-dev
Component:Embedded Video Field
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

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.

#1

Alex UA - January 11, 2008 - 19:40

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?

#2

robomalo - January 11, 2008 - 20:45

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

#3

robomalo - January 12, 2008 - 00:01
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 :)

#4

robomalo - January 14, 2008 - 17:10

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!

AttachmentSize
vimeo.inc_.txt 7.95 KB

#5

radune - February 6, 2008 - 20:00

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

Thanks a LOT.

#6

robomalo - February 14, 2008 - 18:47

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.

#7

aaron - February 15, 2008 - 18:13
Status:active» needs review

#8

aaron - February 15, 2008 - 18:16
Assigned to:Anonymous» aaron

#9

darrenmUK - April 10, 2008 - 21:48

Anyone able to get thumbnail images working for Vimeo?

#10

lupus78 - April 11, 2008 - 17:11

I'm also interested

#11

darrenmUK - April 13, 2008 - 08:16

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

AttachmentSize
vimeo.inc_.txt 10.02 KB

#12

Alex UA - April 13, 2008 - 13:27
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...

#13

darrenmUK - April 13, 2008 - 14:45

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.

#14

darrenmUK - April 13, 2008 - 15:13

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

AttachmentSize
vimeo.inc_.txt 10.05 KB

#15

Alex UA - April 13, 2008 - 15:35
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.

#16

amariotti - April 23, 2008 - 17:36

Works perfectly! Thanks!

#17

Alex UA - April 23, 2008 - 17:37
Status:needs review» reviewed & tested by the community

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

#18

WesCoughlin - April 23, 2008 - 19:56

Insanely Awesome! Thanks for the contribution.

#19

Alex UA - April 26, 2008 - 19:06
Status:reviewed & tested by the community» fixed

This has been committed. Thanks robomalo & darrenmUK!

#20

robomalo - April 27, 2008 - 22:24

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

#21

iaminawe - May 1, 2008 - 09:25

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

#22

Alex UA - May 1, 2008 - 19:33

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

#23

iaminawe - May 3, 2008 - 16:49

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

#24

iaminawe - May 6, 2008 - 16:18

anyone else encountering this?

#25

robomalo - May 6, 2008 - 17:22

Yes, the include is missing.

#26

iaminawe - May 8, 2008 - 10:57

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

#27

WesCoughlin - May 9, 2008 - 05:08

Download the vimeo.inc from post #14

#28

Alex UA - May 11, 2008 - 03:49

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

#29

iaminawe - May 13, 2008 - 08:10

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

#30

Alex UA - May 13, 2008 - 13:30

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...

#31

iaminawe - May 14, 2008 - 11:57

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

#32

darrenmUK - May 14, 2008 - 16:13

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.

#33

Alex UA - May 14, 2008 - 18:21

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

#34

Anonymous (not verified) - May 28, 2008 - 18:21
Status:fixed» closed

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

#35

designbysoil - June 12, 2008 - 03:18

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

#36

iBrainiac - June 15, 2008 - 14:18
Version:5.x-1.x-dev» 6.x-1.x-dev
Category:feature request» support request
Assigned to:aaron» Anonymous
Status:closed» active

How do install this please?

#37

Alex UA - June 15, 2008 - 14:22
Version:6.x-1.x-dev» 5.x-1.x-dev
Status:active» closed

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.

 
 

Drupal is a registered trademark of Dries Buytaert.