C# Class CgwMonitorManage.Tiandy.TiandyVideoMonitor

Inheritance: IVideoMonitor
Mostrar archivo Open project: eSDK/esdk_Cgw

Public Methods

Method Description
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

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

Private Methods

Method Description
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

Method Details

GetAllCameras() public method

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

GetRefreshStatus() public method

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

Load() public method

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

MakeIFrame() public method

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

RefreshMonitorCamera() public method

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

SetDataCallBackFunc() public method

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

SetMic() public method

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

SetSpeaker() public method

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

StartControlPtz() public method

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

StartReceiveVideo() public method

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

StopControlPtz() public method

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

StopReceiveVideo() public method

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

TiandyVideoMonitor() public method

public TiandyVideoMonitor ( ) : System
return System

Unload() public method

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