解决录像回放无法转码播放问题
parent
6be8ee1cd7
commit
6dc8d52deb
|
@ -154,7 +154,7 @@ public class PlayController {
|
||||||
})
|
})
|
||||||
@PostMapping("/convert/{streamId}")
|
@PostMapping("/convert/{streamId}")
|
||||||
public ResponseEntity<String> playConvert(@PathVariable String streamId) {
|
public ResponseEntity<String> playConvert(@PathVariable String streamId) {
|
||||||
StreamInfo streamInfo = redisCatchStorage.queryPlayByStreamId(streamId);
|
StreamInfo streamInfo = streamId.startsWith("gb_play_") ? redisCatchStorage.queryPlayByStreamId(streamId) : redisCatchStorage.queryPlaybackByStreamId(streamId);
|
||||||
if (streamInfo == null) {
|
if (streamInfo == null) {
|
||||||
logger.warn("视频转码API调用失败!, 视频流已经停止!");
|
logger.warn("视频转码API调用失败!, 视频流已经停止!");
|
||||||
return new ResponseEntity<String>("未找到视频流信息, 视频流可能已经停止", HttpStatus.OK);
|
return new ResponseEntity<String>("未找到视频流信息, 视频流可能已经停止", HttpStatus.OK);
|
||||||
|
|
Loading…
Reference in New Issue