Skip to content

Update codec preference handling for video#44581

Merged
hamishwillee merged 2 commits into
mdn:mainfrom
celalergun:patch-1
Jun 29, 2026
Merged

Update codec preference handling for video#44581
hamishwillee merged 2 commits into
mdn:mainfrom
celalergun:patch-1

Conversation

@celalergun

Copy link
Copy Markdown
Contributor

Code calling preferCodec in changeVideoCodec has missing parameters

There is a sample code in the documentation that calls preferCodec method with one parameter but the real method expects two parameters.

Description

I added the required parameter

Motivation

I was executing the code in my head but it did not feel right. I checked the rest of the documentation and noticed the mistake.

Additional details

None

Related issues and pull requests

None

Code calling preferCodec in changeVideoCodec has missing parameters
@celalergun celalergun requested a review from a team as a code owner June 26, 2026 07:35
@celalergun celalergun requested review from hamishwillee and removed request for a team June 26, 2026 07:35
@github-actions github-actions Bot added Content:Media Media docs size/xs [PR only] 0-5 LoC changed labels Jun 26, 2026
Comment thread files/en-us/web/media/guides/formats/webrtc_codecs/index.md Outdated
Comment thread files/en-us/web/media/guides/formats/webrtc_codecs/index.md Outdated
Comment thread files/en-us/web/media/guides/formats/webrtc_codecs/index.md
Co-authored-by: Hamish Willee <hamishwillee@gmail.com>
@github-actions github-actions Bot added size/s [PR only] 6-50 LoC changed and removed size/xs [PR only] 0-5 LoC changed labels Jun 29, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Preview URLs (1 page)

@hamishwillee hamishwillee left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks very much @celalergun - and congratulations on landing your first MDN PR.

@hamishwillee hamishwillee merged commit 37e31c3 into mdn:main Jun 29, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:Media Media docs size/s [PR only] 6-50 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants