Class: BrowseContent

  • cast.framework.ui.BrowseContent displays a media browse carousel for both IDLE screen and related content during playback.

  • It is constructed using an array of cast.framework.ui.BrowseItem (maximum 30) and an optional title.

  • Key properties include items, targetAspectRatio (to manage image display), and title.

  • Images in the browse items should ideally match the targetAspectRatio to avoid letterboxing or pillarboxing.

Constructor

BrowseContent

new BrowseContent(browseItems, title)

Parameter

browseItems

Array of non-null cast.framework.ui.BrowseItem

List of browse items. Maximum items count is 30. Excess items will be truncated.

Value must not be null.

title

Optional

string

Title of the list.

Properties

items

non-null Array of non-null cast.framework.ui.BrowseItem

List of browse items. Maximum items count is 30. Excess items will be truncated.

targetAspectRatio

(non-null cast.framework.ui.BrowseImageAspectRatio or undefined)

Aspect ratio of all images in the media browse carousel. It's highly recommended to have browse item image provided in BrowseContentItem#image matching targetAspectRatio value. If image is too narrow/tall, it will be pillarboxed. If image is too wide/short, it will be letterboxed.

title

(string or undefined)

Title of the list.