insert_item


Description:

public void insert_item (MediaItem item, int index)

Insert another MediaItem at index position to the 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

index

the index to place item in queue, -1 to append