StartListen() public method

Starts the listen.
public StartListen ( ) : void
return void
Exemplo n.º 1
0
        static void Main(string[] args)
        {
            RtspServer s = new RtspServer(8554);
            s.StartListen();

            // Wait for user to terminate programme
            Console.WriteLine("Press ENTER to exit");
            String dummy = Console.ReadLine();

            s.StopListen();
        }
Exemplo n.º 2
0
        //rtsp://127.0.0.1:8554

        private void startServer(List <Tuple <RtspServer.StreamType, int, string> > streams)
        {
            int    port     = 8554;
            string username = "******";      // or use NUL if there is no username
            string password = "******";  // or use NUL if there is no password

            if (s == null)
            {
                s = new RtspServer(streams, port, null, null);
            }

            s.StartListen();
        }
Exemplo n.º 3
0
        static void Main(string[] args)
        {
            _logger.Info("Starting");
            RtspServer monServeur = new RtspServer(8554);

            monServeur.StartListen();
            RTSPDispatcher.Instance.StartQueue();

            while (Console.ReadLine() != "q")
            {
            }

            monServeur.StopListen();
            RTSPDispatcher.Instance.StopQueue();
        }