Skip to content

Commit

Permalink
Implement missing methods about audio information
Browse files Browse the repository at this point in the history
  • Loading branch information
SNWCreations committed Jul 5, 2024
1 parent 835138d commit 6553155
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target>
<log4j2.version>2.19.0</log4j2.version>
<jkook.version>acac2d30</jkook.version>
<jkook.version>a32cf37c</jkook.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<mixin.version>0.12.4+mixin.0.8.5</mixin.version>
<asm.version>9.3</asm.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}


Expand All @@ -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
Expand Down

0 comments on commit 6553155

Please sign in to comment.