C# Class CgwMonitorManage.VideoMonitor.VideoMonitorManage

ファイルを表示 Open project: eSDK/esdk_Cgw Class Usage Examples

Public Methods

Method Description
GetAllCameras ( PagesParam pageparam, List &cameraList, List &groupList, List &nodeRelationList, System.PageInfo &pageinfo, PlatformLicenseInfo licenseInfo = null ) : SmcErr

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

GetRefreshStatus ( SmcErr &refreshStatus ) : SmcErr

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

Instance ( ) : VideoMonitorManage

单例模式,获取监控平台管理实例

Load ( ) : SmcErr

初始化监控平台

MakeIFrame ( string cameraNo ) : SmcErr

重发关键帧

RefreshMonitorCamera ( ) : SmcErr

刷新监控摄像头列表

SetDataCallBackFunc ( DataCallBack dataCallBack ) : void

指定码流回调函数

SetMic ( string cameraNo, bool isOn ) : SmcErr

设置摄像头麦克风状态

SetSpeaker ( string cameraNo, bool isOn ) : SmcErr

设置摄像头扬声器状态

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

PTZ(Pan/Tilt/Zoom)控制,该接口需要在预览模式下使用

StartReceiveVideo ( string cameraNo ) : SmcErr

启动摄像头预览

StopControlPtz ( string cameraNo, PtzCommandType ptzCommandType ) : SmcErr

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

StopReceiveVideo ( string cameraNo ) : SmcErr

停止预览

Unload ( ) : SmcErr

注销监控平台资源

Private Methods

Method Description
CreateMonitor ( string monitorId, string className, IVideoMonitor &videoMonitor ) : SmcErr

创建监控平台实例

DataCallBackFunc ( string cameraNo, MediaData mediaData, string monitorId ) : void

向下注册的码流回调函数

DecoderCameraNo ( string encodedCameraNo, string &cameraNo, IVideoMonitor &videoMonitor ) : SmcErr

解码摄像头编号

EncodeNo ( string No, string monitorId ) : string

对摄像头编号及组编号加上监控平台标记,防止不同监控平台间,编号重复

GetMonitorConfig ( XmlElement monitorElement, string &monitorId, string &className ) : SmcErr

获取监控平台配置

VideoMonitorManage ( ) : System

单例模式,构造函数设置成private

Method Details

GetAllCameras() public method

获取摄像头列表及分组信息
public GetAllCameras ( PagesParam pageparam, List &cameraList, List &groupList, List &nodeRelationList, System.PageInfo &pageinfo, PlatformLicenseInfo licenseInfo = null ) : SmcErr
pageparam CgwMonitorManage.Common.PagesParam
cameraList List 摄像头列表
groupList List 组信息
nodeRelationList List 分组关系
pageinfo System.PageInfo
licenseInfo CgwMonitorManage.Common.PlatformLicenseInfo
return CgwMonitorManage.SmcError.SmcErr

GetRefreshStatus() public method

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

Instance() public static method

单例模式,获取监控平台管理实例
public static Instance ( ) : VideoMonitorManage
return VideoMonitorManage

Load() public method

初始化监控平台
public Load ( ) : SmcErr
return CgwMonitorManage.SmcError.SmcErr

MakeIFrame() public method

重发关键帧
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 ) : void
dataCallBack DataCallBack 回调函数
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

PTZ(Pan/Tilt/Zoom)控制,该接口需要在预览模式下使用
public StartControlPtz ( string cameraNo, PtzCommandType ptzCommandType, int param ) : SmcErr
cameraNo string 摄像头编号
ptzCommandType 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 ptzCommandType ) : SmcErr
cameraNo string 摄像头编号
ptzCommandType PtzCommandType 命令类型
return CgwMonitorManage.SmcError.SmcErr

StopReceiveVideo() public method

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

Unload() public method

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