@UnstableApi
class ErrorState


State holder that tracks the Player.getPlayerError by listening to Player.EVENT_PLAYER_ERROR and Player.EVENT_PLAYBACK_STATE_CHANGED.

Summary

Public constructors

ErrorState(player: Player?)

Public functions

suspend Nothing?

Subscribes to updates from Player.Events to update the error state.

Public properties

PlaybackException?

Public constructors

ErrorState

ErrorState(player: Player?)

Public functions

observe

suspend fun observe(): Nothing?

Subscribes to updates from Player.Events to update the error state.

Public properties

error

val errorPlaybackException?