Quantcast
Channel: Kodi Community Forum - All Forums
Viewing all articles
Browse latest Browse all 84005

Player.seekTime directly after Player.play

$
0
0
Hey folks,

I am trying to start an audio file directly at a specific timestamp. I am doing it like this in two steps:

Code:
xbmc.Player().play('d:\\test.mp3')
xbmc.Player().seekTime(20)

But the call to seekTime is ignored.

It works when I add a small pause before calling seekTime:
Code:
xbmc.Player().play('d:\\test.mp3')
time.sleep(1)
xbmc.Player().seekTime(20)

But we all know this is ugly. Any idea how to start playing at a timestamp without such a hack?
Thanks in advance!

Viewing all articles
Browse latest Browse all 84005

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>