public bool Next (bool restart, bool changeImmediately)
{
/*
* TODO: It should be technically possible to handle changeImmediately=False
* correctly here, but the current implementation is quite hostile.
* For the moment, just SetNextTrack (null), and go on to OpenPlay if
* the engine isn't currently playing.
*/
if (!changeImmediately) {
ServiceManager.PlayerEngine.SetNextTrack ((SafeUri)null);
if (ServiceManager.PlayerEngine.IsPlaying ()) {
return true;
}
}
RadioTrackInfo radio_track = ServiceManager.PlaybackController.CurrentTrack as RadioTrackInfo;
if (radio_track != null && radio_track.PlayNextStream ()) {
return true;
} else {
return false;
}
}