修复未判断UsePushingAsStatus设置导致推流结束时推流通道离线

pull/1642/head
648540858 2024-09-19 16:59:18 +08:00
parent f38c86092d
commit f205a86c31
1 changed files with 6 additions and 4 deletions

View File

@ -512,12 +512,14 @@ public class StreamPushServiceImpl implements IStreamPushService {
if (ObjectUtils.isEmpty(streamPush.getGbDeviceId())) { if (ObjectUtils.isEmpty(streamPush.getGbDeviceId())) {
return; return;
} }
if ("ON".equalsIgnoreCase(streamPush.getGbStatus())) { if (userSetting.isUsePushingAsStatus()) {
if ("ON".equalsIgnoreCase(streamPush.getGbStatus()) ) {
gbChannelService.online(streamPush.buildCommonGBChannel()); gbChannelService.online(streamPush.buildCommonGBChannel());
}else { }else {
gbChannelService.offline(streamPush.buildCommonGBChannel()); gbChannelService.offline(streamPush.buildCommonGBChannel());
} }
} }
}
private List<StreamPush> handleJSON(List<StreamInfo> streamInfoList) { private List<StreamPush> handleJSON(List<StreamInfo> streamInfoList) {
if (streamInfoList == null || streamInfoList.isEmpty()) { if (streamInfoList == null || streamInfoList.isEmpty()) {