-
-
Notifications
You must be signed in to change notification settings - Fork 92
Add audio jitter options to RTCConfiguration #231
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -28,6 +28,11 @@ | |||||||||||
| */ | ||||||||||||
| public class RTCConfiguration { | ||||||||||||
|
|
||||||||||||
| /** | ||||||||||||
| * Default maximum number of packets in the audio jitter buffer. | ||||||||||||
| */ | ||||||||||||
| public static final int kAudioJitterBufferMaxPackets = 200; | ||||||||||||
|
|
||||||||||||
| /** | ||||||||||||
| * A list of ICE server's describing servers available to be used by ICE, | ||||||||||||
| * such as STUN and TURN servers. | ||||||||||||
|
|
@@ -64,6 +69,21 @@ public class RTCConfiguration { | |||||||||||
| */ | ||||||||||||
| public PortAllocatorConfig portAllocatorConfig; | ||||||||||||
|
|
||||||||||||
| /** | ||||||||||||
| * The maximum number of packets that can be stored in the NetEq audio | ||||||||||||
| * jitter buffer. Can be reduced to lower tolerated audio latency. | ||||||||||||
| */ | ||||||||||||
| public int audioJitterBufferMaxPackets = kAudioJitterBufferMaxPackets; | ||||||||||||
|
|
||||||||||||
| /** Whether to use the NetEq "fast mode" which will accelerate audio quicker | ||||||||||||
| * if it falls behind. | ||||||||||||
|
Comment on lines
+78
to
+79
|
||||||||||||
| /** Whether to use the NetEq "fast mode" which will accelerate audio quicker | |
| * if it falls behind. | |
| /** | |
| * Whether to use the NetEq "fast mode" which will accelerate audio quicker | |
| * if it falls behind. |
Copilot
AI
Dec 25, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new audio jitter buffer fields lack test coverage. Based on the existing test pattern in RTCPeerConnectionTests.configuration(), these fields should be tested to verify they are properly round-tripped through the JNI layer (set in Java configuration, create peer connection, retrieve configuration, and verify values match).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Incorrect field is being used for the boolean value. The field 'audioJitterBufferMaxPackets' is being set twice (once on line 63 as an int, and again on line 64 as a boolean), while 'audioJitterBufferFastAccelerate' is never set. This should use 'audioJitterBufferFastAccelerate' instead of 'audioJitterBufferMaxPackets'.