public void OnStateChanged(PlayerState state) { switch (state) { case PlayerState.Paused: rtpClient?.Pause(); break; case PlayerState.Playing: rtpClient?.Play(); break; } }
public void OnStateChanged(PlayerState state) { if (rtspClient == null || rtspClient.IsStarted == false) { return; } switch (state) { case PlayerState.Paused: rtspClient.Pause(); break; case PlayerState.Playing: rtspClient.Play(); break; } }
public void Pause() { Logger.Info(""); rtspClient.Pause(); }