2010-05-10, 23:37
Quote:Otherwise a Playlist.Sort(playlist-virtual="foo", order=[5, 0, 1, 2, 3, 4, 6]) could be used but would need some usage cases on that one.That's exactly what I'm aiming at . But your suggestion is probably better. In the JS api it could look something like...
What would happen if order=[4, 4, 1, 2] and what would happen if list is 0->6 and you do order=[6, 1, 3] and so on. If I get a good spec on that I can probably work something out
Code:
Xbmc.AudioPlaylist.move(i_currentlIndex, i_newIndex);
Code:
Xbmc.AudioPlaylist.moveItem(i_currentlIndex, i_newIndex);
Code:
Xbmc.AudioPlaylist.setItemIndex(i_currentlIndex, i_newIndex);