‘sxh’
2023-06-15 05cc0d14f1a5a11d39c8f7274a5c94734e3c8b77
src/main/java/com/genersoft/iot/vmp/gb28181/transmit/callback/DeferredResultHolder.java
@@ -153,4 +153,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========================*/
}