PlaybackContext

sealed interface PlaybackContext

Contains playback related information for an active MediaProduct.

Inheritors

Types

Link copied to clipboard
data class Track(val audioMode: AudioMode?, val audioQuality: AudioQuality?, val audioBitRate: Int?, val audioBitDepth: Int?, val audioCodec: String?, val audioSampleRate: Int?, val productId: String, val assetPresentation: AssetPresentation, val duration: Float, val assetSource: AssetSource, val playbackSessionId: String, val referenceId: String?) : PlaybackContext

Playback context with track specific properties.

Link copied to clipboard
data class Video(val streamType: StreamType?, val videoQuality: VideoQuality?, val productId: String, val assetPresentation: AssetPresentation, val duration: Float, val assetSource: AssetSource, val playbackSessionId: String, val referenceId: String?) : PlaybackContext

Playback info with track specific properties.

Properties

Link copied to clipboard

The asset presentation of the media product being played. Might differ from requested in case of a replacement.

Link copied to clipboard
abstract val assetSource: AssetSource

The source of the assets that is used for playback

Link copied to clipboard
abstract val duration: Float

The duration, in seconds, of the media product being played. Might differ from the meta data connected to the requested in case of a replacement.

Link copied to clipboard

The playback session id that is used for PlayLog and StreamingMetrics (streamingSessionId) for the currently active playback.

Link copied to clipboard
abstract val productId: String

The product id of the media product being played. Might differ from requested in case of a replacement.

Link copied to clipboard
abstract val referenceId: String?

Loopback of the referenceId in the media product that this playback context relates to.