mirror of
https://gitee.com/pan648540858/wvp-GB28181-pro.git
synced 2026-05-24 14:07:50 +08:00
修复未判断UsePushingAsStatus设置导致推流结束时推流通道离线
This commit is contained in:
parent
f38c86092d
commit
f205a86c31
@ -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()) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user