-
Notifications
You must be signed in to change notification settings - Fork 320
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
Default stack size change and Rolling buffer config rework #2011
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #2011 +/- ##
===========================================
- Coverage 88.68% 88.66% -0.02%
===========================================
Files 48 48
Lines 12726 12741 +15
===========================================
+ Hits 11286 11297 +11
- Misses 1440 1444 +4 ☔ View full report in Codecov by Sentry. |
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.
Nice!
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.
LGTM!
4c1e457
to
c589984
Compare
pKvsRtpTransceiver->pRollingBufferConfig->rollingBufferDurationSec = rollingBufferDurationSec; | ||
} else { | ||
DLOGW("Rolling buffer duration does not fit range (%lf sec - %lf sec). Setting to default %lf sec", MIN_ROLLING_BUFFER_DURATION_IN_SECONDS, | ||
MAX_ROLLING_BUFFER_DURATION_IN_SECONDS, DEFAULT_ROLLING_BUFFER_DURATION_IN_SECONDS); |
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.
You should add what the current value is set to. Also, should add "audio" and "video" for the duration lines.
The below logs are missing that info..
2024-06-28 23:40:41.721 WARN setUpRollingBufferConfigInternal(): Rolling buffer duration does not fit range (0.100000 sec - 10.000000 sec). Setting to default 3.000000 sec
2024-06-28 23:40:41.721 WARN setUpRollingBufferConfigInternal(): Rolling buffer bitrate does not fit range (104857.600000 bps - 251658240.000000 bps) for audio. Setting to default 1024000.000000 bps
2024-06-28 23:40:41.722 WARN setUpRollingBufferConfigInternal(): Rolling buffer duration does not fit range (0.100000 sec - 10.000000 sec). Setting to default 3.000000 sec
2024-06-28 23:40:41.722 WARN setUpRollingBufferConfigInternal(): Rolling buffer bitrate does not fit range (104857.600000 bps - 251658240.000000 bps) for video. Setting to default 5242880.000000 bps
if (pKvsRtpTransceiver != NULL) { | ||
if (pKvsRtpTransceiver->pRollingBufferConfig == NULL) { | ||
// Passing in 0,0. The default values will be set up since application has not set up rolling buffer config with the | ||
// createRollingBufferConfig() call |
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.
It will also print out a bunch of extra logs (WARN)?
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.
(making it look like an error of some kind)
@@ -1633,6 +1630,19 @@ typedef struct { | |||
* @{ | |||
*/ | |||
|
|||
/** | |||
* @brief Set up rolling buffer configuration - max duration of media to store (sec) and expected max bitrate (bips) of the encoded media |
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.
In some areas, bips is used. Others, bps is used. Please adjust for consistency
remote timerQueueKick as it is causing TURN failures due to lock contention
remove timerQueueKick as it is causing TURN failures due to lock contention
|
||
For more information on these stats, refer to [AWS Docs](https://docs.aws.amazon.com/kinesisvideostreams-webrtc-dg/latest/devguide/kvswebrtc-reference.html) | ||
|
||
The SDK **disables** generating these stats by default. In order to be enable the SDK to calculate these stats, the application needs to set the following field: |
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 SDK **disables** generating these stats by default. In order to be enable the SDK to calculate these stats, the application needs to set the following field: | |
The SDK **disables** generating these stats by default. In order to enable the SDK to calculate these stats, the application needs to set the following field: |
Superseded by the linked PRs. |
Issue #, if available:
What was changed?
RtcRtpTransceiverInit
struct (which causes garbage values for config if the application does not memset the struct, leading to a crash) to surfacing an API to set up the values. The parameters are now internal to the SDK and can only be set up via this API call.Why was it changed?
How was it changed?
createRollingBufferConfig
APIWhat testing was done for the changes?
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.