I have got some simple debugging output from the Media Server.
<br />
Request: GET /video/:/webkit?url=http%3A%2F%2Fwww.itv.com%2Fitvplayer%2Fvideo%2F%3FFilter%3D114178&prefix=/video/itv-player<br />
<br />
* url => http://www.itv.com/itvplayer/video/?Filter=114178<br />
<br />
* prefix => /video/itv-player<br />
<br />
WebKit: [itv.com/itvplayer/video/?Filter=114178]<br />
Found corresponding plug-in: /Users/cjd/Library/Application Support/Plex Media Server/Plug-in Support/Data/com.plexapp.plugins.itv-player<br />
Resetting to state playing<br />
Using /Users/cjd/Library/Application Support/Plex Media Server/Plug-ins/ITV Player.bundle/Contents/Site Configurations/itv__clips.xml with score of 35.<br />
LINE: HELLO<br />
Received title [Video - ITV Player].<br />
Debugger() was called!<br />
0x168a7c40 Plugin loaded [itv.com/mercury/Mercury_VideoPlayer.swf?v=1.1.150] (195 188 615 346 Mercury_VideoPlayervideoplayer)<br />
0x168c05f0 Plugin loaded [itv.com/mercury/MercuryAutoResume.swf?v=1.1.150] (0 0 1 1 MercuryAutoResume)<br />
0x168c05f0 New frame size: 1.000000 x 1.000000<br />
0x168a7c40 New frame size: 615.000000 x 346.000000<br />
Frame was loaded.<br />
I see no further output from the media center and the Plex window says "Opening Stream" (I am using Aeon)
Finally below is the Site Config I am using. I have copied the one from 4od and changed just the urls. (I intended to get that much working and then go on to states and sidebars.
Is there only one Flash object on the page? The only time I’ve observed behaviour like that is when more than one Flash object gets matched by the regular expression, in which case it’s pretty random as to which one the WebKit player will lock on to. The site configuration Jonny posted uses a wildcard, so any Flash object loaded from the /mercury directory would be matched.
Looks like two swf files are being recognised, second one of size 1x1. Change the plugin param to match the first not the second may work?
For the second issue, it could just be the same thing but could there also be a caching issue perhaps? By default, Plex will cache the html page you are using and if the flash player embedded in that page has some sort of time stamp in it it may not play the second time. This is all a guess mind but easy to check, just set cacheTime=0 when you load the page.
Setting cacheTime only affects HTTP requests made by the plug-in framework (within your Python code). When you want to load a page for the purpose of playing media, it's all handled by WebKit. It could still be related to caching, but there isn't anything you can do in the plug-in code to control how WebKit behaves.
I wasn’t clear. I was more thinking the html may have a media stream url that somehow has a time dependent parameter embedded in it. So the url is valid first time but not later. Reloading the html on subsequent plays would regenerate a valid url. Again, all hypothetical.
Hi did anyone get any further with the ITV Plex plugin, I am at a similar point developing my ITV plugin, I just need to complete the xml config, I am trying to see if I can hook into the javascript to control the flash plugin. Thought I would check nobody has already done this?