Method

ClapperReactablequeue_append_sync

since: 0.10

Declaration [src]

void
clapper_reactable_queue_append_sync (
  ClapperReactable* reactable,
  ClapperMediaItem* item
)

Description [src]

A convenience function that within application main thread synchronously appends an item to the playback queue of the player that reactable 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.

Available since: 0.10

Parameters

item

Type: ClapperMediaItem

A ClapperMediaItem.

The data is owned by the caller of the method.