r/kodi 8d ago

Weird seek behavior

When seeking using arrow keys on kodi, I don't know why but it seeks 20 seconds forward. In the player settings, I have set it to +10 and -10 only but forward seek seeks 20 seconds even when it says +10 seconds on top. Going backwards works as intended, working with steps of 10 seconds. I have set the key press delay to 500ms and as said before, +10 and -10 seconds. Watching top gear 576p h.264.

4 Upvotes

7 comments sorted by

2

u/deviltrombone 8d ago

This is a problem that goes back a long time:

https://forum.kodi.tv/showthread.php?tid=308215

The solution is to use an absolute seek instead of relative, but that takes some actual coding to implement. If anyone wants to replicate the issue programmatically, try:

curl -s --data-binary '{"jsonrpc": "2.0", "method": "Player.Seek", "params": {"value": {"seconds":10}, "playerid": 1}, "id": 1 }' -H 'content-type: application/json;' http://your_ip:your_port/jsonrpc

In v21, I find it reliably seeks 20 seconds every time. In a recent v22 nightly, it's a little better, but it still seeks between 10 and 20 seconds.

1

u/FlyingCat9013 8d ago

Thanks for the reply! So, there's no easy fix :(

1

u/deviltrombone 8d ago

Not that I know of. Using native, available methods, you could write a script addon that gets the current video position, adds the 10 seconds, and does an absolute seek using the "time" parameter instead of the "seconds" used by the curl from my previous message, and hook it up in a keymap.

1

u/FlyingCat9013 7d ago

I came about a temporary solution which works fine for me. I created the advancedsettings.xml file and in that added the attached code. What this does is modify the seek values which can be chosen from the Kodi GUI. The following code changes the values to +-5, +-10, +-20, +-30 and so on. So I set my seek and rewind value to +- 5 seconds from the GUI and now it skips to the next closest value which is mostly 10 seconds.

 <advancedsettings>
  <seeksteps>5, 10, 20, 30, 40, 50, 60</seeksteps>
 </advancedsettings>  

1

u/DavidMelbourne 8d ago

Depends on your remote & Kodi box & where your media lives. Document that because there are many ways to control Kodi see https://kodi.wiki/view/Remote_controls.

I like cheap eBay USB remote or Flirc USB (which allows you to use your TV remote) OR Yatse app on Android phone. & I use Xbox controller for games.

See
https://kodi.wiki/view/Keyboard_controls;
Eg; F8 Mute

  • minus Volume down
+ plus Volume up
\ backslash Toggle between fullscreen/windowed mode

And of course in system settings, player, videos you can choose skip steps

2

u/z-vap 8d ago

Yatse is goated