Help with seekbar and siteconfig

Hi everyone,



I’ve hit a bit of a wall trying to figure out an issue with executing SMALLSTEP and BIGSTEP on a plugin I’m working on.



In my site config, I have the seekbar defined like this:



<br />
<seekbar type="thumb"><br />
		<start x="70" y="383" /><br />
		<end   x="512" y="383" /><br />
		<played><br />
			<color rgb="ffffff" /><br />
		</played><br />
	</seekbar><br />





Plex seems happy with this as it seems to recognize things and moves its progress bar along with the video without complaint.

Where I'm running into problems however is when trying to move forwards or backwards in the video. Dragging the thumb or clicking along the seekbar works fine in a browser window, but trying to execute a SMALLSTEP or BIGSTEP in plex causes the video to simply start over again from the beginning, no matter which direction I try to move.

The console output when I try to do this looks like this:


<br />
<br />
LINE: SMALLSTEP+<br />
Pixels played = 164, need to click on 242<br />
sendPluginMouseDown: point (234,383) mapped to (242.000000,84.000000)<br />
mouseDown:<br />
Mouse down event -4758, 5716<br />
Point (242,383) mapped to (250.000000,84.000000)<br />
windowFocusChanged: 1<br />
gaining focus<br />
mouseUp:<br />
Mouse up event -4750, 5716<br />
sendPluginMouseDown: point (242,313) mapped to (250.000000,154.000000)<br />
mouseDown:<br />
Mouse down event -4750, 5646<br />
mouseUp:<br />
Mouse up event -4750, 5646<br />





I'm wondering if the windowFocusChanged has anything to do with it? I'm not really sure what's going on, its probably something simple, but It's driving me a little nuts. If anyone can shed some light on what might be going on here, I'd really appreciate it! If anyone wants to see what the seekbar looks like, here is an example: [http://www.cbc.ca/vi...s/ID=1359552538](http://www.cbc.ca/video/#/Shows/22_Minutes/ID=1359552538)

Thanks!

The site config experts are all asleep at the moment, but have you tried setting the type to “simple” instead of “thumb”? The “thumb” type is only needed if the thumb in the player needs to be dragged to the new position - “simple” just clicks at the right place on the bar, and you mentioned that this works in the browser.



If that doesn’t work, I’m sure one of the other devs will have an idea :slight_smile:



Thanks for the reply!

It was a good thought, but no dice. Same problem; changing the siteconfig to this, where "111111" is the colour of the seekbar:


<br />
<br />
	<seekbar type="simple"><br />
		<start x="70" y="383" /><br />
		<end   x="512" y="383" /><br />
		<played><br />
		<!--	<color rgb="ffffff" /><br />
			<color rgb="b4b4b4" /> --><br />
			<color rgb="111111" /><br />
				<br />
		</played><br />
	</seekbar><br />





Results in the video restarting whenever a SMALLSTEP or BIGSTEP is sent:



<br />
LINE: SMALLSTEP+<br />
Pixels played = 8, need to click on 86<br />
sendPluginMouseDown: point (86,383) mapped to (117.000000,274.000000)<br />
mouseDown:<br />
Mouse down event -4883, 5526<br />
mouseUp:<br />
Mouse up event -4883, 5526<br />





It's the darndest thing.

ah-ha! I’ve made progress, sort of. This is super weird. On shorter videos, BIGSTEP+ skips ahead and doesn’t restart the video, but it doesn’t seem to move the video far enough ahead.



For example:









<br />
<br />
<br />
LINE: BIGSTEP+<br />
Pixels played = 8, need to click on 122<br />
sendPluginMouseDown: point (122,383) mapped to (153.000000,274.000000)<br />
mouseDown:<br />
Mouse down event -4847, 5526<br />
mouseUp:<br />
Mouse up event -4847, 5526<br />
<br />
LINE: BIGSTEP+<br />
Pixels played = 55, need to click on 169<br />
sendPluginMouseDown: point (169,383) mapped to (200.000000,274.000000)<br />
mouseDown:<br />
Mouse down event -4800, 5526<br />
mouseUp:<br />
Mouse up event -4800, 5526<br />




In this case, shouldn't the second BIGSTEP start at 122? Where the first one left off? On this same video a SMALLSTEP caused it to restart:


SMALLSTEP+<br />
Pixels played = 75, need to click on 153<br />
sendPluginMouseDown: point (153,383) mapped to (184.000000,274.000000)<br />
mouseDown:<br />
Mouse down event -4816, 5526<br />
mouseUp:<br />
Mouse up event -4816, 5526<br />




Longer videos still restart on BIGSTEP or SMALLSTEP. So strange.

*EDIT*

It appears that only SMALLSTEP+ now restarts the video. BIGSTEP+/- and SMALLSTEP- work as they should :/ I dunno.

There is one semi-undocumented feature which may help you out in this case. If you use the smallStep or bigStep attributes, you can change the percentage that they seek, like so:



<br />
<seekbar type="simple" smallStep="10" bigStep="20"><br />




They default 2 and 10, respectively.




This is perfect, thanks! Changing smallstep to 5 fixed things. I think it might have something to do with the fact that the thumb on this videoplayer is especially wide, 15 pixels. I dunno, regardless it's working now. Thanks again!

Glad to hear it worked for you :slight_smile:

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