insert_item_after


Description:

[ Version ( since = "0.10" ) ]
public void insert_item_after (MediaItem item, MediaItem? after_item)

Insert another MediaItem after some other item position.

If after_item is null, item will be prepended. When set but not found however, item will be appended at the end of queue.

If item is already in queue, this function will do nothing, so it is safe to call multiple times if unsure.

Parameters:

this

a Queue

item

a MediaItem

after_item

a MediaItem after which to insert item or null to prepend