Hi,
Just trying to play around with one of the plugins which currently lacks navigation and add that in. The flash player it’s interacting with is one of those players where the controls and progress bar get show / hidden away completely depending on the mouse location: if it’s anywhere in the player’s window it shows, anywhere else it hides.
Obviously, the ideal scenario is to have the controls / progress bar hidden away when playing and having those show when needing to skip forward / backward so that Plex can correctly calculate the jump position. It’d be really nice if Plex would move the mouse over to where the scroll bar has been defined in the site config before executing the calculations but it doesn’t seem to do that, instead using whatever the current duration status is, which in the case where the controls are hidden, is complete rubbish.
So, as a workaround, my plan was to manually catch the navigation events (smallstep+, smallstep-, bigstep+, bigstep-) and manually move the mouse to a point where the controls would be shown so that the duration state could be correctly updated. However, it looks like these are not getting caught and passed to act on.
Here’s the relevant section from the site config:
[xml]
<state name="playing"><br />
<event><br />
<condition><br />
<command name="smallstep+" /><br />
</condition><br />
<action><br />
<run script="plexEMP.pauseVideo();" /><br />
<goto state="paused" /><br />
</action><br />
</event><br />
<event><br />
<condition><br />
<command name="pause" /><br />
</condition><br />
<action><br />
<run script="plexEMP.pauseVideo();" /><br />
<goto state="paused" /><br />
</action><br />
</event><br />
</state><br />
[/xml]
The pause command is getting caught / processed correctly. The smallstep+ not so much. From the logs…
<br />
Nov 07, 2011 02:42:07 [0xb0491000] DEBUG - LINE: PAUSE<br />
Nov 07, 2011 02:42:07 [0xb0491000] DEBUG - Executing Javascript(plexEMP.pauseVideo();)<br />
Nov 07, 2011 02:42:07 [0xb0491000] DEBUG - Executing Moving to state paused<br />
<br />
Nov 07, 2011 02:42:57 [0xb0923000] DEBUG - LINE: SMALLSTEP+<br />
Nov 07, 2011 02:42:57 [0xb0923000] DEBUG - Pixels played = 0, need to click on 32<br />
Nov 07, 2011 02:42:57 [0xb0923000] DEBUG - Clicking on dead point (600, 300)<br />
This is on Plex Media Server 0.9.3.4 and 0.9.5 running against either clients 0.9.3.4 and 0.9.5.
Any ideas, fixes, work arounds?
