648540858
2023-03-21 82adc0cb23f3ee47322e78889cdaba57e9309000
src/main/java/com/genersoft/iot/vmp/gb28181/transmit/cmd/ISIPCommander.java
@@ -2,9 +2,7 @@
import com.genersoft.iot.vmp.common.StreamInfo;
import com.genersoft.iot.vmp.conf.exception.SsrcTransactionNotFoundException;
import com.genersoft.iot.vmp.gb28181.bean.Device;
import com.genersoft.iot.vmp.gb28181.bean.DeviceAlarm;
import com.genersoft.iot.vmp.gb28181.bean.InviteStreamCallback;
import com.genersoft.iot.vmp.gb28181.bean.*;
import com.genersoft.iot.vmp.gb28181.event.SipSubscribe;
import com.genersoft.iot.vmp.media.zlm.ZlmHttpHookSubscribe;
import com.genersoft.iot.vmp.media.zlm.dto.MediaServerItem;
@@ -124,12 +122,18 @@
                     String startTime, String endTime, int downloadSpeed, InviteStreamCallback inviteStreamCallback, InviteStreamCallback hookEvent,
                     SipSubscribe.Event errorEvent) throws InvalidArgumentException, SipException, ParseException;
   /**
    * 视频流停止
    */
   void streamByeCmd(Device device, String channelId, String stream, String callId, SipSubscribe.Event okEvent) throws InvalidArgumentException, SipException, ParseException, SsrcTransactionNotFoundException;
   void talkStreamCmd(MediaServerItem mediaServerItem, SendRtpItem sendRtpItem, Device device, String channelId, String callId, ZlmHttpHookSubscribe.Event event, ZlmHttpHookSubscribe.Event eventForPush, SipSubscribe.Event okEvent, SipSubscribe.Event errorEvent) throws InvalidArgumentException, SipException, ParseException;
   void streamByeCmd(Device device, String channelId, String stream, String callId) throws InvalidArgumentException, ParseException, SipException, SsrcTransactionNotFoundException;
   void streamByeCmd(Device device, String channelId, SipTransactionInfo sipTransactionInfo, SipSubscribe.Event okEvent) throws InvalidArgumentException, SipException, ParseException, SsrcTransactionNotFoundException;
   /**
    * 回放暂停
@@ -161,21 +165,13 @@
    /**
    * /**
    * 语音广播
    *
    * @param device  视频设备
    * @param channelId  预览通道
    *
    * @param device 视频设备
    */
   void audioBroadcastCmd(Device device,String channelId);
   /**
    * 语音广播
    *
    * @param device  视频设备
    */
   void audioBroadcastCmd(Device device, SipSubscribe.Event okEvent) throws InvalidArgumentException, SipException, ParseException;
   void audioBroadcastCmd(Device device) throws InvalidArgumentException, SipException, ParseException;
   void audioBroadcastCmd(Device device, String channelId, SipSubscribe.Event okEvent, SipSubscribe.Event errorEvent) throws InvalidArgumentException, SipException, ParseException;
   /**
    * 音视频录像控制
    * 
@@ -183,7 +179,7 @@
    * @param channelId     预览通道
    * @param recordCmdStr   录像命令:Record / StopRecord
    */
   void recordCmd(Device device, String channelId, String recordCmdStr, SipSubscribe.Event errorEvent) throws InvalidArgumentException, SipException, ParseException;
   void recordCmd(Device device, String channelId, String recordCmdStr, SipSubscribe.Event errorEvent, SipSubscribe.Event okEvent) throws InvalidArgumentException, SipException, ParseException;
   
   /**
    * 远程启动控制命令
@@ -197,7 +193,7 @@
    * 
    * @param device     视频设备
    */
   void guardCmd(Device device, String guardCmdStr, SipSubscribe.Event errorEvent) throws InvalidArgumentException, SipException, ParseException;
   void guardCmd(Device device, String guardCmdStr, SipSubscribe.Event errorEvent, SipSubscribe.Event okEvent) throws InvalidArgumentException, SipException, ParseException;
   
   /**
    * 报警复位命令
@@ -206,7 +202,7 @@
    * @param alarmMethod   报警方式(可选)
    * @param alarmType      报警类型(可选)
    */
   void alarmCmd(Device device, String alarmMethod, String alarmType, SipSubscribe.Event errorEvent) throws InvalidArgumentException, SipException, ParseException;
   void alarmCmd(Device device, String alarmMethod, String alarmType, SipSubscribe.Event errorEvent, SipSubscribe.Event okEvent) throws InvalidArgumentException, SipException, ParseException;
   
   /**
    * 强制关键帧命令,设备收到此命令应立刻发送一个IDR帧
@@ -215,17 +211,19 @@
    * @param channelId  预览通道
    */
   void iFrameCmd(Device device, String channelId) throws InvalidArgumentException, SipException, ParseException;
   /**
    * 看守位控制命令
    *
    * @param device      视频设备
    * @param enabled      看守位使能:1 = 开启,0 = 关闭
    * @param resetTime      自动归位时间间隔,开启看守位时使用,单位:秒(s)
    * @param presetIndex   调用预置位编号,开启看守位时使用,取值范围0~255
    *
    * @param device      视频设备
    * @param channelId      通道id,非通道则是设备本身
    * @param frontCmd     上级平台的指令,如果存在则直接下发
    * @param enabled     看守位使能:1 = 开启,0 = 关闭
    * @param resetTime   自动归位时间间隔,开启看守位时使用,单位:秒(s)
    * @param presetIndex 调用预置位编号,开启看守位时使用,取值范围0~255
    */
   void homePositionCmd(Device device, String channelId, String enabled, String resetTime, String presetIndex, SipSubscribe.Event errorEvent) throws InvalidArgumentException, SipException, ParseException;
   void homePositionCmd(Device device, String channelId, String enabled, String resetTime, String presetIndex, SipSubscribe.Event errorEvent,SipSubscribe.Event okEvent) throws InvalidArgumentException, SipException, ParseException;
   /**
    * 设备配置命令
    * 
@@ -244,15 +242,6 @@
    * @param heartBeatCount   心跳超时次数(可选)
    */  
   void deviceBasicConfigCmd(Device device, String channelId, String name, String expiration, String heartBeatInterval, String heartBeatCount, SipSubscribe.Event errorEvent) throws InvalidArgumentException, SipException, ParseException;
   /**
    * 设备配置命令:远程启动
    *
    * @param device 视频设备
    */
   void deviceTeleBootCmd(Device device, SipSubscribe.Event errorEvent) throws InvalidArgumentException, SipException, ParseException;
   /**
    * 查询设备状态
@@ -370,4 +359,5 @@
    */
   void sendAlarmMessage(Device device, DeviceAlarm deviceAlarm) throws InvalidArgumentException, SipException, ParseException;
}