-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Update RTCRtpCodec
#3742
Conversation
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.
We have to be careful not to introduce breaking changes.
Otherwise this is fine.
crates/web-sys/webidls/unstable/RTCRtpEncodingParameters.webidl
Outdated
Show resolved
Hide resolved
required DOMString mimeType; | ||
required unsigned long clockRate; |
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.
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.
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.
Can you add a changelog entry or modify the last one you made?
DOMString mimeType; | ||
unsigned long clockRate; |
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.
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.
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.
Could you add a newline at the end of this file and the other as well?
This PR updates
RTCRtpCodec
accordingly to spec.Also added unstable fields for
RTCRtpEncodingParameters
.