Constructor

MediaInfo

new MediaInfo(contentId, contentType)

Describes a media item.

Parameter

contentId

string

Unique identifier for the media.

contentType

string

MIME content type of the media.

Properties

contentId

string

Identifies the content. Typically a URL, but can be any string identifier.

contentType

string

MIME content type of the media.

customData

Object

Custom data set by the receiver application.

duration

nullable number

Duration of the content, in seconds. May be null for media with type chrome.cast.media.StreamType.LIVE.

metadata

any type

Describes the media content. The value should be one of the chrome.cast.media.*Metadata objects.

streamType

chrome.cast.media.StreamType

The type of media stream.

textTrackStyle

nullable chrome.cast.media.TextTrackStyle

The requested text track style. If not provided, the device style preferences (if existing) will be used.

tracks

Array of non-null chrome.cast.media.Track

Array of Track objects.