Stay organized with collections Save and categorize content based on your preferences.
Constructor MediaInfonew MediaInfo(contentId, contentType)
ParametercontentId
string
Unique identifier for the media.
contentType
string
MIME content type of the media.
(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().
(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.
(non-null Array of non-null chrome.cast.media.Break or undefined)
List of breaks.
string
Identifies the content. Typically a URL, but can be any string identifier.
string
MIME content type of the media.
(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.
nullable Object
Custom data set by the receiver application.
nullable number
Duration of the content, in seconds. May be null for media with type chrome.cast.media.StreamType.LIVE.
(string or undefined)
Optional media entity, commonly a Google Assistant deep link.
(non-null chrome.cast.media.HlsSegmentFormat or undefined)
The format of the HLS audio segment.
(non-null chrome.cast.media.HlsVideoSegmentFormat or undefined)
The format of the HLS video segment.
any type
Describes the media content. The value should be one of the chrome.cast.media.*Metadata objects.
(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.
non-null chrome.cast.media.StreamType
The type of media stream.
nullable chrome.cast.media.TextTrackStyle
The requested text track style. If not provided, the device style preferences (if existing) will be used.
nullable Array of non-null chrome.cast.media.Track
Array of Track objects.
(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.
(non-null chrome.cast.media.VastAdsRequest or undefined)
VMAP ad request configuration. Used if breaks and breakClips are not provided.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[[["`chrome.cast.media.MediaInfo` is a class that describes a media item, including its content, type, duration, and other relevant information."],["It requires `contentId` and `contentType` to be instantiated, representing the unique identifier and MIME type of the media respectively."],["`MediaInfo` objects have various properties like `duration`, `streamType`, `tracks`, and custom data to provide detailed metadata about the media item."],["This class allows developers to specify how media should be loaded and handled by the Cast receiver, such as defining breaks, user action states, and ad requests."],["Properties like `contentUrl`, `entity`, and `atvEntity` offer flexibility in identifying and accessing media content on different platforms and devices."]]],[]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.3