C# 클래스 CgwMonitorManage.Tiandy.TiandyVideoMonitor

상속: IVideoMonitor
파일 보기 프로젝트 열기: eSDK/esdk_Cgw

공개 메소드들

메소드 설명
GetAllCameras ( List &cameraList, List &groupList, List &nodeRelationListT ) : SmcErr

获取摄像头列表及分组信息

GetRefreshStatus ( SmcErr &refreshStatus ) : SmcErr

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

Load ( XmlElement monitorConfigElement ) : SmcErr

初始化天地伟业监控平台

MakeIFrame ( string cameraNo ) : SmcErr

重发I帧 2013-7-15,监控平台自动定时发I帧,默认是4S内,因此重发I帧作用不大,还有可能造成内存泄露

RefreshMonitorCamera ( ) : SmcErr

刷新监控摄像头列表

SetDataCallBackFunc ( DataCallBack dataCallBack, string sender ) : void

指定码流回调函数

SetMic ( string cameraNo, bool isOn ) : SmcErr

设置麦克风状态

SetSpeaker ( string cameraNo, bool isOn ) : SmcErr

设置扬声器状态(暂不支持)

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

开始云台控制,摄像头控制

StartReceiveVideo ( string cameraNo ) : SmcErr

启动摄像头预览

StopControlPtz ( string cameraNo, PtzCommandType ptzCommand ) : SmcErr

停止云台控制,摄像头控制

StopReceiveVideo ( string cameraNo ) : SmcErr

停止预览

TiandyVideoMonitor ( ) : System
Unload ( ) : SmcErr

注销天地伟业监控平台资源

비공개 메소드들

메소드 설명
ClearCamera ( ) : void

清除缓存数据

GetAllCamerasMethod ( ) : void

获取摄像头列表及分组信息

GetAllCamerasTimer ( object sender, System e ) : void

获取摄像头列表及分组信息

LoaderThread ( Object mediaServerIdObj ) : void

监控平台加载器,轮询加载,直到成功

RecursionCamera ( List resourceTree, TiandyCamera>.Dictionary tiandyCameraDictionary, Host>.Dictionary hostDictionary, MediaServer>.Dictionary mediaServerDictionary ) : void

递归天地伟业返回的设备树,获取所有通道(一个通道对应一个摄像头)、主机、流媒体(中间件)服务器

RecursionCameraGroup ( List customTree, List pathList, CameraGroup>.Dictionary groupDic, NodeRelation>.Dictionary nodeRelationDic, List nodeRelationListT ) : void

递归天地伟业返回的自定义设备列表,只获取分组节点(TypeId为1000)和通道(摄像头)节点(TypeId为5),舍弃其他节点(如主机,中间件服务器等)

TiandyRealDataCallbackFunc ( int playfd, int datatype, byte buf, uint size, int usr ) : void

码流回调处理,用于中转

monitorManageServiceGetCameraList_Elapsed ( object sender, System e ) : void

메소드 상세

GetAllCameras() 공개 메소드

获取摄像头列表及分组信息
public GetAllCameras ( List &cameraList, List &groupList, List &nodeRelationListT ) : SmcErr
cameraList List 摄像头列表
groupList List 组信息
nodeRelationListT List 分组关系
리턴 CgwMonitorManage.SmcError.SmcErr

GetRefreshStatus() 공개 메소드

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

Load() 공개 메소드

初始化天地伟业监控平台
public Load ( XmlElement monitorConfigElement ) : SmcErr
monitorConfigElement System.Xml.XmlElement 监控平台配置节点
리턴 CgwMonitorManage.SmcError.SmcErr

MakeIFrame() 공개 메소드

重发I帧 2013-7-15,监控平台自动定时发I帧,默认是4S内,因此重发I帧作用不大,还有可能造成内存泄露
public MakeIFrame ( string cameraNo ) : SmcErr
cameraNo string 摄像头编号
리턴 CgwMonitorManage.SmcError.SmcErr

RefreshMonitorCamera() 공개 메소드

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

SetDataCallBackFunc() 공개 메소드

指定码流回调函数
public SetDataCallBackFunc ( DataCallBack dataCallBack, string sender ) : void
dataCallBack DataCallBack
sender string
리턴 void

SetMic() 공개 메소드

设置麦克风状态
public SetMic ( string cameraNo, bool isOn ) : SmcErr
cameraNo string
isOn bool 麦克风是否开启
리턴 CgwMonitorManage.SmcError.SmcErr

SetSpeaker() 공개 메소드

设置扬声器状态(暂不支持)
public SetSpeaker ( string cameraNo, bool isOn ) : SmcErr
cameraNo string
isOn bool 扬声器是否开启
리턴 CgwMonitorManage.SmcError.SmcErr

StartControlPtz() 공개 메소드

开始云台控制,摄像头控制
public StartControlPtz ( string cameraNo, PtzCommandType ptzCommand, int param ) : SmcErr
cameraNo string 摄像头编号
ptzCommand PtzCommandType 命令类型
param int 命令参数(速度、倍数)
리턴 CgwMonitorManage.SmcError.SmcErr

StartReceiveVideo() 공개 메소드

启动摄像头预览
public StartReceiveVideo ( string cameraNo ) : SmcErr
cameraNo string 摄像头编号
리턴 CgwMonitorManage.SmcError.SmcErr

StopControlPtz() 공개 메소드

停止云台控制,摄像头控制
public StopControlPtz ( string cameraNo, PtzCommandType ptzCommand ) : SmcErr
cameraNo string 摄像头编号
ptzCommand PtzCommandType 命令类型
리턴 CgwMonitorManage.SmcError.SmcErr

StopReceiveVideo() 공개 메소드

停止预览
public StopReceiveVideo ( string cameraNo ) : SmcErr
cameraNo string 摄像头编号
리턴 CgwMonitorManage.SmcError.SmcErr

TiandyVideoMonitor() 공개 메소드

public TiandyVideoMonitor ( ) : System
리턴 System

Unload() 공개 메소드

注销天地伟业监控平台资源
public Unload ( ) : SmcErr
리턴 CgwMonitorManage.SmcError.SmcErr