Allow access to media libraries for media sources
Methods
-
getAlbums
-
Return all albums
Parameters:
Name Type Description source
Object A media source as returned by qnx.mediasource.get() Returns:
All albums for the specified media source- Type
-
- Array
-
getAlbumSongs
-
Return all songs for an album
Parameters:
Name Type Description source
Object A media source as returned by qnx.mediasource.get() albumId
Number The ID of the album Returns:
All songs for the specified album for the specified media source- Type
-
- Array
-
getAllSongs
-
Return all songs
Parameters:
Name Type Description source
Object A media source as returned by qnx.mediasource.get() Returns:
All songs for the specified media source- Type
-
- Array
-
getArtistAlbums
-
Return all albums for an artist
Parameters:
Name Type Description source
Object A media source as returned by qnx.mediasource.get() artistId
Number The ID of the artist Returns:
All albums for the specified artist for the specified media source- Type
-
- Array
-
getArtists
-
Return all artists
Parameters:
Name Type Description source
Object A media source as returned by qnx.mediasource.get() Returns:
All artists for the specified media source- Type
-
- Array
-
getArtistSongs
-
Return all songs for an artist
Parameters:
Name Type Description source
Object A media source as returned by qnx.mediasource.get() artistId
Number The ID of the artist Returns:
All songs for the specified artist for the specified media source- Type
-
- Array
-
getFilePath
-
Parameters:
Name Type Description source
Object A media source as returned by qnx.mediasource.get() fid
Number The file ID Returns:
The file path for the specified fid for the specified media source- Type
-
- Array
-
getGenres
-
Return all genres
Parameters:
Name Type Description source
Object A media source as returned by qnx.mediasource.get() Returns:
All genres for the specified media source- Type
-
- Array
-
getGenreSongs
-
Return all songs for a genre
Parameters:
Name Type Description source
Object A media source as returned by qnx.mediasource.get() genreId
Number The ID of the genre Returns:
All songs for the specified genre for the specified media source- Type
-
- Array
-
getSong
-
Return a single song
Parameters:
Name Type Description source
Object A media source as returned by qnx.mediasource.get() fid
Number The fid of the song Returns:
A single song matching the provided fid for the specified media source, or null- Type
-
- Object
-
getTrackSession
-
Return all songs in the current track session
Parameters:
Name Type Description source
Object A media source as returned by qnx.mediasource.get() Returns:
All songs in the current track session- Type
-
- Array
-
getVideos
-
Return all videos
Parameters:
Name Type Description source
Object A media source as returned by qnx.mediasource.get() Returns:
All videos for the specified media source- Type
-
- Array
-
search
-
Search the database for matching artists, albums and songs
Parameters:
Name Type Description source
Object A media source as returned by qnx.mediasource.get() searchterm
String The term to search for Returns:
All search results for the specified search term for the specified media source- Type
-
- Array