provider

Published 2014-10-28 | (Compatible with SDK 3.5 and 2012 models)

privdes access to contents browsing and searching

The API allows developers to browse and search contents located on the devices that have been discovered by the devicefinder object. In this current version of API, all the discovered provider devices are digital media server (DMS) devices. The developerscan identify the type of discovered devices.

The provider interface extends the device interface. The APIs of the device interface can be accessed by this interface.

Type Defination Example
ItemArray : Array of content items
typedef sequence<Item> ItemArray;
Interface CONSTANT/ATTRIBUTE/METHOD
MediaProviderType
const short DLNA_MEDIA_SERVER
readonly short type
MediaProviderBrowseItemsSuccessCallback void onsuccess(in ItemArray itemList, in unsigned short startIndex, in FolderItem folderItem, in boolean endOfItems, in MediaProvider provider)
MediaProviderBrowseItemsErrorCallback void onerror(in ServiceAPIError error, in MediaProvider requestedProvider)
MediaProviderSearchItemsSuccessCallback void onsucess(in ItemArray itemList, in unsigned short startIndex, in DOMString keyword, in boolean endOfItems, in MediaProvider provider)
MediaProviderSearchItemsErrorCallback void onerror(in ServiceAPIError error, in MediaProvider requestedProvider)
MediaProvider
FolderItem getRootFolder()
PendingOperation browseItems(in MediaProviderBrowseItemsSuccessCallback successCallback, in MediaProviderBrowseItemsErrorCallback errorCallback, in FolderItem parentFolderItem, in unsigned short startIndex, in unsigned short requestCount) raises(ServiceAPIError)
PendingOperation searchItems(in MediaProviderSearchItemsSuccessCallback successCallback, in MediaProviderSearchItemsErrorCallback errorCallback, in DOMString keyword, in unsigned short startIndex, in unsigned short requestCount)
MediaProviderType getMediaProviderType()