Class ServerSendCmd

java.lang.Object
io.github.lunasaw.gbproxy.server.transimit.cmd.ServerSendCmd

public class ServerSendCmd extends Object
Author:
luna
  • Constructor Details

    • ServerSendCmd

      public ServerSendCmd()
  • Method Details

    • deviceInfo

      public static String deviceInfo(FromDevice fromDevice, ToDevice toDevice)
      设备信息查询
      Parameters:
      fromDevice - 发送设备
      toDevice - 接收设备
      Returns:
      callId
    • devicePresetQuery

      public static String devicePresetQuery(FromDevice fromDevice, ToDevice toDevice)
      设备预设位置查询
      Parameters:
      fromDevice - 发送设备
      toDevice - 接收设备
      Returns:
      callId
    • devicePresetQuery

      public static String devicePresetQuery(FromDevice fromDevice, ToDevice toDevice, String interval)
      查询移动设备位置数据
      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

      public static String deviceStatusQuery(FromDevice fromDevice, ToDevice toDevice)
      设备状态查询
      Parameters:
      fromDevice - 发送设备
      toDevice - 接收设备
      Returns:
      callId
    • deviceCatalogQuery

      public static String deviceCatalogQuery(FromDevice fromDevice, ToDevice toDevice)
      设备通道列表查询
      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

      public static String deviceAck(FromDevice fromDevice, ToDevice toDevice)
      回复ACK
      Parameters:
      fromDevice - 发送设备
      toDevice - 接收设备
      Returns:
    • deviceAck

      public static String deviceAck(FromDevice fromDevice, ToDevice toDevice, String callId)
    • deviceAck

      public static String deviceAck(FromDevice fromDevice, javax.sip.address.SipURI sipURI, gov.nist.javax.sip.message.SIPResponse sipResponse)
    • deviceBye

      public static String deviceBye(FromDevice fromDevice, ToDevice toDevice)
      发送BYE
      Parameters:
      fromDevice - 发送设备
      toDevice - 接收设备
      Returns:
    • deviceBroadcast

      public static String deviceBroadcast(FromDevice fromDevice, ToDevice toDevice)
      设备广播
      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

      public static String deviceControlIdr(FromDevice fromDevice, ToDevice toDevice, String cmdStr)
      强制关键帧命令,设备收到此命令应立刻发送一个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

      public static String deviceControlPtzCmd(FromDevice fromDevice, ToDevice toDevice, String ptzCmd)
      设备命令控制
      Parameters:
      fromDevice - 发送设备
      toDevice - 接收设备
      ptzCmd - 控制代码
      Returns:
    • deviceControlTeleBoot

      public static String deviceControlTeleBoot(FromDevice fromDevice, ToDevice toDevice)
      设备重启
      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

      public static String deviceInvitePlayBack(FromDevice fromDevice, ToDevice toDevice, String sdpIp, Integer mediaPort, String startTime)
    • deviceInvitePlayBack

      public static String deviceInvitePlayBack(FromDevice fromDevice, ToDevice toDevice, String sdpIp, Integer mediaPort, Date startDate)
    • deviceInvitePlayBack

      public static String deviceInvitePlayBack(FromDevice fromDevice, ToDevice toDevice, String sdpIp, Integer mediaPort, Date startDate, Date endDate)
    • 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: