AI-generated Key Takeaways
-
GenericMediaMetadata
provides a structured way to describe media content with properties like title, subtitle, images, release date, and content rating. -
It is used within the Cast framework, specifically for web receiver applications to handle media information.
-
Developers can utilize this class to represent and communicate details about various media items, such as movies, TV shows, or music tracks, during casting sessions.
-
While
releaseYear
is available, it's recommended to usereleaseDate
for representing the release information of the content.
cast.framework.messages. GenericMediaMetadata
A generic media description.
Constructor
GenericMediaMetadata
new GenericMediaMetadata()
Properties
contentRating
Content rating.
images
(non-null Array of non-null cast.framework.messages.Image or undefined)
Content images, for example, cover art or a thumbnail of the currently-playing media.
releaseDate
(string or undefined)
The date when the content was released, in ISO 8601 format,
for example, 2014-02-10
.
releaseYear
(number or undefined)
Integer year when the content was released.
- Deprecated
- Use `releaseDate` instead.
subtitle
(string or undefined)
Content subtitle.
title
(string or undefined)
Content title.