Merge pull request #110 from hotleave/playback

解决录像播放相关问题
pull/115/head
648540858 2021-06-18 18:29:58 +08:00 committed by GitHub
commit 513b810631
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -154,7 +154,7 @@ public class PlayController {
})
@PostMapping("/convert/{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) {
logger.warn("视频转码API调用失败, 视频流已经停止!");
return new ResponseEntity<String>("未找到视频流信息, 视频流可能已经停止", HttpStatus.OK);

View File

@ -424,8 +424,9 @@ export default {
row.endTime
}).then(function (res) {
var streamInfo = res.data;
that.app = streamInfo.app;
that.streamId = streamInfo.streamId;
that.videoUrl = this.getUrlByStreamInfo(streamInfo);
that.videoUrl = that.getUrlByStreamInfo(streamInfo);
that.recordPlay = true;
});
}