Images associées au contenu, telles qu'une vignette de photo
latitude
(nombre ou non défini)
Latitude du lieu où la photo a été prise.
emplacement
(chaîne ou non défini)
Lieu où la photo a été prise, par exemple Seattle, Washington, USA.
longitude
(nombre ou non défini)
Longitude du lieu où la photo a été prise.
title
(chaîne ou non défini)
Titre de la photo.
largeur
(nombre ou non défini)
Largeur de la photo, en pixels.
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/07/25 (UTC).
[null,null,["Dernière mise à jour le 2025/07/25 (UTC)."],[[["\u003cp\u003e\u003ccode\u003ePhotoMediaMetadata\u003c/code\u003e provides a structured way to describe photo content, including details like title, artist, location, and dimensions.\u003c/p\u003e\n"],["\u003cp\u003eIt includes properties for associated images, creation date, content rating, and geographic coordinates where the photo was taken.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can use this class to create rich metadata for photos displayed on Cast devices.\u003c/p\u003e\n"]]],[],null,["# Class: PhotoMediaMetadata\n\ncast.[framework](/cast/docs/reference/web_receiver/cast.framework).[messages](/cast/docs/reference/web_receiver/cast.framework.messages).PhotoMediaMetadata\n===========================================================================================================================================================\n\nclass static\n\nA photo media description.\n\nConstructor\n-----------\n\n### PhotoMediaMetadata\n\nnew\nPhotoMediaMetadata()\n\nProperties\n----------\n\n### artist\n\n(string or undefined)\n\nThe name of the photographer.\n\n### contentRating\n\n\u003cbr /\u003e\n\nThe content rating.\n\n### creationDateTime\n\n(string or undefined)\n\nThe ISO 8601 date and time the photo was taken, for\nexample, `2014-02-10T15:47:00Z`.\n\n### height\n\n(number or undefined)\n\nThe height of the photo, in pixels.\n\n### images\n\n(non-null Array of non-null [cast.framework.messages.Image](/cast/docs/reference/web_receiver/cast.framework.messages.Image) or undefined)\n\nImages associated with the content, such as a photo\nthumbnail.\n\n### latitude\n\n(number or undefined)\n\nThe latitude of the location where the photo was taken.\n\n### location\n\n(string or undefined)\n\nThe location where the photo was taken, for example, `Seattle, Washington, USA`.\n\n### longitude\n\n(number or undefined)\n\nThe longitude of the location where the photo was taken.\n\n### title\n\n(string or undefined)\n\nThe photo title.\n\n### width\n\n(number or undefined)\n\nThe width of the photo, in pixels."]]