OpenSDK  V4.2.0
| 类型定义 | 枚举
OpenNetStreamDefine.h 文件参考

开放SDK数据结构定义 更多...

浏览源代码.

struct  _STREAM_TIME
 
struct  _NetStreamCallBackMessage
 

类型定义

typedef int OPENSDK_RESULT
 opensdk返回值,0表示成功,非0表示失败 更多...
 
typedef struct _STREAM_TIME STREAM_TIME
 
typedef struct _STREAM_TIMELP_STREAM_TIME
 
typedef struct _NetStreamCallBackMessage NSCBMsg
 
typedef struct _NetStreamCallBackMessageLP_NSCBMsg
 
typedef enum _AlarmNotifyType AlarmNotifyType
 

枚举

enum  MessageType {
  INS_PLAY_EXCEPTION = 0, INS_PLAY_RECONNECT = 1, INS_PLAY_RECONNECT_EXCEPTION = 2, INS_PLAY_START = 3,
  INS_PLAY_STOP = 4, INS_PLAY_ARCHIVE_END = 5, INS_VOICETALK_START = 16, INS_VOICETALK_STOP = 17,
  INS_VOICETALK_EXCEPTION = 18, INS_PTZ_EXCEPTION = 19, INS_RECORD_FILE = 20, INS_RECORD_SEARCH_END = 21,
  INS_RECORD_SEARCH_FAILED = 22, INS_DEFENSE_SUCCESS = 23, INS_DEFENSE_FAILED = 24, INS_PLAY_ARCHIVE_EXCEPTION = 28,
  INS_PTZCTRL_SUCCESS = 46, INS_PTZCTRL_FAILED = 47
}
 消息类型定义 更多...
 
enum  AlarmType {
  ALARM_TYPE_ALL = -1, BODY_SENSOR_EVENT = 10000, EMERGENCY_BUTTON_EVENT = 10001, MOTION_DETECT_ALARM = 10002,
  BABY_CRY_ALARM = 10003, MAGNETIC_ALARM = 10004, SMOKE_DETECTOR_ALARM = 10005, COMBUSTIBLE_GAS_ALARM = 10006,
  FLOOD_IN_ALARM = 10008, EMERGENCY_BUTTON_ALARM = 10009, BODY_SENSOR_ALARM = 10010, SHELTER_ALARM = 10011,
  VIDEO_LOSS_ALARM = 10012, LINE_DETECTION_ALARM = 10013, FIELD_DETECTION_ALARM = 10014, FACE_DETECTION_ALARM = 10015,
  DOOR_BELL_ALARM = 10016, DEVOFFLINE_ALARM = 10017, CURTAIN_ALARM = 10018, MOVE_MAGNETOMETER_ALARM = 10019,
  SCENE_CHANGE_DETECTION_ALARM = 10020, DEFOCUS_ALARM = 10021, AUDIO_EXCEPTION_ALARM = 10022, LEFT_DETECTION_ALARM = 10023,
  TAKE_DETECTION_ALARM = 10024, PARKING_DETECTION_ALARM = 10025, HIGH_DENSITY_DETECTION_ALARM = 10026, LOITER_DETECTION_ALARM = 10027,
  RUN_DETECTION_ALARM = 10028, ENTER_AREA_DETECTION_ALARM = 10029, EXIT_AREA_DETECTION_ALARM = 10030, MAG_GIM_ALARM = 10031,
  UNDER_VOLTAGE_ALARM = 10032, INTRUSION_ALARM = 10033, IO_00_ALARM = 10100, IO_01_ALARM = 10101,
  IO_02_ALARM = 10102, IO_03_ALARM = 10103, IO_04_ALARM = 10104, IO_05_ALARM = 10105,
  IO_06_ALARM = 10106, IO_07_ALARM = 10107, IO_08_ALARM = 10108, IO_09_ALARM = 10109,
  IO_10_ALARM = 10110, IO_11_ALARM = 10111, IO_12_ALARM = 10112, IO_13_ALARM = 10113,
  IO_14_ALARM = 10114, IO_15_ALARM = 10115, IO_16_ALARM = 10116
}
 开放SDK告警类型定义 更多...
 
enum  _AlarmNotifyType { ALARM_NOTIFY_CONNECT_EXCEPTION = 100, ALARM_NOTIFY_RECONNECT_SUCCESS, ALARM_NOTIFY_RECONNECT_FAILED }
 
enum  PTZCommand {
  UP, DOWN, LEFT, RIGHT,
  UPLEFT, DOWNLEFT, UPRIGHT, DOWNRIGHT,
  ZOOMIN, ZOOMOUT, FOCUSNEAR, FOCUSFAR,
  IRISSTARTUP, IRISSTOPDOWN, LIGHT, WIPER,
  AUTO
}
 云台控制命令 更多...
 
enum  PTZAction { START, STOP }
 云台操作命令 一般情况下,鼠标按下代表开始,鼠标松开代表停止 更多...
 
enum  DefenceType {
  PIR, ATHOME, OUTDOOR, BABYCRY,
  MOTIONDETECT, GLOBAL
}
 布撤防告警类型 更多...
 
enum  DefenceStatus { UN_DEFENCE, DEFENCE, UN_SUPPORT, FORCE_DEFENCE }
 布撤防状态 更多...
 
enum  DefenceActor { D, V, I }
 
enum  DataType { NET_DVR_SYSHEAD = 1, NET_DVR_STREAMDATA = 2, NET_DVR_RECV_END = 3 }
 音视频流数据类型 更多...
 
enum  LoginParamKey {
  LOGIN_AREAID = 1, LOGIN_VER = 2, LOGIN_AREADOMAIN = 3, LOGIN_TOKEN_EXPIRETIME = 4,
  LOGIN_ACCESS_TOKEN = 5
}
 登录相关参数类型 更多...
 
enum  ConfigKey { CONFIG_DATA_UTF8 = 1, CONFIG_OPEN_STREAMTRANS = 2, CONFIG_CLOSE_P2P = 3, CONFIG_LOG_LEVEL = 4 }
 配置类型 更多...
 
enum  EZOPENSDK_LogLevel { EZOPENSDK_ERROR = 5, EZOPENSDK_INFO = 3 }
 

详细描述

开放SDK数据结构定义

作者
panlong, peter
日期
2014/12/15
注解
history:
V0.0.1 2014/12/15 peter 增加头文件注释

类型定义说明

typedef struct _STREAM_TIME * LP_STREAM_TIME

opensdk返回值,0表示成功,非0表示失败

typedef struct _STREAM_TIME STREAM_TIME

枚举类型说明

枚举值
ALARM_NOTIFY_CONNECT_EXCEPTION 

SDK同萤石平台连接异常

ALARM_NOTIFY_RECONNECT_SUCCESS 

重连成功

ALARM_NOTIFY_RECONNECT_FAILED 

重连失败

enum AlarmType

开放SDK告警类型定义

枚举值
ALARM_TYPE_ALL 

全部

BODY_SENSOR_EVENT 

人体感应事件

EMERGENCY_BUTTON_EVENT 

紧急遥控按钮事件

MOTION_DETECT_ALARM 

移动侦测告警

BABY_CRY_ALARM 

婴儿啼哭告警

MAGNETIC_ALARM 

门磁告警

SMOKE_DETECTOR_ALARM 

烟感告警

COMBUSTIBLE_GAS_ALARM 

可燃气体告警

FLOOD_IN_ALARM 

水浸告警

EMERGENCY_BUTTON_ALARM 

紧急按钮告警

BODY_SENSOR_ALARM 

人体感应告警

SHELTER_ALARM 

遮挡告警

VIDEO_LOSS_ALARM 

视频丢失

LINE_DETECTION_ALARM 

越界侦测

FIELD_DETECTION_ALARM 

区域入侵

FACE_DETECTION_ALARM 

人脸检测事件

DOOR_BELL_ALARM 

智能门铃告警

DEVOFFLINE_ALARM 

摄像机失去关联告警

CURTAIN_ALARM 

幕帘告警

MOVE_MAGNETOMETER_ALARM 

单体门磁告警

SCENE_CHANGE_DETECTION_ALARM 

场景变更侦测

DEFOCUS_ALARM 

虚焦侦测

AUDIO_EXCEPTION_ALARM 

音频异常侦测

LEFT_DETECTION_ALARM 

物品遗留侦测

TAKE_DETECTION_ALARM 

物品拿取侦测

PARKING_DETECTION_ALARM 

非法停车侦测

HIGH_DENSITY_DETECTION_ALARM 

人员聚集侦测

LOITER_DETECTION_ALARM 

徘徊检测侦测

RUN_DETECTION_ALARM 

快速移动侦测

ENTER_AREA_DETECTION_ALARM 

进入区域侦测

EXIT_AREA_DETECTION_ALARM 

离开区域侦测

MAG_GIM_ALARM 

磁干扰告警

UNDER_VOLTAGE_ALARM 

电池欠压告警

INTRUSION_ALARM 

闯入告警

IO_00_ALARM 

IO告警

IO_01_ALARM 

IO-1告警

IO_02_ALARM 

IO-2告警

IO_03_ALARM 

IO-3告警

IO_04_ALARM 

IO-4告警

IO_05_ALARM 

IO-5告警

IO_06_ALARM 

IO-6告警

IO_07_ALARM 

IO-7告警

IO_08_ALARM 

IO-8告警

IO_09_ALARM 

IO-9告警

IO_10_ALARM 

IO-10告警

IO_11_ALARM 

IO-11告警

IO_12_ALARM 

IO-12告警

IO_13_ALARM 

IO-13告警

IO_14_ALARM 

IO-14告警

IO_15_ALARM 

IO-15告警

IO_16_ALARM 

IO-16告警

enum ConfigKey

配置类型

枚举值
CONFIG_DATA_UTF8 

数据输出使用UTF8

CONFIG_OPEN_STREAMTRANS 

码流数据输出经过转封装处理, 用于录像存储

CONFIG_CLOSE_P2P 

P2P开关, 用于关闭P2P.

CONFIG_LOG_LEVEL 

配置日志等级,参见 #OpenSDK_LogLevel

enum DataType

音视频流数据类型

枚举值
NET_DVR_SYSHEAD 

流头

NET_DVR_STREAMDATA 

流数据

NET_DVR_RECV_END 

结束标记

枚举值

设备

视频通道

IO通道

布撤防状态

枚举值
UN_DEFENCE 

撤防

DEFENCE 

布防

UN_SUPPORT 

不支持

FORCE_DEFENCE 

强制布防,A1设备

布撤防告警类型

枚举值
PIR 

红外

ATHOME 

在家,A1设备

OUTDOOR 

外出

BABYCRY 

婴儿啼哭

MOTIONDETECT 

移动侦测

GLOBAL 

全部

枚举值
EZOPENSDK_ERROR 
EZOPENSDK_INFO 

登录相关参数类型

枚举值
LOGIN_AREAID 

区域号, 目前只有海外使用

LOGIN_VER 

登录页面版本信息

LOGIN_AREADOMAIN 

登录后,重定向的域名

LOGIN_TOKEN_EXPIRETIME 

登录后,Token失效时间

LOGIN_ACCESS_TOKEN 

登录后,获取AccessToken

消息类型定义

枚举值
INS_PLAY_EXCEPTION 

播放异常,通常是设备断线或网络异常造成

INS_PLAY_RECONNECT 

重连,实时流播放时内部会自动重连

INS_PLAY_RECONNECT_EXCEPTION 

重连异常

INS_PLAY_START 

播放开始

INS_PLAY_STOP 

播放终止

INS_PLAY_ARCHIVE_END 

播放结束,回放结束时会有此消息

INS_VOICETALK_START 

语音对讲开始

INS_VOICETALK_STOP 

语音对讲停止

INS_VOICETALK_EXCEPTION 

语音对讲异常

INS_PTZ_EXCEPTION 

云台控制异常

INS_RECORD_FILE 

查询的录像文件(录像搜索结果)

INS_RECORD_SEARCH_END 

录像查询结束(暂不使用)

INS_RECORD_SEARCH_FAILED 

录像查询失败

INS_DEFENSE_SUCCESS 

布防成功

INS_DEFENSE_FAILED 

布防失败

INS_PLAY_ARCHIVE_EXCEPTION 

回放异常结束,可能是接收数据超时

INS_PTZCTRL_SUCCESS 

云台控制命令发送成功

INS_PTZCTRL_FAILED 

云台控制失败

enum PTZAction

云台操作命令 一般情况下,鼠标按下代表开始,鼠标松开代表停止

枚举值
START 
STOP 
enum PTZCommand

云台控制命令

枚举值
UP 
DOWN 
LEFT 
RIGHT 
UPLEFT 
DOWNLEFT 
UPRIGHT 
DOWNRIGHT 
ZOOMIN 
ZOOMOUT 
FOCUSNEAR 
FOCUSFAR 
IRISSTARTUP 
IRISSTOPDOWN 
LIGHT 
WIPER 
AUTO