Cgw.Channel.MonitorChannelRelationManager.SendVideoData C# (CSharp) Method

SendVideoData() private method

发送视频码流
private SendVideoData ( string cameraNo, MediaData videoData, string sender ) : void
cameraNo string
videoData MediaData
sender string
return void
        private void SendVideoData(string cameraNo, MediaData videoData, string sender)
        {
            NLogEx.LoggerEx logEx = new NLogEx.LoggerEx(log);

            try
            {
                Dictionary<string, List<string>> temp = new Dictionary<string, List<string>>(this.cameraVideoRelationDic);
                if (null == temp)
                {
                    logEx.Trace("SendVideoData temp is null.");
                    return;
                }

                if (!temp.ContainsKey(cameraNo))
                {
                    logEx.Trace("SendVideoData can't find cameraNo={0}.", cameraNo);
                    return;
                }

                // 分发视频码流
                foreach (string item in temp[cameraNo])
                {
                    this.monitorChannelManager.SendMediaData(item, videoData);
                }
            }
            catch (Exception ex)
            {
                // 日志
                logEx.Error(ex, "SendVideoData: Enert Write Lock Exception.");
            }
        }