|
@@ -4,18 +4,15 @@ package com.ozs.web.core.util;
|
|
|
import com.alibaba.fastjson2.JSON;
|
|
|
import com.ozs.common.config.BaseConfig;
|
|
|
import com.ozs.common.constant.Constants;
|
|
|
-import com.ozs.common.core.domain.AjaxResult;
|
|
|
import com.ozs.common.exception.base.BaseException;
|
|
|
import com.ozs.common.utils.DateUtils;
|
|
|
import com.ozs.common.utils.http.HttpUtils;
|
|
|
import com.ozs.web.core.config.CaneraConfig;
|
|
|
-import io.swagger.annotations.ApiOperation;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
import org.springframework.util.ObjectUtils;
|
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
|
|
import javax.annotation.PostConstruct;
|
|
|
import java.io.*;
|
|
@@ -35,8 +32,6 @@ public class CameraUtil {
|
|
|
private static String url;
|
|
|
private static String historyUrl;
|
|
|
private static String ffmpegPath;
|
|
|
- private static String mappingUrl;
|
|
|
- private static String flvPath;
|
|
|
private static String filePath;
|
|
|
|
|
|
@Autowired
|
|
@@ -53,7 +48,6 @@ public class CameraUtil {
|
|
|
*/
|
|
|
public static String historyPlay(List<String> fromVideoFileList, String ph) {
|
|
|
// 视频服务映射路径
|
|
|
-// String NewfilePath = flvPath + ph;
|
|
|
String NewfilePath = BaseConfig.getProfile() + "/" + ph;
|
|
|
log.info("NewfilePath:{}", NewfilePath);
|
|
|
log.info("fromVideoFileList:{}", fromVideoFileList);
|
|
@@ -452,10 +446,8 @@ public class CameraUtil {
|
|
|
@PostConstruct
|
|
|
public void init() {
|
|
|
url = caneraConfig.getUrl();
|
|
|
- mappingUrl = caneraConfig.getMappingUrl();
|
|
|
historyUrl = caneraConfig.getHistoryUrl();
|
|
|
ffmpegPath = caneraConfig.getFfmpegPath();
|
|
|
- flvPath = caneraConfig.getFlvPath();
|
|
|
filePath = caneraConfig.getFilePath();
|
|
|
}
|
|
|
|