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

Create RTCRtpCodec dictionary and reuse in RTCRtpCodecParameters and RTCRtpCodecCapability definitions #2834

Merged
merged 2 commits into from
Mar 16, 2023

Conversation

Orphis
Copy link
Contributor

@Orphis Orphis commented Mar 9, 2023

RTCRtpCodecParameters and RTCRtpCodecCapability are closely defined and would benefit from sharing their common members to prevent them from diverging.

It would also allow using an RTCRtpCodec instance with the upcoming encoder codec selection API.


Preview | Diff

@Orphis Orphis requested review from jan-ivar and aboba March 9, 2023 12:55
@Orphis Orphis force-pushed the merge_codec_definitions branch 2 times, most recently from dc3c905 to fe13b5f Compare March 9, 2023 13:24
@dontcallmedom dontcallmedom force-pushed the merge_codec_definitions branch from fe13b5f to f7ed8ea Compare March 10, 2023 11:20
Those two objects are closely related and the parameters type should
reuse the capability definition to prevent them from diverging.
It would also allow using an RTCRtpCodecParameters instance with the
upcoming encoder codec selection API.
@Orphis Orphis force-pushed the merge_codec_definitions branch from f7ed8ea to 9d7c8e8 Compare March 13, 2023 11:52
@Orphis Orphis changed the title Merge definition of RTCRtpCodecParameters with RTCRtpCodecCapability Create RTCRtpCodec dictionary and reuse in RTCRtpCodecParameters and RTCRtpCodecCapability definitions Mar 13, 2023
@alvestrand
Copy link
Contributor

I think this is a good and backwards-compatible change, which unifies definitions that are identical in a single place, preventing later divergence.

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.

5 participants