-
-
Notifications
You must be signed in to change notification settings - Fork 85
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
base: main
Are you sure you want to change the base?
Changes from all commits
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. | ||
| */ | ||
| public boolean audioJitterBufferFastAccelerate; | ||
|
|
||
| /** | ||
| * The minimum delay in milliseconds for the audio jitter buffer. | ||
| */ | ||
| public int audioJitterBufferMinDelayMs; | ||
|
Comment on lines
+72
to
+86
|
||
|
|
||
| /** | ||
| * Creates an instance of RTCConfiguration. | ||
|
|
||
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 JavaDoc comment formatting is inconsistent with the other comments in this file. The opening '/**' should be on its own line, and there should be no leading tabs before the asterisks. This comment should follow the same style as the comments above and below it.