Class: ContainerMetadata

  • chrome.cast.media.ContainerMetadata provides a way to describe metadata for media containers like audiobooks, TV channels, or albums.

  • It includes properties for container type, duration, images, title, and sections (like chapters or programs).

  • You can create a new ContainerMetadata object by specifying the container type.

  • Properties like containerImages and sections can further detail the container's content with images and metadata for individual sections.

Constructor

ContainerMetadata

new ContainerMetadata(type)

Parameter

type

Optional

chrome.cast.media.ContainerType

Type of container object.

Value must not be null.

Properties

containerDuration

(number or undefined)

Container duration in seconds. For example an audiobook playback time.

containerImages

(non-null Array of non-null chrome.cast.Image or undefined)

Container images. For example a live TV channel logo, audiobook cover, album cover art, etc.

containerType

non-null chrome.cast.media.ContainerType

The type of container object.

sections

(non-null Array of non-null chrome.cast.media.MediaMetadata or undefined)

Array of media metadata objects to describe the media content sections. Used to delineate live TV streams into programs and audiobooks into chapters.

title

(string or undefined)

The title of the container, for example an audiobook title, a TV channel name, etc.