diff -r 913c9751c067 -r 716254ccbcc0 org.symbian.tools.wrttools.doc.WebDeveloper/html/GUID-E5684FF0-28C9-4721-9421-6B9432087086.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/org.symbian.tools.wrttools.doc.WebDeveloper/html/GUID-E5684FF0-28C9-4721-9421-6B9432087086.html Fri Mar 05 19:11:15 2010 -0800 @@ -0,0 +1,38 @@ + + +JavaScript Media +Management Service API

JavaScript Media +Management Service API

+

The Media Management +Service API is supported since WRT 1.1.

+

The Media Management Service API allows widgets to retrieve information +(metadata) about the media files stored in the Media Gallery of a device. +The API is integrated into WRT through the device object.

+

For an overview of the service and the API, see section Accessing information about media files stored on a device.

+

Using the Media Management Service API

+

To use the Media Management Service API, your widget must first create a service object for it +using the device.getServiceObject() method. +Use Service.MediaManagement to identify the service provider +and IDataSource to identify the supported interface:

+
var so = device.getServiceObject("Service.MediaManagement", "IDataSource");
+ +

This service object can then be used to access the services provided +by the API:

+ +
+

Emulator support

+

The S60 5th Edition SDK emulator provides full support for the Media +Management Service API.

+

Retrieving media file information from a memory card is only possible +on a physical device. In the emulator, drive E: simulates the memory card +installed on a physical device.

+
+
\ No newline at end of file