danger.player
Interface AudioTrack



public interface AudioTrack

Get track metadata, as read from ID3 or similar tags, of the currently playing audio track. String methods will not return null, but will return empty string if a tag isn't present.


Method Summary
 boolean canBePlayed()
          Returns false if we have detected for some reason that the audio engine cannot play this file.
 String getAlbum()
          Return Album name of song.
 Bitmap getAlbumArt()
          Return a Bitmap containing the album art.
 String getArtist()
          Return Artist of song.
 String getComment()
          Return comment.
 String getComposer()
          Return composer.
 String getGenre()
          Return genre.
 String getGrouping()
          Return grouping.
 int getMillisecondLength()
          Return track length in milliseconds as stored in tags.
 String getSubtitle()
          Return SubTitle of song.
 String getTitle()
          Return Title of song.
 int getTrackCount()
          Return number of tracks. -1 if not available
 int getTrackNumber()
          Return track number. -1 if not available
 String getYear()
          Return year.
 boolean hasAlbumArt()
          Returns true if album art was detected on initial file scan.
 boolean hasMedia()
          Returns false if this track doesn't actually have a file backing it.
 boolean isCompilation()
          Return true if part of a compilation.
 boolean isPlaying()
          Returns true if this track is playing right now.
 

Method Detail

getTitle

String getTitle()
Return Title of song.


getSubtitle

String getSubtitle()
Return SubTitle of song.


getArtist

String getArtist()
Return Artist of song.


getAlbum

String getAlbum()
Return Album name of song.


getYear

String getYear()
Return year.


getComment

String getComment()
Return comment.


getComposer

String getComposer()
Return composer.


getGenre

String getGenre()
Return genre.


getGrouping

String getGrouping()
Return grouping.


getTrackNumber

int getTrackNumber()
Return track number. -1 if not available


getTrackCount

int getTrackCount()
Return number of tracks. -1 if not available


isCompilation

boolean isCompilation()
Return true if part of a compilation.


getMillisecondLength

int getMillisecondLength()
Return track length in milliseconds as stored in tags. Considered to be unreliable.


hasAlbumArt

boolean hasAlbumArt()
Returns true if album art was detected on initial file scan.


getAlbumArt

Bitmap getAlbumArt()
Return a Bitmap containing the album art.


isPlaying

boolean isPlaying()
Returns true if this track is playing right now.


hasMedia

boolean hasMedia()
Returns false if this track doesn't actually have a file backing it. It might, for instance, be mentioned in a playlist but not found on the disk.


canBePlayed

boolean canBePlayed()
Returns false if we have detected for some reason that the audio engine cannot play this file.