Solved Python: How to hide the Seek Bar
#1
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
Reply
#2
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
Reply

Logout Mark Read Team Forum Stats Members Help
Python: How to hide the Seek Bar0