Hah, I think I've got it. An example video page is:
http://ziln.co.nz/video/47
This has the following line in it:
Code:
flashvars.file = "/playlist/null/47";
Using this as a relative URL we can visit:
http://ziln.co.nz/playlist/null/47
When we view the source of this we can see that it's an RSS XML page:
[HTML]<rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/" xmlns:jwplayer="http://developer.longtailvideo.com/">
<channel>
<title>Fish N Hunt TV</title>
<item>
<title>Outdoors With Geoff 2005 Ep8</title>
<description>Geoff and 'The Reel Girls' as they jump on board two helicopters and head to Great Barrier Island.</description>
<jwplayer:image>/assets/images/videos/47-large.jpg</jwplayer:image>
<media:group>
<media:content bitrate="1800" url="/assets/videos/fishandhunttv/files/520p/2005ep08_768k.mp4" width="480"/> </media:group>
<jwplayer:provider>http</jwplayer:provider>
</item>
</channel>
</rss>[/HTML]
The interesting line in this is:
[HTML] <media:content bitrate="1800" url="/assets/videos/fishandhunttv/files/520p/2005ep08_768k.mp4" width="480"/>[/HTML]
Using that as a URL relative to the Ziln root gives us a full URL of:
http://ziln.co.nz/assets/videos/fishandh...8_768k.mp4
And that's the URL of our media file for streaming! Now all I need to do is finish off the plugin to grab the player page, get the RSS URL, grab the RSS page, pull the video URL out of it and play the URL. In fact, looking at it some more I spot that the video ID (47 in this case) is common to the player page and the RSS page, so I can probably skip having to grab the player page and just build the RSS URL directly, therefore speeding up time to playback.
I wonder if there are some base RSS feeds that I can grab to make the whole scraping quicker and easier. I'll just have a quick poke around the site...