|
@@ -1237,19 +1237,22 @@ public class SIPCommander implements ISIPCommander {
|
|
|
* @param endTime 结束时间,格式要求:yyyy-MM-dd HH:mm:ss
|
|
|
*/
|
|
|
@Override
|
|
|
- public void recordInfoQuery(Device device, String channelId, String startTime, String endTime, int sn, Integer secrecy, String type, SipSubscribe.Event okEvent, SipSubscribe.Event errorEvent) throws InvalidArgumentException, SipException, ParseException {
|
|
|
+ public void recordInfoQuery(Device device, String channelId,Boolean isHfy, String startTime, String endTime, int sn, Integer secrecy, String type, SipSubscribe.Event okEvent, SipSubscribe.Event errorEvent) throws InvalidArgumentException, SipException, ParseException {
|
|
|
if (secrecy == null) {
|
|
|
secrecy = 0;
|
|
|
}
|
|
|
if (type == null) {
|
|
|
type = "all";
|
|
|
}
|
|
|
-
|
|
|
+//<?xml version="1.0" encoding="UTF-8"?>
|
|
|
+// <SIP_XML EventType="Request_History_Video">
|
|
|
+// <Item Code="281490000003040045" Type="-1" UserCode="280090000000000000" BeginTime="2023-05-06T00:00:00Z" EndTime="2023-05-06T23:59:59Z" FromIndex="1" ToIndex="10"></Item>
|
|
|
+// </SIP_XML>
|
|
|
StringBuffer recordInfoXml = new StringBuffer(200);
|
|
|
String charset = device.getCharset();
|
|
|
recordInfoXml.append("<?xml version=\"1.0\" encoding=\"" + charset + "\"?>\r\n");
|
|
|
recordInfoXml.append("<Query>\r\n");
|
|
|
- recordInfoXml.append("<CmdType>RecordInfo</CmdType>\r\n");
|
|
|
+ recordInfoXml.append("<CmdType>"+(isHfy?"Request_History_Video":"RecordInfo")+"</CmdType>\r\n");
|
|
|
recordInfoXml.append("<SN>" + sn + "</SN>\r\n");
|
|
|
recordInfoXml.append("<DeviceID>" + channelId + "</DeviceID>\r\n");
|
|
|
if (startTime != null) {
|