Next Song Provider
This class keeps tracks of and provides music to different music sources like on Demand or station etc
Constructors
Functions
Try to retrieve the next play for the given station. If one is retrieved, add it to the prepared plays and then return it. Else return null.
Try to convert the given audio file into a Play from the current music source. If successful, add it to the prepared plays array and return it. Else return null.
Return current active station from the station music source
Retrieve the on demand play list
Try to retrieve the 'next play' from the current music source. First look in the list of prepared plays and, failing that, request the next play from the current music source itself.
Try to convert an audio file into a play using the current music source
Switch to a station music source and assign the active station