Class: MediaInfo

Constructor

MediaInfo

new MediaInfo(contentId, contentType)

Parameter

contentId

string

Unique identifier for the media.

contentType

string

MIME content type of the media.

Properties

atvEntity

(string or undefined)

Alternate entity to be used to load the media in Android TV app.

If set, this will override the value set in entity if the receiver is an Android TV app. On the receiver side, the entity can be accessed from MediaInfo#getEntity().

breakClips

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

Partial list of break clips that includes current break clip that receiver is playing or ones that receiver will play shortly after, instead of sending whole list of clips. This is to avoid overflow of MediaStatus message.

breaks

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

List of breaks.

contentId

string

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

contentType

string

MIME content type of the media.

contentUrl

(string or undefined)

Optional media URL, to allow using contentId for real ID. If contentUrl is provided, it will be used as media URL, otherwise the contentId will be used as the media URL.

customData

nullable 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.

entity

(string or undefined)

Optional media entity, commonly a Google Assistant deep link.

hlsSegmentFormat

(non-null chrome.cast.media.HlsSegmentFormat or undefined)

The format of the HLS audio segment.

hlsVideoSegmentFormat

(non-null chrome.cast.media.HlsVideoSegmentFormat or undefined)

The format of the HLS video segment.

metadata

any type

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

startAbsoluteTime

(number or undefined)

Provides absolute time (Epoch Unix time in seconds) for live streams. For live event it would be the time the event started, otherwise it will be start of the seekable range when the streaming started.

streamType

non-null 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

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

Array of Track objects.

userActionStates

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

Indicates the user action state for media. Indicate user like, dislike, or follow actions for the media.

vmapAdsRequest

(non-null chrome.cast.media.VastAdsRequest or undefined)

VMAP ad request configuration. Used if breaks and breakClips are not provided.