Media Indexer

The Media Indexer automatically stores and maintains information about all device audio and video media. This information is kept in the device's resident db8 JSON database. Using API calls provided with Palm's JavaScript Foundation libraries for accessing the db8 service (com.palm.db), 3rd party applications can read (but not write) media information organized into the following categories:

  • Albums
  • Album images
  • Artists
  • Audio files
  • Genres - For example: country, blues, reggae, etc. Each media file has a genre field and the Media Indexer keeps track of genre totals.
  • Images
  • Playlists - Organized lists of audio files.
  • Video files

Note: Accessing media data is granted only after the user has indicated your app has permission to do so.

Accessing Media Indexer Data

The Media Indexer keeps device media information in db8 database storage as JSON data objects. db8 is an addition to the webOS JavaScript Framework's current storage methods designed to meet the needs of robust, high-performance applications. Though not a database itself, it is a service (com.palm.db) available on the device bus that interfaces to an embedded database. Besides the usual serviceRequest calls, Javascript applications can also use API calls provided with the JavaScript Foundation libraries (Foundations.DB) to interface with the db8 service.

See Media Indexer in the "webOS Data Types" section for information about media data and how to access it using db8 service calls.