2010-10-09, 15:17
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:
I then add some items to the music playlist like this:
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:
the skipping works correctly.
But this will restart the song currently playing.
Hopefully some of you will enlighten me.
Thanks,
Erlend
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()
Code:
xbmc.PlayList(0).add(music path)
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))
But this will restart the song currently playing.
Hopefully some of you will enlighten me.
Thanks,
Erlend