@Override public void playPrepared() { if (Tools.isNetworkAvailable(context)) { try { reset(); setDataSource(getSourceUrl()); setAudioStreamType(AudioManager.STREAM_MUSIC); prepareAsync(); } catch (IOException e) { e.printStackTrace(); } } }
@Override public void playNext() { if (Tools.isNetworkAvailable(context)) { playPrepared(); } }