Class: MediaInformation

Constructor

MediaInformation

new MediaInformation()

Properties

breakClips

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

A partial list of break clips that includes the currently-playing break clip as well as some of the following clips. The reason for sending a partial list instead of the complete list is to avoid generating an overflow of MediaStatus messages.

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 the actual ID. If contentUrl is provided, it is used as the media URL, otherwise the contentId is used as the media URL.

customData

(non-null Object or undefined)

Application-specific media information.

duration

(number or undefined)

The media duration. Set to -1 if streamType is set to LIVE.

entity

(string or undefined)

Optional Google Assistant deep link to a media entity.

hlsSegmentFormat

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

The format of the HLS audio segment. Only required for HLS content playback using MPL.

hlsVideoSegmentFormat

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

The format of the HLS video segment. Only required for HLS content playback using MPL.

mediaCategory

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

The media category (audio, video, picture).

metadata

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

The media metadata.

startAbsoluteTime

(number or undefined)

Provides the absolute time (Epoch Unix time in seconds) for live streams. For a live event, it is the time the event started, otherwise it is the 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 non-null cast.framework.messages.UserActionState or undefined)

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

vmapAdsRequest

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

VMAP ad request configuration. Used if breaks and breakClips are not provided. This field is not included in MediaStatus messages to avoid overflow.