临时提交

pull/1642/head
648540858 2024-08-13 18:03:34 +08:00
parent ad240ba9a4
commit d5621f9489
3 changed files with 62 additions and 50 deletions

View File

@ -79,5 +79,5 @@ public interface IGbChannelService {
CommonGBChannel queryOneWithPlatform(Integer platformId, String channelDeviceId);
void start(CommonGBChannel channel, ErrorCallback<CommonChannelPlayInfo> callback);
void start(CommonGBChannel channel, InviteInfo inviteInfo, ErrorCallback<CommonChannelPlayInfo> callback);
}

View File

@ -654,8 +654,13 @@ public class GbChannelServiceImpl implements IGbChannelService {
}
@Override
public void start(CommonGBChannel channel, ErrorCallback<CommonChannelPlayInfo> callback) {
log.info("[点播通用通道] 通道: {}({})", channel.getGbName(), channel.getGbDeviceId());
public void start(CommonGBChannel channel, InviteInfo inviteInfo, ErrorCallback<CommonChannelPlayInfo> callback) {
if (channel == null || inviteInfo == null || callback == null) {
log.warn("[通用通道点播] 参数异常, channel: {}, inviteInfo: {}, callback: {}", channel != null, inviteInfo != null, callback != null);
throw new PlayException(Response.SERVER_INTERNAL_ERROR, "server internal error");
}
log.info("[点播通用通道] 类型:{} 通道: {}({})", inviteInfo.getSessionName(), channel.getGbName(), channel.getGbDeviceId());
if ("Play".equalsIgnoreCase(inviteInfo.getSessionName())) {
if (channel.getGbDeviceDbId() > 0) {
// 国标通道
Device device = deviceService.getDevice(channel.getGbDeviceDbId());
@ -683,5 +688,12 @@ public class GbChannelServiceImpl implements IGbChannelService {
log.error("[点播通用通道] 通道数据异常,无法识别通道来源: {}({})", channel.getGbName(), channel.getGbDeviceId());
throw new PlayException(Response.SERVER_INTERNAL_ERROR, "server internal error");
}
}else if ("Playback".equals(inviteInfo.getSessionName())) {
}else if ("Download".equals(inviteInfo.getSessionName())) {
}else {
}
}
}

View File

@ -184,7 +184,7 @@ public class InviteRequestProcessor extends SIPRequestProcessorParent implements
log.error("[命令发送失败] 上级Invite TRYING: {}", e.getMessage());
}
channelService.start(channel, ((code, msg, commonChannelPlayInfo) -> {
channelService.start(channel, inviteInfo, ((code, msg, commonChannelPlayInfo) -> {
if (code != Response.OK) {
try {
responseAck(request, code, msg);