Setting the current playlist position
#1
I'm unsure if this is the right forum for my question, but consider this scenario:

I start playing a song, resulting in the entire album being queued in the music playlist.
Through a script I then clear the playlist, like this:
Code:
xbmc.PlayList(0).clear()
I then add some items to the music playlist like this:
Code:
xbmc.PlayList(0).add(music path)
Making sure the first item I add is the one I started playing in the first place.
While executing this script the music is still playing.
If I now press "Skip", the player does not start playing from position 2 in the playlist, It jumps ahead a few songs.

Does anyone know why this might occur? Is there maybe a way of resetting the players playlist position?

However, if at the end of my script, I start the player like this:
Code:
xbmc.Player().play(xbmc.PlayList(0))
the skipping works correctly.
But this will restart the song currently playing.

Hopefully some of you will enlighten me.
Thanks,
Erlend
Reply

Logout Mark Read Team Forum Stats Members Help
Setting the current playlist position0