Commit 6dc8d52debd9ea20fb793ef2f814b9fb08716db8

Authored by hotleave
1 parent 6be8ee1c

解决录像回放无法转码播放问题

src/main/java/com/genersoft/iot/vmp/vmanager/gb28181/play/PlayController.java
@@ -154,7 +154,7 @@ public class PlayController { @@ -154,7 +154,7 @@ public class PlayController {
154 }) 154 })
155 @PostMapping("/convert/{streamId}") 155 @PostMapping("/convert/{streamId}")
156 public ResponseEntity<String> playConvert(@PathVariable String streamId) { 156 public ResponseEntity<String> playConvert(@PathVariable String streamId) {
157 - StreamInfo streamInfo = redisCatchStorage.queryPlayByStreamId(streamId); 157 + StreamInfo streamInfo = streamId.startsWith("gb_play_") ? redisCatchStorage.queryPlayByStreamId(streamId) : redisCatchStorage.queryPlaybackByStreamId(streamId);
158 if (streamInfo == null) { 158 if (streamInfo == null) {
159 logger.warn("视频转码API调用失败!, 视频流已经停止!"); 159 logger.warn("视频转码API调用失败!, 视频流已经停止!");
160 return new ResponseEntity<String>("未找到视频流信息, 视频流可能已经停止", HttpStatus.OK); 160 return new ResponseEntity<String>("未找到视频流信息, 视频流可能已经停止", HttpStatus.OK);