C# 클래스 Cgw.MonitorManageAdapter.CgwMonitorManageAdapter

파일 보기 프로젝트 열기: eSDK/esdk_Cgw 1 사용 예제들

공개 메소드들

메소드 설명
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

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

비공개 메소드들

메소드 설명
CgwMonitorManageAdapter ( ) : System

私有构造函数

SetCgwErrNo ( CgwMonitorManageServiceReference monitorSmcErr ) : SmcErr

设置返回smc的错误码

메소드 상세

Connect() 공개 메소드

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

Disconnect() 공개 메소드

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

GetAllCameras() 공개 메소드

获取监控设备列表
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
리턴 Cgw.SmcError.SmcErr

GetRefreshStatus() 공개 메소드

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

Instance() 공개 정적인 메소드

单实例
public static Instance ( ) : CgwMonitorManageAdapter
리턴 CgwMonitorManageAdapter

KeepAliver() 공개 메소드

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

MakeIFrame() 공개 메소드

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

RefreshMonitorCamera() 공개 메소드

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

SetDataCallBackFunc() 공개 메소드

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

SetDataExceptionCallBackFunc() 공개 메소드

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

SetMic() 공개 메소드

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

SetSpeaker() 공개 메소드

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

StartControlPtz() 공개 메소드

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

StartReceiveVideoByPipe() 공개 메소드

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

StopControlPtz() 공개 메소드

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

StopReceiveVideoByPipe() 공개 메소드

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