Beispiel #1
0
        public void Pause()
        {
            RtspRequest pauseMessage = new RtspRequestPause
            {
                RtspUri = new Uri(url),
                Session = session
            };

            rtspListener.SendMessage(pauseMessage);
        }
Beispiel #2
0
        private void RTSP_ProcessPauseRequest(RtspRequestPause message, RtspListener listener)
        {
            if (message.Session == _videoSessionId /* OR AUDIO SESSION ID */)
            {
                OnStop?.Invoke(Id);

                // found the session
                Play = false; // COULD HAVE PLAY/PAUSE FOR VIDEO AND AUDIO
            }


            // ToDo - only send back the OK response if the Session in the RTSP message was found
            Rtsp.Messages.RtspResponse pause_response = message.CreateResponse(_logger);
            listener.SendMessage(pause_response);
        }
Beispiel #3
0
        public void Pause()
        {
            if (rtsp_client == null)
            {
                return;
            }

            // Send PAUSE
            var pause_message = new RtspRequestPause {
                RtspUri = new Uri(Url),
                Session = RtspSession
            };

            if (auth_type != null)
            {
                AddAuthorization(pause_message, Username, Password, auth_type, realm, nonce, Url);
            }

            rtsp_client.SendMessage(pause_message);
        }