As some may have noticed on the users forum>Media Server plugins I have released an NFL Videos Plugin.
I want to add a new section to the plugin that goes to a live stream of NFL network for those that subscribe to the feature. I have tried to look at the UK plugin for SKY tv subscribers but ultimately doing the site config for the login phase is just beyond me.
I’m hoping someone can help?
The url for the page that you need to authenticate with for the NFL Network stream is here.
I tried the following code, however I think it needs a complete overhawl
<?xml version="1.0" encoding="UTF-8"?><br />
<site site="http://network.nfl.com/*" plugin=".*\.swf" agent="Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12" initialState="wait-for-frame-load" version="1.0"><br />
<crop x="0" y="0" width="0" height="-2" /><br />
<br />
<br />
<state name="wait-for-frame-load"><br />
<event><br />
<condition><br />
<frameLoaded /><br />
</condition><br />
<action><br />
<goto state="check-for-auth" /><br />
</action><br />
</event><br />
</state><br />
<br />
<state name="check-for-auth"><br />
<event><br />
<condition><br />
<javascript script="true ? 1 : 0" matches="1" /><br />
</condition><br />
<action><br />
<run script="var post_url='https://network.nfl.com/nfln/secure/loginform';var post_data={username:'${username}',password:'${password}'};_auth.processLogin(post_url,post_data);" /><br />
<pause time="5000" /><br />
<visit url="http://network.nfl.com/nfln/console.jsp" /><br />
<goto state="playing" /><br />
</action><br />
</event><br />
</state><br />
<br />
<state name="playing"><br />
<event><br />
<condition><br />
<javascript script="true ? 1 : 0" matches="1" /><br />
</condition><br />
<action><br />
<!-- nothing to do --><br />
</action><br />
</event><br />
</state><br />
<br />
</site>