Kodi Community Forum
[RELEASE] Hulu (Video) Plugin for XBMC - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Video Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=154)
+---- Thread: [RELEASE] Hulu (Video) Plugin for XBMC (/showthread.php?tid=42041)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47


- jonm42 - 2009-02-22

Is there a reason you commented out name and pwd?


- wonslung - 2009-02-22

Can anyone confirm whether or not this works in boxee for linux


fancast script - lewis.donofrio - 2009-02-22

Outstanding - ateam wouldn't plan from hulu....nor airwolf....but from this its great!

--Thanks!


- wonslung - 2009-02-22

do i need to do anything special other than install gnash and change the path? i'm using ubuntu 8.04 and this doesn't seem to be working...i'm getting the listings but i can't play anything....if i need to do something else let me know


- mr.b - 2009-02-22

@rectalogic - thanks for the details for the macports build. This may be useless, but i built my gnash with --enable-allstatic and uploaded dump-gnash to drop.io in case anyone wants to test it on 10.5 before they go through the build process......

http://drop.io/dumpgnash8_4forOsX


- carlitozway - 2009-02-22

Would this work for windows? I've already downloaded gnash for windows but when I tried doing it, doesn't work. Just says Loading Directory and nothing happens after.


- d4rk - 2009-02-22

rectalogic Wrote:First check the xbmc logs for anything interesting.

Second, check if your gnash is able to decode a sample pid directly:

Nice work Smile
In your call to sec.swf, you might want to add this extra GET variable:

Code:
loadClip("http://www.hulu.com/sec.swf?cb=" + (new Date()).valueOf() )

It looks like different versions of sec.swf are being returned depending on the epoch.


- Dick-Perry - 2009-02-22

does the dirty plugin work on xbmc (xbox1 oder winxp) from outside of the usa at the moment? i installed the plugin but when i choose a movie or episode nothing happens


- hrcolb0 - 2009-02-22

does xbmc on windows with the new gnash hulu plugin give anyone else trouble? when listing directories for animated shows xbmc craps its pants and locks up, sort of. the window freezes, but the icons are still being added for the shows, it just takes a very long time according to the log. Andwhen it has all the icons, it still does not give me the window back.


- rectalogic - 2009-02-22

d4rk Wrote:It looks like different versions of sec.swf are being returned depending on the epoch.

I think that's just a browser cache-buster. gnash doesn't cache so we should always get the freshest sec.swf.


- rupert - 2009-02-22

rectalogic Wrote:First check the xbmc logs for anything interesting.

Second, check if your gnash is able to decode a sample pid directly:

Per the logs: Nothing screams to me "I'm the issue" . Seems to be rather chatty about ThumbsShaddow2.png for some reason, I've searched and this file doesn't exist on my machine... root cause or red haring?

http://pastebin.com/m52598676


Per the decoding: seems to work
Code:
pruper1@main:~$ gnash --render-mode 0 --once --verbose --param FlashVars=pid=dd4e9942974869f0cac12ab9ce815da9af6f8486a433a84bda842dae193457f9~16aa98d95559f7db192bb69972ffc6578e87c22f6bc8eafc8a4c76b924b9800f ~/.xbmc/plugins/video/Hulu/resources/lib/DecryptPid.swf
RcInitFile: couldn't open file: /usr/etc/gnashrc
RcInitFile: couldn't open file: /home/pruper1/.gnashrc
18914:3059837680] 09:18:25 SECURITY: Checking security of URL 'file:///home/pruper1/.xbmc/plugins/video/Hulu/resources/lib/DecryptPid.swf'
18914:3059837680] 09:18:25 SECURITY: Load of file /home/pruper1/.xbmc/plugins/video/Hulu/resources/lib/DecryptPid.swf granted (under local sandbox /home/pruper1/.xbmc/plugins/video/Hulu/resources/lib/)
18914:3059837680] 09:18:25 UNIMPLEMENTED: SWF9 is not fully supported, trying anyway but don't expect it to work
18914:3059837680] 09:18:25 SECURITY: Checking security of URL 'http://www.hulu.com/sec.swf'
18914:3059837680] 09:18:25 SECURITY: Load from host www.hulu.com granted (default)
18914:3059837680] 09:18:25 UNIMPLEMENTED: SWF9 is not fully supported, trying anyway but don't expect it to work
18914:3048209296] 09:18:25 UNIMPLEMENTED: FileAttributes tag in the SWF requests that network access is not granted to this movie (or application?) when loaded from the filesystem. Anyway Gnash won't care; use white/black listing in your .gnashrc instead
18914:3059837680] 09:18:26 UNIMPLEMENTED: System.security.allowDomain
18914:3059837680] 09:18:26 TRACE: hulupid=mr9JdoQ0hSohpA6czVzNb8sjtx5ZZW5_

What I get from gnash --version if it's helpfull

Code:
pruper1@main:~$ gnash --version
RcInitFile: couldn't open file: /usr/etc/gnashrc
RcInitFile: couldn't open file: /home/pruper1/.gnashrc
Gnash 0.8.4

Copyright (C) 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
Gnash comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of Gnash under the terms of the GNU General
Public License.  For more information, see the file named COPYING.

Build options 0.8.4
   Target:
   Renderer: agg - GUI: GTK - Media handler: gst
   Configured with: CFLAGS=-Wall -g -Werror-implicit-function-declaration -Os CXXFLAGS=-Wall -g -Werror-implicit-function-declaration -Os --host=i486-linux-gnu --build=i486-linux-gnu --prefix=/usr --mandir=/share/man --infodir=/share/info --enable-plugin --enable-gui=gtk --enable-cygnal --enable-gstreamer --enable-media=gst --enable-renderer=agg --with-npapi-plugindir=/lib/gnash --with-kde-pluginprefix= --enable-shared=yes --enable-sdk-install --without-swfdec-testsuite --disable-rpath --enable-lotsa-warnings --without-gcc-arch --without-ming
   CXXFLAGS: -Wall -g -Werror-implicit-function-declaration -Os -pthread -pthread     -W     -Wall     -Wcast-align     -Wcast-qual     -Wpointer-arith     -Wreturn-type     -Wnon-virtual-dtor     -Wunused
Built against gstreamer version: 0.10.21
Linked against gstreamer version: 0.10.21

-Rupert


- rectalogic - 2009-02-22

rupert Wrote:http://pastebin.com/m52598676

Everything is working and it's decrypting the pid and extracting the rtmp URL and connecting to it, but the FMS server is rejecting it with NetConnection.Connect.Rejected, [ AccessManager.Reject ] : Access denied!

What version of XBMC? It at least needs to have this patch incorporated:
http://trac.xbmc.org/ticket/5159


- rupert - 2009-02-22

rectalogic Wrote:Everything is working and it's decrypting the pid and extracting the rtmp URL and connecting to it, but the FMS server is rejecting it with NetConnection.Connect.Rejected, [ AccessManager.Reject ] : Access denied!

What version of XBMC? It at least needs to have this patch incorporated:
http://trac.xbmc.org/ticket/5159

AHA!

Yeah, likely my issue thanks for helping anyway (I suspected it was stupid user error). I'm running the 8.10 release, not any of the SVN builds since... The version listed is SVN:16164 (Nov 14 2008)... that ticket says it was added 16205...either I gotta man up & use a pre-release or just wait 2 months ;-)

Congrats on the updated plugin though, keep up the great work... Here's hoping Hulu wises up & stops fighting it's users.
-Rupert


- mr.b - 2009-02-22

Dick-Perry Wrote:does the dirty plugin work on xbmc (xbox1 oder winxp) from outside of the usa at the moment? i installed the plugin but when i choose a movie or episode nothing happens

not going to work outside the US


- mique - 2009-02-22

I have been following this thread for quite some time and now am a little lost! I use xbox1 with xbmc, latest svn. Can we xbox/xbmc users use a plugin to get HULU to work now, after all the hard work that has been done, I just can not find that answer. If we can is there a quick guide on where the plugin is and if we need anything else to get it to work?
Sorry if it is obvious and I missed it and thanks to all who help sort this out.
One last comment, I think HULU would not fight us if the adverts we not removed when viewing! that is how they make there money.