[FR] Add the scheduled sending mode for live mode sending#3198
Draft
ethouris wants to merge 37 commits into
Draft
[FR] Add the scheduled sending mode for live mode sending#3198ethouris wants to merge 37 commits into
ethouris wants to merge 37 commits into
Conversation
added 7 commits
June 16, 2025 10:54
There was a problem hiding this comment.
CodeQL found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.
| namespace srt | ||
| { | ||
|
|
||
| // export import .api default; |
Check notice
Code scanning / CodeQL
Commented-out code Note
Comment on lines
+9078
to
+9081
| // Will be used to determine rexmit packets to schedule. | ||
| // If remain with this value, there's nothing to schedule. | ||
| int32_t sched_lo = SRT_SEQNO_NONE, sched_hi = SRT_SEQNO_NONE; | ||
|
|
Check notice
Code scanning / CodeQL
Futile conditional Note
| typedef sync::steady_clock::time_point time_point; | ||
| typedef sync::steady_clock::duration duration; | ||
| CShaper (double min_tokens_capacity): | ||
| m_BurstPeriod(sync::milliseconds_from(BURSTPERIOD_DEFAULT())), |
Check warning
Code scanning / CodeQL
Lossy function result cast Warning
added 15 commits
November 6, 2025 18:33
…r. Put CSndLossList to CSndBuffer. Explicit save/restore for SndRateMeasurement
…g destructor for CSndBuffer internal container
…ethods in one place. Added unit tests for sender loss handling.
added 6 commits
December 8, 2025 14:36
…implemented walkEntries and added test for it. Some fixes from CodeQL reports
| // for measurement the speed may also increase in time). Note that the LAST | ||
| // packet in the group must be sent at time not earlier than RTT + LATENCY + EAT. | ||
| // - In flush time, usually set when difference frames are to be scheduled, | ||
| // the step time should be defined as: |
Check notice
Code scanning / CodeQL
Unused local variable Note
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The new scheduled sending mode should work the following way:
To use this mode, add the
SRTO_SENDMODEoption with value 1.sendmodecan be used in the applications in the URI.Development phases:
m_tdSendIntervalas the sending interval base and then just forfeit time exceeding 1 second. Them_tdSendIntervalin case of live mode is using the "virtually unlimited" value or MAXBW can control the limit, as well as INPUTBW/OHEADBW. The "forfeit" mechanism means simply that you may potentially send packets that fast, but you don't because the packets scheduled for sending at the input (thesrt_sendmsg2calls) are sent slower than that. This means simply that packets are sent immediately, like before.