queue_append_sync


Description:

public void queue_append_sync (MediaItem item)

A convenience function that within application main thread synchronously appends an item to the playback queue of the player that this belongs to.

Reactable enhancers should only modify the queue from the application main thread, switching thread either themselves or using this convenience function that does so.

Note that this function will do no operation if called when there is no player set yet (e.g. inside enhancer construction) or if enhancer outlived the parent instance somehow. Both cases are considered to be implementation bug.

Parameters:

this

a Reactable

item

a MediaItem