com.bitmovin.player.api.videofeed
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
| VideoFeedItemState | constructor(item: VideoFeedItem, player: Player?, isCurrent: Boolean, status: VideoFeedItemStatus, error: ErrorEvent? = null) |
Properties
| Name | Summary |
|---|---|
| error | val error: ErrorEvent? The player or source error that caused VideoFeedItemStatus.Failed. |
| isCurrent | val isCurrent: Boolean Whether this item is the selected feed item. |
| item | val item: VideoFeedItem |
| player | val player: Player? Player assigned to this item, or null until this item is assigned to a pooled slot. |
| status | val status: VideoFeedItemStatus Loading/rendering/error status for UI placeholders and overlays. |