Constructor

MediaInformation

new MediaInformation()

Properties

breakClips

(non-null Array of non-null cast.framework.messages.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 cast.framework.messages.Break or undefined)

List of breaks.

contentId

string

Typically the url of the media.

contentType

string

The content MIME type.

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

(non-null Object or undefined)

Application-specific media information.

duration

(number or undefined)

The media duration.

entity

(string or undefined)

Optional Media entity, provide Google Assistant deep link.

hlsSegmentFormat

(non-null cast.framework.messages.HlsSegmentFormat or undefined)

The format of the HLS audio segment.

hlsVideoSegmentFormat

(non-null cast.framework.messages.HlsVideoSegmentFormat or undefined)

The format of the HLS video segment.

metadata

(non-null cast.framework.messages.MediaMetadata, non-null Object, or undefined)

The media metadata.

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 cast.framework.messages.StreamType

The stream type.

textTrackStyle

(non-null cast.framework.messages.TextTrackStyle or undefined)

The style of text track.

tracks

(non-null Array of non-null cast.framework.messages.Track or undefined)

The media tracks.

userActionStates

(non-null Array of cast.framework.messages.UserActionState or undefined)

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

vmapAdsRequest

(non-null cast.framework.messages.VastAdsRequest or undefined)

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