From 655315516bd5c55394d607f1db57afb269dd2a0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?ZX=E5=A4=8F=E5=A4=9C=E4=B9=8B=E9=A3=8E?= Date: Fri, 5 Jul 2024 18:56:50 +0800 Subject: [PATCH] Implement missing methods about audio information --- pom.xml | 2 +- .../impl/entity/channel/VoiceChannelImpl.java | 16 +++++++++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 3dd4d32e..e22b8a59 100644 --- a/pom.xml +++ b/pom.xml @@ -51,7 +51,7 @@ ${java.version} ${java.version} 2.19.0 - acac2d30 + a32cf37c UTF-8 0.12.4+mixin.0.8.5 9.3 diff --git a/src/main/java/snw/kookbc/impl/entity/channel/VoiceChannelImpl.java b/src/main/java/snw/kookbc/impl/entity/channel/VoiceChannelImpl.java index 2c2a4c02..93f5037c 100644 --- a/src/main/java/snw/kookbc/impl/entity/channel/VoiceChannelImpl.java +++ b/src/main/java/snw/kookbc/impl/entity/channel/VoiceChannelImpl.java @@ -155,12 +155,16 @@ public static final class StreamingInfoImpl implements StreamingInfo { private final int port; private final int rtcp_port; private final int bitrate; + private final String audio_ssrc; + private final String audio_pt; - public StreamingInfoImpl(String ip, int port, int rtcp_port, int bitrate) { + public StreamingInfoImpl(String ip, int port, int rtcp_port, int bitrate, String audioSsrc, String audioPt) { this.ip = ip; this.port = port; this.rtcp_port = rtcp_port; this.bitrate = bitrate; + audio_ssrc = audioSsrc; + audio_pt = audioPt; } @@ -183,6 +187,16 @@ public int getRTCPPort() { public int getBitRate() { return bitrate; } + + @Override + public String getAudioSSRC() { + return audio_ssrc; + } + + @Override + public String getAudioPayloadType() { + return audio_pt; + } } @Override