Skip to content

RTCRtpReceiver.getParameters() and friends - return value not dict#24503

Merged
hamishwillee merged 10 commits intomainfrom
RTCRtpReceiver_getParameters
Feb 24, 2023
Merged

RTCRtpReceiver.getParameters() and friends - return value not dict#24503
hamishwillee merged 10 commits intomainfrom
RTCRtpReceiver_getParameters

Conversation

@hamishwillee
Copy link
Collaborator

@hamishwillee hamishwillee commented Feb 17, 2023

This continues the work started in #24239 of removing the dictionaries RTCRtpParameter, RTCRtpReceiveParameters, RTCRtpSendParameters in
RTCRtpReceiver.setParameters(), RTCRtpReceiver.getParameters(), RTCRtpReceiver.setParameters() replacing them with objects.

The associated work for BCD has already been done in mdn/browser-compat-data#18834

This is part of the work for #23677

@github-actions github-actions bot added the Content:WebAPI Web API docs label Feb 17, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Feb 17, 2023

Preview URLs (8 pages)
Flaws (15)

Note! 1 document with no flaws that don't need to be listed. 🎉

URL: /en-US/docs/Web/API/RTCRtpEncodingParameters
Title: RTCRtpEncodingParameters
Flaw count: 4

  • macros:
    • /en-US/docs/Web/API/RTCRtpEncodingParameters/active does not exist
    • /en-US/docs/Web/API/RTCRtpEncodingParameters/dtx does not exist
    • /en-US/docs/Web/API/RTCRtpEncodingParameters/rid does not exist
    • /en-US/docs/Web/API/RTCRtpDecodingParameters does not exist

URL: /en-US/docs/Web/API/RTCRtpCodecParameters
Title: RTCRtpCodecParameters
Flaw count: 5

  • macros:
    • /en-US/docs/Web/API/RTCRtpCodecParameters/payloadType does not exist
    • /en-US/docs/Web/API/RTCRtpCodecParameters/mimeType does not exist
    • /en-US/docs/Web/API/RTCRtpCodecParameters/clockRate does not exist
    • /en-US/docs/Web/API/RTCRtpCodecParameters/channels does not exist
    • /en-US/docs/Web/API/RTCRtpCodecParameters/sdpFmtpLine does not exist

URL: /en-US/docs/Web/API/RTCRtpSender/getParameters
Title: RTCRtpSender.getParameters()
Flaw count: 1

  • macros:
    • /en-US/docs/Web/API/RTCRtcpParameters does not exist

URL: /en-US/docs/Web/API/RTCRtpSender/setParameters
Title: RTCRtpSender.setParameters()
Flaw count: 1

  • macros:
    • /en-US/docs/Web/API/RTCRtcpParameters does not exist

URL: /en-US/docs/Web/API/RTCRtpReceiver
Title: RTCRtpReceiver
Flaw count: 1

  • macros:
    • /en-US/docs/Web/API/RTCRtpSynchronizationSource redirects to /en-US/docs/Web/API/RTCRtpReceiver/getSynchronizationSources

URL: /en-US/docs/Web/API/RTCRtpReceiver/getParameters
Title: RTCRtpReceiver.getParameters()
Flaw count: 1

  • macros:
    • /en-US/docs/Web/API/RTCRtcpParameters does not exist

URL: /en-US/docs/Web/Media/Formats/WebRTC_codecs
Title: Codecs used by WebRTC
Flaw count: 2

  • macros:
    • /en-US/docs/Web/API/MediaStreamTrack/track does not exist
    • /en-US/docs/Web/API/RTCRtpCodecParameters/payloadType does not exist

(comment last updated: 2023-02-24 03:10:35)

@github-actions github-actions bot added the Content:Media Media docs label Feb 17, 2023
- `rtcp`
- : An {{domxref("RTCRtcpParameters")}} object providing the configuration parameters used for {{Glossary("RTCP")}} on the sender or receiver.
This parameter cannot be changed once initially set.
- `degradationPreference` {{deprecated_inline}} {{optional_inline}} <!-- removed from spec. May have been or be in chrome -->
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

FYI, I made the objects from the get call match the objects in the set call. This degradationPreference was revoked from spec and is not in BCD, but may be in some versions of chrome.

There was a priority field I removed because it never had an impl..

@hamishwillee hamishwillee marked this pull request as ready for review February 17, 2023 04:07
@hamishwillee hamishwillee requested review from a team as code owners February 17, 2023 04:07
@hamishwillee hamishwillee requested review from wbamberg and removed request for a team February 17, 2023 04:07
"asadotzler"
]
},
"Web/API/Document_object_model/Using_the_Document_Object_Model": {
Copy link
Contributor

Choose a reason for hiding this comment

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

Side comment, I wonder why this is in this PR...

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok, it is lexicographic ordering fix. I will investigate this in a separate PR. This is harmless.

@teoli2003
Copy link
Contributor

Still a small redirect problem (orphaned pages) to fix and this is good to go.

@github-actions
Copy link
Contributor

This pull request has merge conflicts that must be resolved before it can be merged.

1 similar comment
@github-actions
Copy link
Contributor

This pull request has merge conflicts that must be resolved before it can be merged.

@hamishwillee
Copy link
Collaborator Author

@teoli2003 Thanks for the review. I have rebased. Can I ignore the build error about redirects ... and if not, how to I fix this? I did the redirects in the "normal" way using the redirect option when deleting.

@hamishwillee hamishwillee force-pushed the RTCRtpReceiver_getParameters branch from f4ad41a to fd8aa86 Compare February 20, 2023 23:17
@hamishwillee hamishwillee requested review from a team and schalkneethling as code owners February 20, 2023 23:17
@hamishwillee hamishwillee removed the request for review from a team February 20, 2023 23:17
@github-actions github-actions bot added Content:Learn Learning area docs Content:Other Any docs not covered by another "Content:" label Content:wasm WebAssembly docs labels Feb 20, 2023
@hamishwillee hamishwillee force-pushed the RTCRtpReceiver_getParameters branch from fd8aa86 to 91bb4d5 Compare February 20, 2023 23:19
@github-actions github-actions bot removed Content:Glossary Glossary entries Content:Other Any docs not covered by another "Content:" label Content:CSS Cascading Style Sheets docs Content:wasm WebAssembly docs Content:Learn Learning area docs Content:JS JavaScript docs Content:HTML Hypertext Markup Language docs Content:HTTP HTTP docs labels Feb 20, 2023
@hamishwillee
Copy link
Collaborator Author

@teoli2003 The redirects from this are definitely correct - i.e. the message says the files don't exist, but they most definitely do. Further I used the proper tools to create these redirects so I'm not sure what else I can do.

I think it might be a lint issue. OK to merge this and see if it breaks anything?

@bsmth
Copy link
Member

bsmth commented Feb 22, 2023

It looks like there's an issue with this one:

yarn content fix-redirects en-us
removing orphaned redirect (from exists): /en-US/docs/Web/API/RTCRtpParameters  /en-US/docs/Web/API/RTCRtpSender/setParameters
info: Fixed en-us

yarn content validate-redirects en-us --strict
info: ✓ redirects for en-us looking good!
info: 🍾 All is well in the world of redirects 🥂

@bsmth
Copy link
Member

bsmth commented Feb 22, 2023

Shall we remove this line in the redirect (using yarn content fix-redirects en-us) then add a redirect in a follow-up PR?

@bsmth
Copy link
Member

bsmth commented Feb 22, 2023

@hamishwillee
Copy link
Collaborator Author

hamishwillee commented Feb 24, 2023

@bsmth That shouldn't be the problem because this PR deletes that file. Though as you say, that is what is reported. I'm going to remove the redirects from this PR, merge, and recreate them in another.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:Media Media docs Content:WebAPI Web API docs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants