- From: Chris Poppe <Chris.Poppe@ugent.be>
- Date: Tue, 16 Nov 2010 14:02:10 +0100
- To: 'Joakim Söderberg' <joakim.soderberg@ericsson.com>
- Cc: <public-media-annotation@w3.org>
Dear all,
This has been added to the latest version of the API doc [0].
[0]
http://dev.w3.org/2008/video/mediaann/mediaont-api-1.0/mediaont-api-1.0.html
Kind regards,
Chris
-----Original Message-----
From: public-media-annotation-request@w3.org
[mailto:public-media-annotation-request@w3.org] On Behalf Of Joakim
Söderberg
Sent: Saturday, November 06, 2010 10:09 AM
To: Chris.Poppe@UGent.be
Cc: public-media-annotation@w3.org
Subject: FW: Metadata source example
Dear Chris,
I was discussing methods to indicate the original metadata format (or source
format) with Werner. We suggest adding the following example:
(add to example in 3.1.1 MR methods to show how to use metadata sources)
<p id='example-construct'>Example of creating an object implementing
this interface through the constructor, specifying different metadata
sources:</p>
<pre class="example sh_javascript">
metadataSources = new MetadataSource[2];
metadataSources[0] = new
MetadataSource("http://www.w3.org/2008/WebVideo/Annotations/wiki/MAWG-Stockh
olm-20090626.xml","dc");
metadataSources[1] = new
MetadataSource("http://www.w3.org/2008/WebVideo/Annotations/wiki/images/9/93
/MAWG-Stockholm-20090626.JPG","exif");
mediaResource = new
MediaResource("http://www.w3.org/2008/WebVideo/Annotations/wiki/images/9/93/
MAWG-Stockholm-20090626.JPG",metadataSources);
//mediaResource provides access to the metadata of the media resource
mediaResource.getMediaProperty("title", title);
...
</pre>
Received on Tuesday, 16 November 2010 13:02:51 UTC