Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(159)

Unified Diff: chrome/common/extensions/api/media_galleries.idl

Issue 121383002: Media Galleries API Metadata: Add audio video metadata extractor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address thestig comments Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/api/media_galleries.idl
diff --git a/chrome/common/extensions/api/media_galleries.idl b/chrome/common/extensions/api/media_galleries.idl
index 79c724e3fd9b51b4c19f9fefbdf128263a05ae51..04c7dafc9afe4c6b0b70f5d3dabaf9a49ada25bf 100644
--- a/chrome/common/extensions/api/media_galleries.idl
+++ b/chrome/common/extensions/api/media_galleries.idl
@@ -69,6 +69,24 @@ namespace mediaGalleries {
dictionary MediaMetadata {
// The browser sniffed mime type.
DOMString mimeType;
+
+ // Defined for images and video. In pixels.
+ long? height;
+ long? width;
+
+ // Defined for audio and video. In seconds.
+ double? duration;
+
+ // Generic metadata tags.
+ DOMString? album;
+ DOMString? artist;
+ DOMString? comment;
+ DOMString? copyright;
+ long? disc;
+ DOMString? genre;
+ DOMString? language;
+ DOMString? title;
+ long? track;
};
callback MediaMetadataCallback = void (MediaMetadata metadata);
« no previous file with comments | « no previous file | chrome/utility/media_galleries/media_metadata_parser.h » ('j') | media/base/audio_video_metadata_extractor.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698