修复RPC录像下载停止
parent
3b4818c579
commit
26d2dd0450
|
@ -17,7 +17,7 @@ public interface IGbChannelPlayService {
|
||||||
|
|
||||||
void playGbDeviceChannel(CommonGBChannel channel, ErrorCallback<StreamInfo> callback);
|
void playGbDeviceChannel(CommonGBChannel channel, ErrorCallback<StreamInfo> callback);
|
||||||
|
|
||||||
void stopPlayDeviceChannel(CommonGBChannel channel, String stream);
|
void stopPlayDeviceChannel(InviteSessionType type, CommonGBChannel channel, String stream);
|
||||||
|
|
||||||
void playProxy(CommonGBChannel channel, ErrorCallback<StreamInfo> callback);
|
void playProxy(CommonGBChannel channel, ErrorCallback<StreamInfo> callback);
|
||||||
|
|
||||||
|
|
|
@ -94,7 +94,7 @@ public class GbChannelPlayServiceImpl implements IGbChannelPlayService {
|
||||||
public void stopPlay(InviteSessionType type, CommonGBChannel channel, String stream) {
|
public void stopPlay(InviteSessionType type, CommonGBChannel channel, String stream) {
|
||||||
if (channel.getGbDeviceDbId() != null) {
|
if (channel.getGbDeviceDbId() != null) {
|
||||||
// 国标通道
|
// 国标通道
|
||||||
stopPlayDeviceChannel(channel, stream);
|
stopPlayDeviceChannel(type, channel, stream);
|
||||||
} else if (channel.getStreamProxyId() != null) {
|
} else if (channel.getStreamProxyId() != null) {
|
||||||
// 拉流代理
|
// 拉流代理
|
||||||
stopPlayProxy(channel);
|
stopPlayProxy(channel);
|
||||||
|
@ -145,10 +145,10 @@ public class GbChannelPlayServiceImpl implements IGbChannelPlayService {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void stopPlayDeviceChannel(CommonGBChannel channel, String stream) {
|
public void stopPlayDeviceChannel(InviteSessionType type, CommonGBChannel channel, String stream) {
|
||||||
// 国标通道
|
// 国标通道
|
||||||
try {
|
try {
|
||||||
deviceChannelPlayService.stop(InviteSessionType.PLAY, channel, stream);
|
deviceChannelPlayService.stop(type, channel, stream);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.error("[停止点播失败] {}({})", channel.getGbName(), channel.getGbDeviceId(), e);
|
log.error("[停止点播失败] {}({})", channel.getGbName(), channel.getGbDeviceId(), e);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue