2010-10-03, 13:29
Can anyone tell me how to handle virtual playlists correctly?
Actually i only need an AudioPlaylist (and of course a VideoPlaylist) where i can add and remove songs and play a specific item. Everything works fine with the JSON-API except that there is no remove-method for AudioPlaylist and VideoPlaylist.
But there is a remove-method for virtual playlists. So i considered to use virtual playlists. But i don't know how to handle them correctly.
I know i can use Playlist.Create to create a v-playlist and Playlist.Add to add songs, albums and files. And then i can use XBMC.Play to play the v-playlist. But what about playlist changes? For example i remove some elements from the v-playlist. How do i pass the new v-playlist to the currently playing one without stopping the current song or restarting the playlist from the beginning?
Actually i only need an AudioPlaylist (and of course a VideoPlaylist) where i can add and remove songs and play a specific item. Everything works fine with the JSON-API except that there is no remove-method for AudioPlaylist and VideoPlaylist.
But there is a remove-method for virtual playlists. So i considered to use virtual playlists. But i don't know how to handle them correctly.
I know i can use Playlist.Create to create a v-playlist and Playlist.Add to add songs, albums and files. And then i can use XBMC.Play to play the v-playlist. But what about playlist changes? For example i remove some elements from the v-playlist. How do i pass the new v-playlist to the currently playing one without stopping the current song or restarting the playlist from the beginning?