2009-03-02, 00:54
It still depends on client-side flash
jonm42 Wrote:With the above I can get something together over the weekend; I'll skip plot for now and just structure it so I (or some other lucky person) can fold it in based on the existing option. Thanks! This is a hoot.
angrycamel Wrote:I posted that very solution a while back. It's still sitting out on my site if you want o play with it.
http://forum.xbmc.org/showpost.php?p=286...tcount=576
CrashX Wrote:Any updates on getting it execute the swf file off the hulu web site instead of local ?
angrycamel Wrote:I don't know of any way to execute an ActionScript class server side.
xmlsoup = BeautifulStoneSoup(common.getHTML( common.args.url ))
content=common.getHTML(common.args.url)
rwparris2 Wrote:I've been kind of rolling the idea in my head of just launching an actual webbrowser, and simulating a 'click' on the 'fullscreen' button.
<!-- Compile ~/flex-3.2.0/bin/amxmlc HuluTV.mxml -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*"
applicationComplete="stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE">
<mx:Script><![CDATA[
import flash.events.Event;
import flash.events.MouseEvent;
private function onPageLoad(event:Event):void {
var player:Object = html.domWindow.document.getElementById('player');
trace(player.offsetTop)
trace(dispatchEvent(new MouseEvent(MouseEvent.CLICK, true, false, 828, 250)))
}
]]></mx:Script>
<mx:HTML id="html" width="100%" height="100%" complete="onPageLoad(event)" location="http://www.hulu.com/watch/58602/my-name-is-earl-my-name-is-alias"/>
</mx:Application>
<?xml version='1.0' encoding='utf-8'?>
<application xmlns="http://ns.adobe.com/air/application/1.5">
<id>com.rectalogic.HuluTV</id>
<filename>HuluTV</filename>
<initialWindow>
<content>HuluTV.swf</content>
<visible>true</visible>
<width>500</width>
<height>400</height>
</initialWindow>
</application>
rwparris2 Wrote:FYI, hulu has changed things around on us.
the smil is now located at
s.hulu.com/select.ashx?pid=KYjk7gOX2fR_iQU1S2P_70eEbUbaX9Or&auth=02a1e4c6b884642627b73ea495bd2448
the pid encryption is the same, but now there is an auth key that also needs to be grabbed. I haven't looked deeply into where this might be generated, but at a glance it isn't obvious.
#!/usr/bin/perl
#
use Digest::MD5 qw(md5_hex);
$pid=”@ARGV”;
$pid_suffix=’****************************************************************’;
$extended_pid=”$pid$pid_suffix”;
$auth=md5_hex($extended_pid);
print $auth;