修正国标级联消息处理中根据通道ID获取通道信息

This commit is contained in:
648540858
2024-09-24 21:38:34 +08:00
parent 4f52333506
commit 03a7daffad
8 changed files with 41 additions and 44 deletions

View File

@@ -179,7 +179,7 @@ public class MediaServiceImpl implements IMediaService {
String deviceId = ssrcTransaction.getDeviceId();
Integer channelId = ssrcTransaction.getChannelId();
DeviceChannel deviceChannel = deviceChannelService.getOneById(channelId);
DeviceChannel deviceChannel = deviceChannelService.getOneForSourceById(channelId);
if (deviceChannel != null) {
result.setEnable_audio(deviceChannel.isHasAudio());
}
@@ -234,7 +234,7 @@ public class MediaServiceImpl implements IMediaService {
if (inviteInfo.getType() == InviteSessionType.DOWNLOAD) {
return false;
}
DeviceChannel deviceChannel = deviceChannelService.getOneById(inviteInfo.getChannelId());
DeviceChannel deviceChannel = deviceChannelService.getOneForSourceById(inviteInfo.getChannelId());
if (deviceChannel == null) {
return false;
}