How to update/remove a playlist item from CurrentPlaylist

Hi,

trying to understand the chm-documentation on “CurrentPlaylist”
to learn how to manipulate the current playlist.

I can insert a new item with
CurrentPlaylist.Insert(NewItemIndex, newItem);

How do I:

  • remove an item?
  • replace an item with some other item? (so I can rescan an object or shuffle the playlist)

From my understanding the CurrentPlaylist is
of the type “IPlaybackControl”. This doesn’t
have the Method “Insert”, but most of the other
Methods I’ve so far used are there (like “SkipTo”, “AutomationNext”)

Any hints on what I can read to find out more?

IPlaybackControl is derived from IPlaylist, so you can use all the methods from IPlaylist as well. IPlaylist, in turn, is derived from IPersisentList, which is again derived from IBaseList.

Just browser through the chm file and you will see all the methods you need.

Remove an item: Delete(index)
Replace an item: Use Delete + Insert