/// <summary>
        /// 请求弹幕服务器回调
        /// </summary>
        /// <param name="responses"></param>
        private void danmakuListener(List <string> responses)
        {
            foreach (string response in responses)
            {
                //log("Receive Response:" + response);
                if (!response.Contains("chatmsg"))
                {
                    continue;
                }

                //解析弹幕
                Danmaku danmaku = ResponseParser.parseDanmaku(response);
                if (danmaku == null)
                {
                    continue;
                }
                OnDanmakuEvent(danmaku);
            }
        }
Beispiel #2
0
        /// <summary>
        /// 请求弹幕服务器回调
        /// </summary>
        /// <param name="responses"></param>
        private void danmakuListener(List <string> responses)
        {
            foreach (string response in responses)
            {
                //type@=uenter/rid@=783827/uid@=20887267/nn@=mt德芙要吃吗/level@=9/ic@=avatar@Sdefault@S12/rni@=0/el@=/sahf@=0/wgei@=0/
                log.InfoFormat("Receive Response:" + response);
                if (!response.Contains("chatmsg"))
                {
                    continue;
                }

                //解析弹幕
                Danmaku danmaku = ResponseParser.parseDanmaku(response);
                if (danmaku == null)
                {
                    continue;
                }
                OnDanmakuEvent(danmaku);
            }
        }