Cgw.External.GatewayExternal.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.Trace("SwitchChannelVideoSource Successful");
            }
            else
            {
                logEx.Error("SwitchChannelVideoSource failed,ErrNo :{0}", err.ErrNo);
            }
            return err;
        }