648540858
2023-06-20 fa62ab9a0143433a5d058ab3229a37e4a9a0f696
src/main/java/com/genersoft/iot/vmp/gb28181/transmit/callback/DeferredResultHolder.java
@@ -39,11 +39,13 @@
   public static final String CALLBACK_CMD_DOWNLOAD = "CALLBACK_DOWNLOAD";
   public static final String CALLBACK_CMD_PROXY = "CALLBACK_PROXY";
   public static final String CALLBACK_CMD_STOP = "CALLBACK_STOP";
   public static final String UPLOAD_FILE_CHANNEL = "UPLOAD_FILE_CHANNEL";
   public static final String CALLBACK_CMD_MOBILEPOSITION = "CALLBACK_MOBILEPOSITION";
   public static final String CALLBACK_CMD_MOBILE_POSITION = "CALLBACK_CMD_MOBILE_POSITION";
   public static final String CALLBACK_CMD_PRESETQUERY = "CALLBACK_PRESETQUERY";
@@ -153,4 +155,30 @@
         map.remove(msg.getKey());
      }
   }
   /*============================设备主子码流逻辑START========================*/
   public static String getPlayKey(String deviceId,String channelId,boolean deviceSwitchSubStream,boolean isSubStream){
      String key = null;
      if(deviceSwitchSubStream){
         key = CALLBACK_CMD_PLAY + isSubStream + deviceId + channelId;
      }else {
         key = CALLBACK_CMD_PLAY +deviceId + channelId;
      }
      return key;
   }
   public static String getSnapKey(String deviceId,String channelId,boolean deviceSwitchSubStream,boolean isSubStream){
      String key = null;
      if(deviceSwitchSubStream){
         key = CALLBACK_CMD_SNAP + isSubStream + deviceId + channelId;
      }else {
         key = CALLBACK_CMD_SNAP +deviceId + channelId;
      }
      return key;
   }
   /*============================设备主子码流逻辑END========================*/
}