VideoFeedItemState

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

Link copied to clipboard
constructor(item: VideoFeedItem, player: Player?, isCurrent: Boolean, status: VideoFeedItemStatus, error: ErrorEvent? = null)

Properties

Link copied to clipboard

The player or source error that caused VideoFeedItemStatus.Failed.

Link copied to clipboard

Whether this item is the selected feed item.

Link copied to clipboard
Link copied to clipboard

Player assigned to this item, or null until this item is assigned to a pooled slot.

Link copied to clipboard

Loading/rendering/error status for UI placeholders and overlays.