diff --git a/src/main/java/com/genersoft/iot/vmp/gb28181/service/IGbChannelPlayService.java b/src/main/java/com/genersoft/iot/vmp/gb28181/service/IGbChannelPlayService.java index 6c5e0fcf..3a3d2618 100644 --- a/src/main/java/com/genersoft/iot/vmp/gb28181/service/IGbChannelPlayService.java +++ b/src/main/java/com/genersoft/iot/vmp/gb28181/service/IGbChannelPlayService.java @@ -17,7 +17,7 @@ public interface IGbChannelPlayService { void playGbDeviceChannel(CommonGBChannel channel, ErrorCallback callback); - void stopPlayDeviceChannel(CommonGBChannel channel, String stream); + void stopPlayDeviceChannel(InviteSessionType type, CommonGBChannel channel, String stream); void playProxy(CommonGBChannel channel, ErrorCallback callback); diff --git a/src/main/java/com/genersoft/iot/vmp/gb28181/service/impl/GbChannelPlayServiceImpl.java b/src/main/java/com/genersoft/iot/vmp/gb28181/service/impl/GbChannelPlayServiceImpl.java index a9fe9dec..d6d8dc52 100644 --- a/src/main/java/com/genersoft/iot/vmp/gb28181/service/impl/GbChannelPlayServiceImpl.java +++ b/src/main/java/com/genersoft/iot/vmp/gb28181/service/impl/GbChannelPlayServiceImpl.java @@ -94,7 +94,7 @@ public class GbChannelPlayServiceImpl implements IGbChannelPlayService { public void stopPlay(InviteSessionType type, CommonGBChannel channel, String stream) { if (channel.getGbDeviceDbId() != null) { // 国标通道 - stopPlayDeviceChannel(channel, stream); + stopPlayDeviceChannel(type, channel, stream); } else if (channel.getStreamProxyId() != null) { // 拉流代理 stopPlayProxy(channel); @@ -145,10 +145,10 @@ public class GbChannelPlayServiceImpl implements IGbChannelPlayService { } @Override - public void stopPlayDeviceChannel(CommonGBChannel channel, String stream) { + public void stopPlayDeviceChannel(InviteSessionType type, CommonGBChannel channel, String stream) { // 国标通道 try { - deviceChannelPlayService.stop(InviteSessionType.PLAY, channel, stream); + deviceChannelPlayService.stop(type, channel, stream); } catch (Exception e) { log.error("[停止点播失败] {}({})", channel.getGbName(), channel.getGbDeviceId(), e); }