prepare Stations
fun prepareStations(stations: List<Station>, listener: CachePreparedListener? = null)
Content copied to clipboard
Tell the player that the given list of stations are expected to be imminently streamed, so that it can try to perform network operations ahead of time.
The player, in general, does all networking it can to prepare for playback in any station. However, if you find that switching stations is taking too much time, then this call may reduce that time.
This method runs asynchronously, so the listener callback is provided for notification when it is complete.
Parameters
stations
the list of stations to prepare for playback
listener
an object that will receive notification when playback preparation is complete