public void OnStateChanged(PlayerState state)
        {
            switch (state)
            {
            case PlayerState.Paused:
                rtpClient?.Pause();
                break;

            case PlayerState.Playing:
                rtpClient?.Play();
                break;
            }
        }
Exemple #2
0
        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();
 }