VideoFeedItemState

com.bitmovin.player.api.videofeed

VideoFeedItemState

@ExperimentalBitmovinApi

data class VideoFeedItemState(val item: VideoFeedItem, val player: Player?, val isCurrent: Boolean, val status: VideoFeedItemStatus, val error: ErrorEvent? = null)

Current controller state for a VideoFeedItem.

UIs should render from this state instead of owning players directly. A non-null player is owned by VideoFeedPlayerController; attach it to a player view, but do not destroy it.

Constructors

VideoFeedItemStateconstructor(item: VideoFeedItem, player: Player?, isCurrent: Boolean, status: VideoFeedItemStatus, error: ErrorEvent? = null)

Properties

NameSummary
errorval error: ErrorEvent?
The player or source error that caused VideoFeedItemStatus.Failed.
isCurrentval isCurrent: Boolean
Whether this item is the selected feed item.
itemval item: VideoFeedItem
playerval player: Player?
Player assigned to this item, or null until this item is assigned to a pooled slot.
statusval status: VideoFeedItemStatus
Loading/rendering/error status for UI placeholders and overlays.