예제 #1
0
파일: LRtmp.cs 프로젝트: ahageali/lclient
 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;
 }
예제 #2
0
파일: LRtmp.cs 프로젝트: ahageali/lclient
        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;
        }