Skip to content

Latest commit

 

History

History
69 lines (50 loc) · 2.89 KB

README.md

File metadata and controls

69 lines (50 loc) · 2.89 KB

WUVA Radio App

Website: Live Radio and Song History

Triton Digital

SDK Reference PDF

SDK Class Documentation

Permissions (from SDK Reference PDF):

Permission Player Ads
INTERNET Y Y
ACCESS_NETWORK_STATE Y Y
WAKE_LOCK Y N

Important Methods:

Retrieving metadata from streams

<Activity> implements MediaPlayer.OnCuePointReceivedListener {

    /**
     * Used to retrieve metadata from stream
     * cue_title = the name of the track
     * track_artist_name = name of the artist
     */
    @Override
    public void onCuePointReceived(MediaPlayer player, Bundle cuePoint) {
        ...
    }

}

Important Files from the SDK Sample:

  • StationPlayerActivity.java
  • TritonPlayerActivity.java

Cover Art Archive

API reference

Used to get album art for tracks playing on the live stream

Steps:

  1. Get the cue_title and track_artist_name from the Triton Station Player
  2. Use cue_title and track_artist_name to query MusicBrainz Search API for the 36 character MBID (info)
  3. Use the id to construct an image url based on the the Cover Art Archive API
  4. Load and display the image with Picasso
    • If no image exists, Picasso will generate an error and a placeholder image should be displayed