SiteConf - point mapped to?

Hi,



I am having some troubles getting my site configuration working for a silverlight player. Playback is working perfectly, crop is working, i can track the progress using color matching. But i can’t get it to hit the pause button when using click at x+y.



when hitting pause nothing happens, and this is what the console says.



0x19c7ccd0 New frame size: 970.000000 x 579.000000

sendPluginMouseDown: point (60,563) mapped to (79.000000,49.000000)

mouseDown:

Mouse down event 60, 563

mouseUp:

Mouse up event 60, 563



Frame size is the dimensions of the player, and I am entirely sure the pause button is located at X=60 and Y=563, relative to the player top-left.



Is it something with the mapped to?



Sune

I have also tried using instead of clicks, as clicking spacebar at the site also triggers pause, but still don’t work.



Any ideas for debugging?

Hi!

Can we have a look at your site config and do you have a screenshot (or URL) of the player (without any cropping)?

Sure!



<?xml version="1.0" encoding="UTF-8"?><br />
<site site="http://sputnik.*tv2\.dk/player/simple"<br />
      plugin="silverlight"<br />
      identifier="com.plexapp.plugins.sputnik"<br />
      initialState="wait-for-frame-load"><br />
      <br />
    <crop x="0" y="0" width="970" height="546" /><br />
    <br />
    <seekbar type="simple"><br />
        <start x="125" y="563" /><br />
        <end x="675" y="563" /><br />
        <played><br />
            <color rgb="393939" /><br />
            <color rgb="8aa0a9" /><br />
            <color rgb="7c8f97" /><br />
        </played><br />
    </seekbar><br />
    <br />
    <condition name="need-to-login"><br />
		<and><br />
			<javascript script="login = TV2.Sputnik.userIsLoggedIn() == true ? 0 : 1" matches="1" /><br />
			<pref name="username" exists="true" /><br />
			<pref name="password" exists="true" /><br />
		</and><br />
	</condition><br />
<br />
	<!-- Wait for page to load --><br />
	<state name="wait-for-frame-load"><br />
		<event><br />
			<condition><br />
				<frameLoaded /><br />
			</condition><br />
			<action><br />
				<goto state="check-for-auth" /><br />
			</action><br />
		</event><br />
	</state><br />
<br />
	<state name="check-for-auth"><br />
		<event><br />
			<condition><br />
				<not><br />
					<condition name="need-to-login" /><br />
				</not><br />
			</condition><br />
			<action><br />
				<goto state="playing" /><br />
			</action><br />
		</event><br />
		<event><br />
			<condition><br />
				<condition name="need-to-login" /><br />
			</condition><br />
			<action><br />
                <run script='TV2.ajax.asyncRequest("POST", "http://ajax.tv2.dk/login/user/login/", {success:function() {$("#player-embed").sputnikPlayer("reload");}}, {username:"${username}",password:"${password}"})' /><br />
				<goto state="playing" /><br />
			</action><br />
		</event><br />
	</state><br />
    <br />
    <state name="playing"><br />
        <event><br />
            <condition><br />
                <command name="pause" /><br />
            </condition><br />
            <action><br />
                <click x="60" y="563" /><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="60" y="563" /><br />
                <goto state="playing" /><br />
            </action><br />
        </event><br />
    </state><br />
<br />
</site><br />




This is a link for some of the free content, so should be playable without login and membership

http://sputnik-dyn.tv2.dk/player/simple/id/22619/

Hi Sune!

I can’t load the Sputnik TV2 website at the moment… :frowning: I have a feeling that the “playing” state is never reached and that that’s the reason why pause doesn’t work.

Your click coordinates look correct, the states look OK too, so maybe TV2.Sputnik.userIsLoggedIn() returns an error or an unexpected value or TV2.ajax.asyncRequest() doesn’t do what it should? Will try again later if the website works again!

Sputnik works again.



I am sure the playing state is reached. I get playback, and also i can see in the log from PMS that it tries to run the actions configured in my playing/paused states.



This is very weird

For the URL i provided no login should be needed, so this siteconf should work just fine, but still click has no effect.


<br />
<?xml version="1.0" encoding="UTF-8"?><br />
<site site="http://sputnik.*tv2\.dk/player/simple"<br />
      plugin="silverlight"<br />
      identifier="com.plexapp.plugins.sputnik"<br />
      initialState="wait-for-frame-load"><br />
      <br />
    <crop x="0" y="0" width="970" height="546" /><br />
    <br />
    <seekbar type="simple"><br />
        <start x="125" y="563" /><br />
        <end x="675" y="563" /><br />
        <played><br />
            <color rgb="393939" /><br />
            <color rgb="8aa0a9" /><br />
            <color rgb="7c8f97" /><br />
        </played><br />
    </seekbar><br />
<br />
        <!-- Wait for page to load --><br />
        <state name="wait-for-frame-load"><br />
                <event><br />
                        <condition><br />
                                <frameLoaded /><br />
                        </condition><br />
                        <action><br />
                                <goto state="playing" /><br />
                        </action><br />
                </event><br />
        </state><br />
    <br />
    <state name="playing"><br />
        <event><br />
            <condition><br />
                <command name="pause" /><br />
            </condition><br />
            <action><br />
                <click x="60" y="563" /><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="60" y="563" /><br />
                <goto state="playing" /><br />
            </action><br />
        </event><br />
    </state><br />
<br />
</site>

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