Cgw.Service.CgwService.SwitchChannelVideoSource C# (CSharp) Method

SwitchChannelVideoSource() public method

设置监控通道视频源
public SwitchChannelVideoSource ( string channelLabel, string cameraNo ) : SmcErr
channelLabel string 通道label
cameraNo string 摄像头NO
return Cgw.SmcError.SmcErr
        public SmcErr SwitchChannelVideoSource(string channelLabel, string cameraNo)
        {
            SmcErr err = new CgwError();
            NLogEx.LoggerEx logEx = new NLogEx.LoggerEx(log);
            err = CheckSession();
            if (err.IsSuccess())
            {
                err = MonitorChannelBll.Instance().SwitchChannelVideoSource(channelLabel, cameraNo);

            }
            if (err.IsSuccess())
            {
                logEx.Info("SMC SwitchChannelVideoSource  Successful,Current SMC IP is : {0}", CgwConst.SmcIp);
            }
            else
            {
                logEx.Error("SMC SwitchChannelVideoSource failed,ErrNo :{0}", err.ErrNo);
            }
            return err;
        }