AI-generated Key Takeaways
-
chrome.cast.media.PhotoMediaMetadata
provides a structured way to describe photo media for casting, including details like title, artist, location, and associated images. -
It contains properties for essential photo metadata like dimensions (width, height), geolocation (latitude, longitude), creation timestamp, and photographer information.
-
Developers can utilize
PhotoMediaMetadata
to create rich metadata descriptions for photos displayed on Cast-enabled devices.
chrome.cast.media. PhotoMediaMetadata
A photo media description.
Constructor
PhotoMediaMetadata
new PhotoMediaMetadata()
Properties
artist
(string or undefined)
Name of the photographer.
creationDateTime
(string or undefined)
ISO 8601 date and time the photo was taken, e.g. 2014-02-10T15:47:00Z.
height
(number or undefined)
Photo height, in pixels.
images
(non-null Array of non-null chrome.cast.Image or undefined)
Images associated with the content. Examples would include a photo thumbnail.
latitude
(number or undefined)
Latitude.
location
(string or undefined)
Location where the photo was taken. For example, "Seattle, Washington, USA".
longitude
(number or undefined)
Longitude.
title
(string or undefined)
Photo title.
width
(number or undefined)
Photo width, in pixels.