C# Class Cgw.MonitorManageAdapter.CgwMonitorManageAdapter

显示文件 Open project: eSDK/esdk_Cgw Class Usage Examples

Public Methods

Method Description
Connect ( string monitorPwd ) : SmcErr

连接监控平台管理服务

Disconnect ( ) : SmcErr

断开监控平台管理服务

GetAllCameras ( Cgw platformType, Common pageParam, List &cameraList, List &groupList, List &nodeRelationList, PagesInfo &pageInfo, Cgw licenseInfo = null ) : SmcErr

获取监控设备列表

GetRefreshStatus ( SmcError &refreshStatus ) : SmcErr

获取监控摄像头列表刷新状态,返回结果为0是表示刷新完毕,为1是刷新操作中。当查询刷新状态为0时,可调用获取监控摄像头列表接口,获取刷新后监控摄像头列表

Instance ( ) : CgwMonitorManageAdapter

单实例

KeepAliver ( ) : SmcErr

保持连接

MakeIFrame ( string cameraNo ) : SmcErr

重发I帧(暂不支持)

RefreshMonitorCamera ( ) : SmcErr

刷新监控摄像头列表

SetDataCallBackFunc ( Common dataCallBack ) : void

指定码流回调函数

SetDataExceptionCallBackFunc ( Common dataExceptionCallBack ) : void

指定码流数据异常回调函数

SetMic ( string cameraNo, bool isOn ) : SmcErr

设置麦克风

SetSpeaker ( string cameraNo, bool isOn ) : SmcErr

设置扬声器

StartControlPtz ( string cameraNo, Common ptzCommand, int param ) : SmcErr

开始摄像头PTZ操作

StartReceiveVideoByPipe ( string cameraNo, string &pipeName ) : SmcErr

预览摄像头视频,使用命名管道方式接收数据

StopControlPtz ( string cameraNo, Common ptzCommandType ) : SmcErr

关闭PTZ操作

StopReceiveVideoByPipe ( string cameraNo ) : SmcErr

停止预览摄像头视频,并清理命名管道

Private Methods

Method Description
CgwMonitorManageAdapter ( ) : System

私有构造函数

SetCgwErrNo ( CgwMonitorManageServiceReference monitorSmcErr ) : SmcErr

设置返回smc的错误码

Method Details

Connect() public method

连接监控平台管理服务
public Connect ( string monitorPwd ) : SmcErr
monitorPwd string 加密后的密码字符串
return Cgw.SmcError.SmcErr

Disconnect() public method

断开监控平台管理服务
public Disconnect ( ) : SmcErr
return Cgw.SmcError.SmcErr

GetAllCameras() public method

获取监控设备列表
public GetAllCameras ( Cgw platformType, Common pageParam, List &cameraList, List &groupList, List &nodeRelationList, PagesInfo &pageInfo, Cgw licenseInfo = null ) : SmcErr
platformType Cgw
pageParam Common
cameraList List
groupList List
nodeRelationList List 所属分组关系信息
pageInfo Cgw.Common.PagesInfo
licenseInfo Cgw
return Cgw.SmcError.SmcErr

GetRefreshStatus() public method

获取监控摄像头列表刷新状态,返回结果为0是表示刷新完毕,为1是刷新操作中。当查询刷新状态为0时,可调用获取监控摄像头列表接口,获取刷新后监控摄像头列表
public GetRefreshStatus ( SmcError &refreshStatus ) : SmcErr
refreshStatus SmcError 返回值,刷新状态
return Cgw.SmcError.SmcErr

Instance() public static method

单实例
public static Instance ( ) : CgwMonitorManageAdapter
return CgwMonitorManageAdapter

KeepAliver() public method

保持连接
public KeepAliver ( ) : SmcErr
return Cgw.SmcError.SmcErr

MakeIFrame() public method

重发I帧(暂不支持)
public MakeIFrame ( string cameraNo ) : SmcErr
cameraNo string 摄像头编号
return Cgw.SmcError.SmcErr

RefreshMonitorCamera() public method

刷新监控摄像头列表
public RefreshMonitorCamera ( ) : SmcErr
return Cgw.SmcError.SmcErr

SetDataCallBackFunc() public method

指定码流回调函数
public SetDataCallBackFunc ( Common dataCallBack ) : void
dataCallBack Common 回调函数
return void

SetDataExceptionCallBackFunc() public method

指定码流数据异常回调函数
public SetDataExceptionCallBackFunc ( Common dataExceptionCallBack ) : void
dataExceptionCallBack Common 回调函数
return void

SetMic() public method

设置麦克风
public SetMic ( string cameraNo, bool isOn ) : SmcErr
cameraNo string
isOn bool
return Cgw.SmcError.SmcErr

SetSpeaker() public method

设置扬声器
public SetSpeaker ( string cameraNo, bool isOn ) : SmcErr
cameraNo string
isOn bool
return Cgw.SmcError.SmcErr

StartControlPtz() public method

开始摄像头PTZ操作
public StartControlPtz ( string cameraNo, Common ptzCommand, int param ) : SmcErr
cameraNo string 摄像头NO
ptzCommand Common 操作类型
param int 命令参数
return Cgw.SmcError.SmcErr

StartReceiveVideoByPipe() public method

预览摄像头视频,使用命名管道方式接收数据
public StartReceiveVideoByPipe ( string cameraNo, string &pipeName ) : SmcErr
cameraNo string
pipeName string
return Cgw.SmcError.SmcErr

StopControlPtz() public method

关闭PTZ操作
public StopControlPtz ( string cameraNo, Common ptzCommandType ) : SmcErr
cameraNo string
ptzCommandType Common
return Cgw.SmcError.SmcErr

StopReceiveVideoByPipe() public method

停止预览摄像头视频,并清理命名管道
public StopReceiveVideoByPipe ( string cameraNo ) : SmcErr
cameraNo string
return Cgw.SmcError.SmcErr