|
@@ -386,7 +386,7 @@ public class GeoHazardMonitorTokenController {
|
|
|
// 使用SimpleDateFormat将Date对象格式化为指定样式的字符串
|
|
|
String formattedDate = sdf.format(alarmDate);
|
|
|
log.info("-----formattedDate-----------" + formattedDate);
|
|
|
- String records = getQueryRecords(cameraCode + "/" + channel+"/"+seconds+"-"+second, formattedDate,"flv");
|
|
|
+ String records = getQueryRecords(cameraCode + "/" + channel+"/"+seconds+"-"+second, formattedDate,"mp4");
|
|
|
log.info("-----records-----------" + records);
|
|
|
return records;
|
|
|
}
|
|
@@ -446,8 +446,8 @@ public class GeoHazardMonitorTokenController {
|
|
|
* @return
|
|
|
*/
|
|
|
public String startRecording(String cameraCode) {
|
|
|
- log.info("-----startRecording------" + bakUrl + "/recordpro/api/start?streamPath=" + cameraCode + "&type=flv");
|
|
|
- return bakUrl + "/recordpro/api/start?streamPath=" + cameraCode +"&type=flv";
|
|
|
+ log.info("-----startRecording------" + bakUrl + "/recordpro/api/start?streamPath=" + cameraCode + "&type=mp4");
|
|
|
+ return bakUrl + "/recordpro/api/start?streamPath=" + cameraCode +"&type=mp4";
|
|
|
}
|
|
|
|
|
|
/**
|