Mouseevents and debugging

Hi,



I have this silverlight player i want to handle with mouseclicks in my site config. The player plays just fine, and i can see all of the silverlight element in Plex. And I am positive the on x=55 and y=595 there is a Play/Pause button.



The log says



LINE: PAUSE<br />
Executing Mouse click<br />
Mouse click at 55, 595<br />
Executing Moving to state paused<br />
sendPluginMouseDown: point (55,595) mapped to (55.000000,125.000000)<br />
mouseDown:<br />
Mouse down event 55, 595<br />
mouseUp:<br />
Mouse up event 55, 595<br />




and my site config


<state name="playing"><br />
        <event><br />
            <condition><br />
                <command name="pause" /><br />
            </condition><br />
            <action><br />
                <click x="55" y="595" /><br />
                <goto state="paused" /><br />
            </action><br />
        </event><br />
    </state><br />
<br />
    <state name="paused"><br />
        <event><br />
            <condition><br />
                <command name="play" /><br />
            </condition><br />
            <action><br />
                <click x="55" y="595" /><br />
                <goto state="playing" /><br />
            </action><br />
        </event><br />
    </state>



Nothing happens inside the player, is there some way to further debug, like see visual where the mouse actual clicks?

I’ve found that clicks can be a bit odd, so you might want to try this, which helped out in the Netflix player:



<br />
<click x="56" y="-65"  skipMouseUp="true" /><br />




Otherwise, nine times out of ten, it's actually a case of clicking in the wrong place :) Are you sure the player isn't resizing or something like that?

haven’t tried the skipMouseUp, will test that later on.



I am pretty sure it isn’t resizing, as my crop works perfectly, also, I can’t get the seeker simple to work, again it looks like it looks the wrong place.



is there some debugging I can enable in PMS? getting it to log what color it sees at an XY coord?

There isn’t at this time (just because it spews a lot of information), but if you contact me privately I can provide a build which does output that information.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.