MediaStore

class MediaStore()

CreateMediaStore()

GetAlbumArt();()
var ok = media.GetAlbumArt( img, result[1].id, "external" );
QueryAlbums();()
media.QueryAlbums("", "", "external");
QueryArtists();()
media.ueryArtist("", "", "external");
QueryMedia();()
media.QueryMedia("", "artist,album", "external");
SetOnAlbumsResult(callback);()
media.SetOnAlbumsResult(media_OnAlbumResult);

function media_OnAlbumResult(result){

    var item = result[0];
    /* item.id
     * item.artist
     * item.album
     * item.numSongs
     */
}
SetOnArtistsResult(callback);()
media.SetOnMediaResult(media_OnArtistResult);

function media_OnArtistResult(result){

    var item = result[0];
    /* item.id
     * item.artist
     * item.numAlbums
     * item.numTracks
     */
}
SetOnMediaResult(callback);()
media.SetOnMediaResult(media_OnMediaResult);

function media_OnMediaResult(result){

    var item = result[0];
    /* item.title
     * item.albumId
     * item.album
     * item.artistId
     * item.artist
     * item.duration
     * item.size
     * item.uri
     */
}

MediaStore.GetAlbumArt( img,id,options ) MediaStore.GetSongArt( img,id,options ) MediaStore.QueryAlbums( filter,sort,options ) MediaStore.QueryArtists( filter,sort,options ) MediaStore.QueryMedia( filter,sort,options ) MediaStore.SetOnAlbumsResult( callback ) MediaStore.SetOnArtistsResult( callback ) MediaStore.SetOnMediaResult( callback )