play track and seek to time
#1
Hello all,

I'd like some advice on something i would like to do with xbmc using python.

This is what i want to do:

I have a playlist that plays all the songs in it, on repeat. Now i have a scheduled event that will play a different song at 13:00.
Now i want to essentially pause playback of the playlist, play the scheduled song, and resume play of the playlist after the scheduled song ends.

I thought of accomplishing this by trying to store the track number and play time of current track in the playlist, into some variable, play the schedule, and after schedule ends, resume play.
After researching, i found a way to start playback from a certain track, but did not find a way to start play from a given time in a track.

Any ideas on how to achieve this? thanks
Reply
#2
Okay i've figured out how to do some of this. I need just one more thing.

How do i get the index(number) of the current track being played in the playlist?
Reply
#3
Okay. I've solved it. Thanks
Reply
#4
bionic187, could you show me how to do it?

I have a playlist too. But the whole playlist is scheduled. So...if a user open the addon at 11am the xbmc.player must play the track that start at 11am or more or less that time.

I'm trying to simulate a TV

thanks!
Reply

Logout Mark Read Team Forum Stats Members Help
play track and seek to time0