diff --git a/src/main/java/com/genersoft/iot/vmp/service/impl/PlayServiceImpl.java b/src/main/java/com/genersoft/iot/vmp/service/impl/PlayServiceImpl.java index ee2abd49..55e68224 100755 --- a/src/main/java/com/genersoft/iot/vmp/service/impl/PlayServiceImpl.java +++ b/src/main/java/com/genersoft/iot/vmp/service/impl/PlayServiceImpl.java @@ -1141,15 +1141,15 @@ public class PlayServiceImpl implements IPlayService { AudioBroadcastCatch audioBroadcastCatch = new AudioBroadcastCatch(device.getDeviceId(), channelId, mediaServerItem, app, stream, event, AudioBroadcastCatchStatus.Ready, isFromPlatform); audioBroadcastManager.update(audioBroadcastCatch); // 等待invite消息, 超时则结束 - String key = VideoManagerConstants.BROADCAST_WAITE_INVITE + device.getDeviceId(); - if (!SipUtils.isFrontEnd(device.getDeviceId())) { - key += audioBroadcastCatch.getChannelId(); - } - dynamicTask.startDelay(key, ()->{ - logger.info("[语音广播]等待invite消息超时:{}/{}", device.getDeviceId(), channelId); - event.call(-1,"等待invite消息超时"); - stopAudioBroadcast(device.getDeviceId(), channelId); - }, 10*1000); +// String key = VideoManagerConstants.BROADCAST_WAITE_INVITE + device.getDeviceId(); +// if (!SipUtils.isFrontEnd(device.getDeviceId())) { +// key += audioBroadcastCatch.getChannelId(); +// } +// dynamicTask.startDelay(key, ()->{ +// logger.info("[语音广播]等待invite消息超时:{}/{}", device.getDeviceId(), channelId); +// event.call(-1,"等待invite消息超时"); +// stopAudioBroadcast(device.getDeviceId(), channelId); +// }, 10*1000); }, eventResultForError -> { // 发送失败 logger.error("语音广播发送失败: {}:{}", channelId, eventResultForError.msg); diff --git a/src/main/java/com/genersoft/iot/vmp/vmanager/gb28181/play/PlayController.java b/src/main/java/com/genersoft/iot/vmp/vmanager/gb28181/play/PlayController.java index 0623c18a..5785139a 100755 --- a/src/main/java/com/genersoft/iot/vmp/vmanager/gb28181/play/PlayController.java +++ b/src/main/java/com/genersoft/iot/vmp/vmanager/gb28181/play/PlayController.java @@ -281,7 +281,7 @@ public class PlayController { playService.stopAudioBroadcast(); }); try { - playService.audioBroadcastCmd(device, channelId, mediaServerItem, app, stream, 60, false, (code, msg) -> { + playService.audioBroadcastCmd(device, channel, mediaServerItem, app, stream, 60, false, (code, msg) -> { WVPResult wvpResult = new WVPResult<>(); wvpResult.setCode(code); wvpResult.setMsg(msg);