PF/XTech/HTML5/MetadataNotes

From W3C Wiki
< PF‎ | XTech‎ | HTML5

raw jottings

Proposal

A simple, consistent API for accessing image/media object metadata via Javascript in HTML5.

Metadata to be accessed via name/value pairs associated with the object. The name is of type string, the value an array of strings.

URIs may be used for names and values, if so the URI should appear as the whole name/value string without any other characters.

e.g.

 var title = video.getMetadata("title");

Example formats: JPEG, PDF, MP3, AVI

Use Cases

  • looking for a hotel, a browser on a mobile device could use the geo coords stored in the Exif of a photo to direct the user to the actual location of the photo
  • looking at a set of conference photos, the browser could alert the user: "hey, that's your friend in the photo!"

Code