[推流列表] 播放时根据实际状态更新状态
This commit is contained in:
@@ -66,6 +66,10 @@ public class StreamPushPlayServiceImpl implements IStreamPushPlayService {
|
|||||||
}
|
}
|
||||||
callback.run(ErrorCode.SUCCESS.getCode(), ErrorCode.SUCCESS.getMsg(), mediaServerService.getStreamInfoByAppAndStream(mediaServer,
|
callback.run(ErrorCode.SUCCESS.getCode(), ErrorCode.SUCCESS.getMsg(), mediaServerService.getStreamInfoByAppAndStream(mediaServer,
|
||||||
streamPush.getApp(), streamPush.getStream(), mediaInfo, callId));
|
streamPush.getApp(), streamPush.getStream(), mediaInfo, callId));
|
||||||
|
if (!streamPush.isPushing()) {
|
||||||
|
streamPush.setPushing(true);
|
||||||
|
streamPushMapper.update(streamPush);
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Assert.isTrue(streamPush.isStartOfflinePush(), "通道未推流");
|
Assert.isTrue(streamPush.isStartOfflinePush(), "通道未推流");
|
||||||
|
|||||||
Reference in New Issue
Block a user