完善talk模式

This commit is contained in:
648540858
2023-03-20 14:20:28 +08:00
parent 663130df45
commit a000ed6062
8 changed files with 28 additions and 14 deletions

View File

@@ -249,6 +249,7 @@ public class ZLMHttpHookListener {
String channelId = ssrcTransactionForAll.get(0).getChannelId();
DeviceChannel deviceChannel = storager.queryChannel(deviceId, channelId);
if (deviceChannel != null) {
result.setEnable_audio(deviceChannel.isHasAudio());
}
// 如果是录像下载就设置视频间隔十秒
@@ -257,6 +258,11 @@ public class ZLMHttpHookListener {
result.setEnable_audio(true);
result.setEnable_mp4(true);
}
// 如果是talk对讲则默认获取声音
if (ssrcTransactionForAll.get(0).getType() == VideoStreamSessionManager.SessionType.talk) {
result.setEnable_audio(true);
}
}
return result;
}