Ejemplo n.º 1
0
        public static async Task Main()
        {
            Console.WriteLine($"Started: {DateTime.Now}");

            RtmpStreamContent Content = new RtmpStreamContent()
            {
                RtmpUri = Rtmp
            };

            NetStreamConfigurations configurations = new NetStreamConfigurations()
            {
                EnableSsl = true
            };

            RtmpConnectionRequest Request = new RtmpConnectionRequest(Content, configurations);


            RtmpClient client = new RtmpClient(Request);
            await client.ConnectAsync();

            await client.StreamAsync();


            Console.WriteLine($"Finished: {DateTime.Now}");

            Console.ReadKey();
        }