Images associées au contenu. (par exemple, une vignette de photo).
latitude
(nombre ou non défini)
Latitude.
emplacement
(chaîne ou non défini)
Lieu de prise de vue de la photo. Exemple : "Seattle, Washington, États-Unis".
longitude
(nombre ou non défini)
Longitude.
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\u003echrome.cast.media.PhotoMediaMetadata\u003c/code\u003e provides a structured way to describe photo media for casting, including details like title, artist, location, and associated images.\u003c/p\u003e\n"],["\u003cp\u003eIt contains properties for essential photo metadata like dimensions (width, height), geolocation (latitude, longitude), creation timestamp, and photographer information.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can utilize \u003ccode\u003ePhotoMediaMetadata\u003c/code\u003e to create rich metadata descriptions for photos displayed on Cast-enabled devices.\u003c/p\u003e\n"]]],["The `PhotoMediaMetadata` class describes photo media content, containing properties like the photographer's name (`artist`), the photo's creation date/time (`creationDateTime`), height (`height`), width (`width`), and title (`title`). It also includes an array of associated images (`images`), location information with latitude (`latitude`), longitude (`longitude`) and location name (`location`). The class can be constructed using the `PhotoMediaMetadata()` constructor.\n"],null,["# Class: PhotoMediaMetadata\n\nchrome.[cast](/cast/docs/reference/web_sender/chrome.cast).[media](/cast/docs/reference/web_sender/chrome.cast.media).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\nName of the photographer.\n\n### creationDateTime\n\n(string or undefined)\n\nISO 8601 date and time the photo was taken, e.g. 2014-02-10T15:47:00Z.\n\n### height\n\n(number or undefined)\n\nPhoto height, in pixels.\n\n### images\n\n(non-null Array of non-null [chrome.cast.Image](/cast/docs/reference/web_sender/chrome.cast.Image) or undefined)\n\nImages associated with the content. Examples would include a photo\nthumbnail.\n\n### latitude\n\n(number or undefined)\n\nLatitude.\n\n### location\n\n(string or undefined)\n\nLocation where the photo was taken. For example, \"Seattle, Washington,\nUSA\".\n\n### longitude\n\n(number or undefined)\n\nLongitude.\n\n### title\n\n(string or undefined)\n\nPhoto title.\n\n### width\n\n(number or undefined)\n\nPhoto width, in pixels."]]