Skip to content
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

Update RTCRtpCodec #3742

Closed

Conversation

logist322
Copy link
Contributor

This PR updates RTCRtpCodec accordingly to spec.
Also added unstable fields for RTCRtpEncodingParameters.

Copy link
Collaborator

@daxpedda daxpedda left a comment

Choose a reason for hiding this comment

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

We have to be careful not to introduce breaking changes.
Otherwise this is fine.

crates/web-sys/webidls/enabled/RTCRtpSender.webidl Outdated Show resolved Hide resolved
Comment on lines 55 to 56
required DOMString mimeType;
required unsigned long clockRate;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
required DOMString mimeType;
required unsigned long clockRate;
DOMString mimeType;
unsigned long clockRate;

I believe both of these can't be required, because it changes the new() function of RTCRtpCodecParameters, which is a breaking change.

@logist322 logist322 requested a review from daxpedda December 13, 2023 12:46
Copy link
Collaborator

@daxpedda daxpedda left a comment

Choose a reason for hiding this comment

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

Can you add a changelog entry or modify the last one you made?

Comment on lines 55 to 56
DOMString mimeType;
unsigned long clockRate;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Apologies, I think these two have to be required after all.
You should take a look yourself and see what causes a breaking change in the API or not.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Could you add a newline at the end of this file and the other as well?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants