Example #1
0
 public LRtmp()
 {
     var types = Assembly.GetExecutingAssembly().GetTypes().Where(x => x.IsClass && x.Namespace.StartsWith("com")).ToList();
     RtmpSharp.IO.SerializationContext serialContext = new RtmpSharp.IO.SerializationContext(types);
     mainClient = new RtmpSharp.Net.RtmpClient(new Uri("rtmps://prod.na1.lol.riotgames.com:2099"), serialContext,RtmpSharp.IO.ObjectEncoding.Amf3);
     //mainClient = new RtmpSharp.Net.RtmpClient(new Uri("rtmps://127.0.0.1:2099"), serialContext, RtmpSharp.IO.ObjectEncoding.Amf3);
     mainClient.MessageReceived += RecieveMessage;
 }
Example #2
0
        public LRtmp()
        {
            var types = Assembly.GetExecutingAssembly().GetTypes().Where(x => x.IsClass && x.Namespace.StartsWith("com")).ToList();

            RtmpSharp.IO.SerializationContext serialContext = new RtmpSharp.IO.SerializationContext(types);
            mainClient = new RtmpSharp.Net.RtmpClient(new Uri("rtmps://prod.na1.lol.riotgames.com:2099"), serialContext, RtmpSharp.IO.ObjectEncoding.Amf3);
            //mainClient = new RtmpSharp.Net.RtmpClient(new Uri("rtmps://127.0.0.1:2099"), serialContext, RtmpSharp.IO.ObjectEncoding.Amf3);
            mainClient.MessageReceived += RecieveMessage;
        }