Exemplo n.º 1
0
        //rtsp://127.0.0.1:8554

        private void startServer(string a_streamsXml)
        {
            //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 = RtmpClient.createInstance(a_streamsXml, "rtmp://127.0.0.1:1935/live");
            }
        }
Exemplo n.º 2
0
        public static RtmpClient createInstance(string a_streamsXml, string a_url)
        {
            RtmpClient l_instance = null;

            try
            {
                do
                {
                    l_instance = new RtmpClient();

                    l_instance.m_handler = Connect(a_streamsXml, a_url);
                } while (false);
            }
            catch (Exception)
            {
            }

            return(l_instance);
        }