private bool _Play(int startTime, int endTime) { try { if (!IsPlaying) { _programExecutor.Play(startTime, endTime); } else if (IsPaused) { // Paused, must be resumed. _programExecutor.Resume(); } return(true); } catch (Exception ex) { Server.Logging.Error(ex); return(false); } }
protected override bool _OnPlay(TimeSpan startTime, TimeSpan endTime) { _programExecutor.Play(startTime, endTime); return(true); }