[推流列表] 播放时根据实际状态更新状态

pull/1742/head
648540858 2024-12-27 17:14:26 +08:00
parent c231faeff6
commit f2c7a06516
1 changed files with 4 additions and 0 deletions

View File

@ -66,6 +66,10 @@ public class StreamPushPlayServiceImpl implements IStreamPushPlayService {
}
callback.run(ErrorCode.SUCCESS.getCode(), ErrorCode.SUCCESS.getMsg(), mediaServerService.getStreamInfoByAppAndStream(mediaServer,
streamPush.getApp(), streamPush.getStream(), mediaInfo, callId));
if (!streamPush.isPushing()) {
streamPush.setPushing(true);
streamPushMapper.update(streamPush);
}
return;
}
Assert.isTrue(streamPush.isStartOfflinePush(), "通道未推流");