state

val state: MediaState

The track's state, representing the complete set of mutually exclusive observable states a track can be in:

  • blocked: The track is blocked, i.e. does not have permissions.

  • off: The track is off, but not blocked. This occurs when the corresponding media has either isEnabled or isPublishing set to false.

  • receivable: The track has been published and is available to be received, but hasn't been subscribed to.

  • loading: The track is loading. It has been subscribed to.

  • playable: The track is ready to be played. It has been subscribed to, has finished loading.

  • interrupted: The track is currently unplayable. It may enter this state from the playable state.