Class ServerSendCmd
java.lang.Object
io.github.lunasaw.gbproxy.server.transimit.cmd.ServerSendCmd
- Author:
- luna
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
deviceAck
(FromDevice fromDevice, ToDevice toDevice) 回复ACKstatic String
deviceAck
(FromDevice fromDevice, ToDevice toDevice, String callId) static String
deviceAck
(FromDevice fromDevice, javax.sip.address.SipURI sipURI, gov.nist.javax.sip.message.SIPResponse sipResponse) static String
deviceAlarmQuery
(FromDevice fromDevice, ToDevice toDevice, Date startTime, Date endTime, String startPriority, String endPriority, String alarmMethod, String alarmType) 告警查询static String
deviceBroadcast
(FromDevice fromDevice, ToDevice toDevice) 设备广播static String
deviceBye
(FromDevice fromDevice, ToDevice toDevice) 发送BYEstatic String
deviceCatalogQuery
(FromDevice fromDevice, ToDevice toDevice) 设备通道列表查询static String
deviceCatalogSubscribe
(FromDevice fromDevice, ToDevice toDevice, Integer expires, String eventType) static String
deviceCatalogSubscribe
(FromDevice fromDevice, ToDevice toDevice, Integer expires, String eventType, String eventId) 会话订阅static String
deviceConfig
(FromDevice fromDevice, ToDevice toDevice, String name, String expiration, String heartBeatInterval, String heartBeatCount) 设备配置命令:basicParamstatic String
deviceConfigDownload
(FromDevice fromDevice, ToDevice toDevice, String configType) 下载设备配置static String
deviceControlAlarm
(FromDevice fromDevice, ToDevice toDevice, DeviceControlPosition.HomePosition homePosition) static String
deviceControlAlarm
(FromDevice fromDevice, ToDevice toDevice, String alarmMethod, String alarmType) 报警复位命令static String
deviceControlAlarm
(FromDevice fromDevice, ToDevice toDevice, String enable, String resetTime, String presetIndex) 看守位控制命令static String
deviceControlDragIn
(FromDevice fromDevice, ToDevice toDevice, DragZoom dragZoom) 伸缩控制static String
deviceControlDragOut
(FromDevice fromDevice, ToDevice toDevice, DragZoom dragZoom) 伸缩控制static String
deviceControlGuardCmd
(FromDevice fromDevice, ToDevice toDevice, String guardCmdStr) 报警布防/撤防命令static String
deviceControlIdr
(FromDevice fromDevice, ToDevice toDevice, String cmdStr) 强制关键帧命令,设备收到此命令应立刻发送一个IDR帧static String
deviceControlPtzCmd
(FromDevice fromDevice, ToDevice toDevice, PtzCmdEnum ptzCmdEnum, Integer speed) 云台控制命令static String
deviceControlPtzCmd
(FromDevice fromDevice, ToDevice toDevice, String ptzCmd) 设备命令控制static String
deviceControlTeleBoot
(FromDevice fromDevice, ToDevice toDevice) 设备重启static String
deviceControlTeleBoot
(FromDevice fromDevice, ToDevice toDevice, String recordCmd) 录像控制static String
deviceInfo
(FromDevice fromDevice, ToDevice toDevice) 设备信息查询static String
deviceInvitePlay
(FromDevice fromDevice, ToDevice toDevice, InviteRequest inviteRequest) 设备实时流点播static String
deviceInvitePlay
(FromDevice fromDevice, ToDevice toDevice, String sdpIp, Integer mediaPort) 设备实时流点播static String
deviceInvitePlayBack
(FromDevice fromDevice, ToDevice toDevice, InviteRequest inviteRequest) 设备回放流点播static String
deviceInvitePlayBack
(FromDevice fromDevice, ToDevice toDevice, String sdpIp, Integer mediaPort, String startTime) static String
deviceInvitePlayBack
(FromDevice fromDevice, ToDevice toDevice, String sdpIp, Integer mediaPort, String startTime, String endTime) 设备回放流点播static String
deviceInvitePlayBack
(FromDevice fromDevice, ToDevice toDevice, String sdpIp, Integer mediaPort, Date startDate) static String
deviceInvitePlayBack
(FromDevice fromDevice, ToDevice toDevice, String sdpIp, Integer mediaPort, Date startDate, Date endDate) static String
deviceInvitePlayBackControl
(FromDevice fromDevice, ToDevice toDevice, PlayActionEnums playActionEnums) 设备回放流点播控制static String
devicePresetQuery
(FromDevice fromDevice, ToDevice toDevice) 设备预设位置查询static String
devicePresetQuery
(FromDevice fromDevice, ToDevice toDevice, String interval) 查询移动设备位置数据static String
devicePresetSubscribe
(FromDevice fromDevice, ToDevice toDevice, String interval, Integer expires, String eventType, String eventId) 订阅移动设备位置数据static String
deviceRecordInfoQuery
(FromDevice fromDevice, ToDevice toDevice, long startTime, long endTime) static String
deviceRecordInfoQuery
(FromDevice fromDevice, ToDevice toDevice, String startTime, String endTime) static String
deviceRecordInfoQuery
(FromDevice fromDevice, ToDevice toDevice, String startTime, String endTime, String secrecy, String type) 查询录像列表static String
deviceRecordInfoQuery
(FromDevice fromDevice, ToDevice toDevice, Date startTime, Date endTime) static String
deviceRecordInfoQuery
(FromDevice fromDevice, ToDevice toDevice, Date startTime, Date endTime, String secrecy, String type) 查询录像列表static String
deviceStatusQuery
(FromDevice fromDevice, ToDevice toDevice) 设备状态查询
-
Constructor Details
-
ServerSendCmd
public ServerSendCmd()
-
-
Method Details
-
deviceInfo
设备信息查询- Parameters:
fromDevice
- 发送设备toDevice
- 接收设备- Returns:
- callId
-
devicePresetQuery
设备预设位置查询- Parameters:
fromDevice
- 发送设备toDevice
- 接收设备- Returns:
- callId
-
devicePresetQuery
查询移动设备位置数据- Parameters:
fromDevice
- 发送设备toDevice
- 接收设备- Returns:
- callId
-
devicePresetSubscribe
public static String devicePresetSubscribe(FromDevice fromDevice, ToDevice toDevice, String interval, Integer expires, String eventType, String eventId) 订阅移动设备位置数据- Parameters:
fromDevice
- 发送设备toDevice
- 接收设备- Returns:
- callId
-
deviceStatusQuery
设备状态查询- Parameters:
fromDevice
- 发送设备toDevice
- 接收设备- Returns:
- callId
-
deviceCatalogQuery
设备通道列表查询- Parameters:
fromDevice
- 发送设备toDevice
- 接收设备- Returns:
- callId
-
deviceRecordInfoQuery
public static String deviceRecordInfoQuery(FromDevice fromDevice, ToDevice toDevice, String startTime, String endTime) -
deviceRecordInfoQuery
public static String deviceRecordInfoQuery(FromDevice fromDevice, ToDevice toDevice, long startTime, long endTime) -
deviceRecordInfoQuery
public static String deviceRecordInfoQuery(FromDevice fromDevice, ToDevice toDevice, String startTime, String endTime, String secrecy, String type) 查询录像列表- Parameters:
fromDevice
- 发送设备toDevice
- 接收设备startTime
- 开始时间 ISO8601格式endTime
- 结束时间 ISO8601格式secrecy
- 保密属性 缺省为0; 0:不涉密, 1:涉密type
- all(time 或 alarm 或 manual 或 all)- Returns:
-
deviceRecordInfoQuery
public static String deviceRecordInfoQuery(FromDevice fromDevice, ToDevice toDevice, Date startTime, Date endTime) -
deviceRecordInfoQuery
public static String deviceRecordInfoQuery(FromDevice fromDevice, ToDevice toDevice, Date startTime, Date endTime, String secrecy, String type) 查询录像列表- Parameters:
fromDevice
- 发送设备toDevice
- 接收设备- Returns:
- callId
-
deviceCatalogSubscribe
public static String deviceCatalogSubscribe(FromDevice fromDevice, ToDevice toDevice, Integer expires, String eventType) -
deviceCatalogSubscribe
public static String deviceCatalogSubscribe(FromDevice fromDevice, ToDevice toDevice, Integer expires, String eventType, String eventId) 会话订阅- Parameters:
fromDevice
- 发送设备toDevice
- 接收设备expires
- 过期时间eventType
- 事件类型- Returns:
-
deviceAlarmQuery
public static String deviceAlarmQuery(FromDevice fromDevice, ToDevice toDevice, Date startTime, Date endTime, String startPriority, String endPriority, String alarmMethod, String alarmType) 告警查询- Parameters:
fromDevice
- 发送设备toDevice
- 接收设备startPriority
- 报警起始级别(可选)endPriority
- 报警终止级别(可选)alarmMethod
- 报警方式条件(可选)alarmType
- 报警类型startTime
- 报警发生起始时间(可选)endTime
- 报警发生终止时间(可选)- Returns:
- callId
-
deviceAck
回复ACK- Parameters:
fromDevice
- 发送设备toDevice
- 接收设备- Returns:
-
deviceAck
-
deviceAck
public static String deviceAck(FromDevice fromDevice, javax.sip.address.SipURI sipURI, gov.nist.javax.sip.message.SIPResponse sipResponse) -
deviceBye
发送BYE- Parameters:
fromDevice
- 发送设备toDevice
- 接收设备- Returns:
-
deviceBroadcast
设备广播- Parameters:
fromDevice
- 发送设备toDevice
- 接收设备- Returns:
-
deviceControlGuardCmd
public static String deviceControlGuardCmd(FromDevice fromDevice, ToDevice toDevice, String guardCmdStr) 报警布防/撤防命令- Parameters:
fromDevice
- 发送设备toDevice
- 接收设备guardCmdStr
- "SetGuard"/"ResetGuard"- Returns:
-
deviceControlAlarm
public static String deviceControlAlarm(FromDevice fromDevice, ToDevice toDevice, String alarmMethod, String alarmType) 报警复位命令- Parameters:
fromDevice
- 发送设备toDevice
- 接收设备alarmMethod
- 方式alarmType
- 类型- Returns:
-
deviceControlAlarm
public static String deviceControlAlarm(FromDevice fromDevice, ToDevice toDevice, DeviceControlPosition.HomePosition homePosition) -
deviceControlAlarm
public static String deviceControlAlarm(FromDevice fromDevice, ToDevice toDevice, String enable, String resetTime, String presetIndex) 看守位控制命令- Parameters:
fromDevice
- 发送设备toDevice
- 接收设备enable
- 看守位使能:1 = 开启,0 = 关闭resetTime
- 自动归位时间间隔,开启看守位时使用,单位:秒(s)presetIndex
- 调用预置位编号,开启看守位时使用,取值范围0~255- Returns:
-
deviceConfig
public static String deviceConfig(FromDevice fromDevice, ToDevice toDevice, String name, String expiration, String heartBeatInterval, String heartBeatCount) 设备配置命令:basicParam- Parameters:
fromDevice
- 发送设备toDevice
- 接收设备name
- 设备/通道名称(可选)expiration
- 注册过期时间(可选)heartBeatInterval
- 心跳间隔时间(可选)heartBeatCount
- 心跳超时次数(可选)- Returns:
-
deviceConfigDownload
public static String deviceConfigDownload(FromDevice fromDevice, ToDevice toDevice, String configType) 下载设备配置- Parameters:
fromDevice
-toDevice
-configType
- 配置类型- Returns:
-
deviceControlIdr
强制关键帧命令,设备收到此命令应立刻发送一个IDR帧- Parameters:
fromDevice
- 发送设备toDevice
- 接收设备- Returns:
-
deviceControlDragOut
public static String deviceControlDragOut(FromDevice fromDevice, ToDevice toDevice, DragZoom dragZoom) 伸缩控制- Parameters:
fromDevice
- 发送设备toDevice
- 接收设备dragZoom
- 缩小- Returns:
-
deviceControlDragIn
public static String deviceControlDragIn(FromDevice fromDevice, ToDevice toDevice, DragZoom dragZoom) 伸缩控制- Parameters:
fromDevice
- 发送设备toDevice
- 接收设备dragZoom
- 放大- Returns:
-
deviceControlPtzCmd
public static String deviceControlPtzCmd(FromDevice fromDevice, ToDevice toDevice, PtzCmdEnum ptzCmdEnum, Integer speed) 云台控制命令- Parameters:
fromDevice
- 发送设备toDevice
- 接收设备ptzCmdEnum
- 命令speed
- 速度- Returns:
-
deviceControlPtzCmd
设备命令控制- Parameters:
fromDevice
- 发送设备toDevice
- 接收设备ptzCmd
- 控制代码- Returns:
-
deviceControlTeleBoot
设备重启- Parameters:
fromDevice
- 发送设备toDevice
- 接收设备- Returns:
-
deviceControlTeleBoot
public static String deviceControlTeleBoot(FromDevice fromDevice, ToDevice toDevice, String recordCmd) 录像控制- Parameters:
fromDevice
- 发送设备toDevice
- 接收设备recordCmd
- Record 开启录像, StopRecord 停止录像- Returns:
-
deviceInvitePlay
public static String deviceInvitePlay(FromDevice fromDevice, ToDevice toDevice, String sdpIp, Integer mediaPort) 设备实时流点播- Parameters:
fromDevice
-toDevice
-sdpIp
-mediaPort
-- Returns:
-
deviceInvitePlay
public static String deviceInvitePlay(FromDevice fromDevice, ToDevice toDevice, InviteRequest inviteRequest) 设备实时流点播- Parameters:
fromDevice
-toDevice
-inviteRequest
-- Returns:
-
deviceInvitePlayBack
-
deviceInvitePlayBack
-
deviceInvitePlayBack
-
deviceInvitePlayBack
public static String deviceInvitePlayBack(FromDevice fromDevice, ToDevice toDevice, String sdpIp, Integer mediaPort, String startTime, String endTime) 设备回放流点播- Parameters:
fromDevice
-toDevice
-sdpIp
-mediaPort
-- Returns:
-
deviceInvitePlayBack
public static String deviceInvitePlayBack(FromDevice fromDevice, ToDevice toDevice, InviteRequest inviteRequest) 设备回放流点播- Parameters:
fromDevice
-toDevice
-inviteRequest
-- Returns:
-
deviceInvitePlayBackControl
public static String deviceInvitePlayBackControl(FromDevice fromDevice, ToDevice toDevice, PlayActionEnums playActionEnums) 设备回放流点播控制- Parameters:
fromDevice
-toDevice
-playActionEnums
- 操作类型- Returns:
-