Authored by mali

视频录制修改

... ... @@ -86,15 +86,18 @@ public class UfoLiveService {
String persistId;
String filePath;
if (configReader.getBoolean("appress.video.back.enable", false)) { //启用备份视频流
Integer cameraCode = queryInitCameraCode(req);
if (configReader.getBoolean("appress.video.back.enable" + cameraCode, false)) { //启用备份视频流
LOGGER.info("begin back video stream");
String save = qNLiveUtilBackService.fetch(queryM3u8Url(queryInitCameraCode(req), 1), req.getStartTime().longValue(), req.getEndTime().longValue());
String save = qNLiveUtilBackService.fetch(queryM3u8Url(cameraCode, 1), req.getStartTime().longValue(), req.getEndTime().longValue());
persistId = qNLiveUtilBackService.transfer(save, fileName);
filePath = QNliveConstants.LIVE_VIDEO_BACK_DOMAIN + QNliveConstants.MP4_FILEKEY_PRE + fileName + ".mp4";
} else {
LOGGER.info("begin init video stream");
String m3u8Url = queryM3u8Url(queryInitCameraCode(req), 0);
String m3u8Url = queryM3u8Url(cameraCode, 0);
qNliveUtilService.fetch(fileName, m3u8Url, String.valueOf(req.getStartTime()), String.valueOf(req.getEndTime()));
... ...