MediaPlayerState

Types

Link copied to clipboard
sealed class PlayerError

Specifies the type of generic errors the player should send, compliant with VAST standards.

Link copied to clipboard
sealed class PlayerEvent

Various player states send as event changes through playerStatusFlow

Properties

Link copied to clipboard

Playback position of the current media with milliseconds precision This variable reflect the continuous progress for each item that is currently playing.

Link copied to clipboard

Used for targetability purposes. A list of player capabilities.

Link copied to clipboard

Used for targetability purposes. A list of player states as described by the IAB, which will help achieve better targetability.

Link copied to clipboard

The current status for the player. Player events changes (like buffering, pause, resume, playing, etc.) should be send through this flow

Link copied to clipboard
abstract val playerVolume: Float

Current value for the player's volume. This value should be between 0..1. A value of 0.0 indicates silence; a value of 1.0 (the default) indicates full audio volume for the player instance.