Skip to content

RtpParameters: add msid optional field#1634

Merged
ibc merged 12 commits intov3from
add-msid-in-rtp-parameters
Oct 30, 2025
Merged

RtpParameters: add msid optional field#1634
ibc merged 12 commits intov3from
add-msid-in-rtp-parameters

Conversation

@ibc
Copy link
Member

@ibc ibc commented Oct 25, 2025

Details

Bonus tracks

TODO

  • Website documentation.

@ibc ibc changed the title RtpParameters: add msid RtpParameters: add msid optional field Oct 26, 2025
@ibc ibc marked this pull request as ready for review October 26, 2025 19:56
@ibc ibc marked this pull request as draft October 26, 2025 20:06
@ibc ibc marked this pull request as ready for review October 26, 2025 20:57
Comment on lines -497 to +498
rid: data.rid() ?? undefined,
rid: data.rid() || undefined,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is because if rid is empty string we want it to become undefined. Same in all similar changes below.

Comment on lines -109 to -112
if (this->mid.empty())
{
MS_THROW_TYPE_ERROR("empty mid");
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was a terrible idea. In the copy constructor we may perfectly copy from a RtpParameters instance whose mid was not set and hence it has empty string as value, and this block of code would literally throw. There is no reason for this check here. If mid is not set then it is an empty string in RtpParameters, but then, when moving it to Node/Rust, we avoid serializing it so we are good. This check was buggy and totally unneeded.

@ibc ibc requested a review from nazar-pc October 26, 2025 21:04
@ibc ibc merged commit 482d55d into v3 Oct 30, 2025
58 checks passed
@ibc ibc deleted the add-msid-in-rtp-parameters branch October 30, 2025 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

cargo build fails in latest macOS due to removed macro _LIBCPP_ENABLE_ASSERTIONS

3 participants

Comments