State#

class State#

The possible states an element can be in. States can be changed using set_state() and checked using get_state().

Methods#

class State
get_name() str#

Gets a string representing the given state.

Added in version 1.28.

Fields#

class State
NULL#

The NULL state or initial state of an element.

PAUSED#

The element is PAUSED, it is ready to accept and process data. Sink elements however only accept one buffer and then block.

PLAYING#

The element is PLAYING, the Clock is running and the data is flowing.

READY#

The element is ready to go to PAUSED.

VOID_PENDING#

No pending state.