优化国标级联录像预览

This commit is contained in:
648540858
2022-03-03 18:23:52 +08:00
parent 01a619f9e3
commit d21322a932
12 changed files with 227 additions and 125 deletions

View File

@@ -129,7 +129,6 @@ public class PlayController {
//Response response = event.getResponse();
msg.setData(String.format("success"));
resultHolder.invokeAllResult(msg);
mediaServerService.closeRTPServer(device, channelId, streamInfo.getStream());
});
if (deviceId != null || channelId != null) {

View File

@@ -77,8 +77,8 @@ public class PlaybackController {
logger.debug(String.format("设备回放 API调用deviceId%s channelId%s", deviceId, channelId));
}
DeferredResult<ResponseEntity<String>> result = playService.playBack(deviceId, channelId, startTime, endTime, msg->{
resultHolder.invokeResult(msg);
DeferredResult<ResponseEntity<String>> result = playService.playBack(deviceId, channelId, startTime, endTime, wvpResult->{
resultHolder.invokeResult(wvpResult.getData());
});
return result;