Well, I've had a little look into this and have managed to get the RTMPE streams for TV3 content. Here's what I have so far:
The page
http://ondemand.tv3.co.nz/tabid/56/default.aspx has links to categories that can be grabbed as separate pages for content links. So, for example, we can see for the "most watched" videos:
[HTML]<li class="item" ><a href="/default404.aspx?tabid=61" title="Most Watched" rel="nofollow">Most Watched</a></li>[/HTML]
If we now grab the page
http://ondemand.tv3.co.nz/default404.aspx?tabid=61 we can see links to each of our available programs, for example for NCIS:
[HTML]<h4><a href="http://ondemand.tv3.co.nz/Season-7-Ep-10/tabid/59/articleID/1075/MCat/118/Default.aspx">NCIS</a></h4>[/HTML]
There's more info about each program in the block of HTML that can be grabbed, such as the season and episode number, episode title, episode description, runtime, etc. What we're after, though, unfortunately isn't in this page. We need to get the linked page above,
http://ondemand.tv3.co.nz/Season-7-Ep-10...fault.aspx, to find our program ID in some JS:
Code:
var video ="/*transfer*07092010*HW026232";
We need the date and program ID from this line to grab our RTMPE stream. We also need to link to the SWF for client verification, and that's also in this page at:
Code:
var fo = new FlashObject("http://static.mediaworks.co.nz/video/3.1/videoPlayer3.1.swf?rnd="+random_num+"", "flashPlayerSwf", "640", "390", "10", "#000000");
One last bit of useful information is that we have streams available in 330K and 700K. I've already run a video in Chrome and dumped the memory, then gone through it with a hex editor to find the RTMPE URL format, so with this info we can now build our URL:
Code:
rtmpe://nzcontent.mediaworks.co.nz/tv3/_definst_/mp4:/transfer/07092010/HW026232_700K
From this we can create our command line for rtmpdump:
Code:
rtmpdump -r "rtmpe://nzcontent.mediaworks.co.nz/tv3/_definst_/mp4:/transfer/07092010/HW026232_700K" -W "http://static.mediaworks.co.nz/video/3.1/videoPlayer3.1.swf" -o HW026232_700.flv -V
Now the tricky part is creating an XBMC plugin with this info. I guess if nobody else writes it in the next few days, I may have to look into doing it myself!