static void Main(string[] args)
 {
     // ログインAPI その1(チケット取得)
     const string mail = "*****@*****.**";
     const string password = "******" +
         "HyrTDu0pP8yj5evqZpWPhFJcZnXELsE/qE2xwNNqcC+BtPnBOHxRjFb9bru/BQrvyEiWQ6ADJOdw58BI" +
         "yt4hdGZp4oY=";
     NicoLiveBroadcast broadcast = new NicoLiveBroadcast("lv6225686", mail, password, RSAKey.SecretKey);
     //			broadcast.AddObserver(Program.callback);
 }
        static void Main(string[] args)
        {
            CookieCollection cookies;
            using (FirefoxCookie cookieGetter = new FirefoxCookie("X:\\Firefox\\Profiles\\y0bgcsvb.default\\cookies.sqlite"))
            {
                cookies = cookieGetter.GetCookie();
            }

            broadcast = new NicoLiveBroadcast("lv6359296", cookies);
            broadcast.CommentReceivedEvent += new NicoLiveBroadcast.CommentReceivedEventHandler(callback);
            broadcast.Start(1);
        }
Exemple #3
0
        private void method()
        {
            string[] bufs = textBox1.Text.Split('/');
            string bouadcastId = bufs[bufs.Length - 1];

            // リストクリア
            Invoke(new MethodInvoker(delegate()
            {
                listView1.Items.Clear();
            }));

            // 放送初期化
            broadcast = new NicoLiveBroadcast(bouadcastId, mail, password, RSAKey.SecretKey);
            broadcast.CommentReceivedEvent += new NicoLiveBroadcast.CommentReceivedEventHandler(callback);
            //			broadcast.AddObserver(Program.callback);
            broadcast.Start();
        }