Kodi Community Forum

Full Version: Python: How to hide the Seek Bar
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi All,

I have an addon that will seek to a given place inside an audio track using:

Code:
xbmc.Player().seekTime( randomStart )

However when it does this it shows the "Seek Bar" at the top right of the screen.

Is there a way to do a seek without this dialog being displayed?

Any help greatly appreciated.

Thanks, Rob
Just in case some-one stumbles accross this post asking the same question, I did find the answer out myself while coding something else (spotted the option!)

Instead of using seek, add the file to the playlist and set the "StartOffset" value.

e.g.

Code:
listitem = xbmcgui.ListItem()
listitem.setProperty('StartOffset', str(randomStart))
playlist.add(str(filename), listitem, 0)

Hope this helps some-one

Rob