Skip to content

PoerOne/WUVA-Android

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 

Repository files navigation

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

About

Radio app for WUVA 92.7

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%