Active
Project:
Media: Hulu
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Jun 2009 at 17:29 UTC
Updated:
13 Jun 2011 at 04:45 UTC
Jump to comment: Most recent file
I enabled the module, enabled Hulu on the settings for embedded field, and enabled Hulu for my video content type. I tested it by trying to embed the video located here: http://laist.com/2009/06/09/conan_shows_the_world_the_lovely_la.php
The embed code is <object width="512" height="296"><param name="movie" value="http://www.hulu.com/embed/-K4ksWWUlMLHMVdDYakdNg"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.hulu.com/embed/-K4ksWWUlMLHMVdDYakdNg" type="application/x-shockwave-flash" allowFullScreen="true" width="512" height="296"></embed></object>
I got the error "You have specified an invalid media URL or embed code."
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | media_hulu.493342.patch | 3.69 KB | jhedstrom |
| #3 | media_hulu.493342.patch | 4.75 KB | jhedstrom |
Comments
Comment #1
mcfilms commentedI have precisely the same issue. Were you able to resolve this?
EDIT: I notice if I use the link for the media itself and NOT the embed code it seems to work. However -- I couldnot just copy the URL from the embed code. I had to go back to Hulu, search for the file and copy THAT url. Hope this helps someone.
Comment #2
jhedstromThe problem here is that this function:
is referring to the 'data' parameter in the $item variable. Unfortunately, emfield passes this on as serialized data, so the $item['data']['embed'] comes up empty. The fix is to simply pass on the alread-parsed $embed variable that emfield uses. I'll upload a patch when I have this working.
Comment #3
jhedstromThe attached patch gets te embed code working for me.
Comment #4
jhedstromOops. That was the wrong patch. Here's the correct one.
Comment #5
aaron commentedthanks, @jhedstrom. committed it; i forgot to subscribe to this queue... :P
Comment #7
prabhakarsun commentedSame error with latest dev version...
If I provide URL instead of embed code, I get this error;
The embed code used:
<object width="512" height="288"><param name="movie" value="http://www.hulu.com/embed/cqmgWZjsa5aGBMudUF3Xmg"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.hulu.com/embed/cqmgWZjsa5aGBMudUF3Xmg" type="application/x-shockwave-flash" width="512" height="288" allowFullScreen="true"></embed></object>Comment #8
gilgabar commentedI was able to resolve the unserialize warnings and get it to work by changing the appropriate part of emvideo_hulu_video() from this:
to this:
I was also getting some pass by reference warnings for that function due to the $node argument being passed by reference. Removing the ampersand fixed that.
Both of those issues appear to apply to emvideo_hulu_preview() as well.
And to address the original issue in this thread, about embed codes not working, it appears that that functionality isn't implemented. It could be my lack of familiarity with the way embedded media module works, but I only see this module providing the ability to parse URLs of the type:
http://www.hulu.com/watch/1404/saturday-night-live-snl-digital-short-nat....
It does not appear to parse an URL with an embed string like:
http://www.hulu.com/embed/drrxkjt0Rt8ihzwx-70Lew
Nor a full embed snippet like:
Comment #9
sgdev commentedI can confirm that I was able to get the module to work by implementing the change in #8 to both the emvideo_hulu__video() and emvideo_hulu__preview() functions. Make sure to use the 6.x-1.x-dev version of the module.