Kodi Seek / Jump to time?

I am trying to setup a slider so i can jump to a specific time in video, while its playing. (the Yatse app does this and i am trying replicate it)

Scrubbing time playback / timeline basically.

i have tried to do this with an input_number slider, and that works. i can slide it to any “percentage” of the video and it will play from there, great.

but i can’t get the input_number slider to track the position of the video it just stays where i last put it.

i tried an MQTT call as in the Docs, but i got into a weird loop where it was just jumping back forwards between the old position and the new position.

is this the best way why to do this or is there a better way?