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

change-codecs: move codec selection to the receiver #1640

Merged
merged 1 commit into from
Nov 20, 2023

Conversation

fippo
Copy link
Collaborator

@fippo fippo commented Nov 20, 2023

While using setCodecPreferences on the sending side works because the answerer will match the sender's order, using it on the receiving end is more semantically correct.

See this comment
w3c/webrtc-encoded-transform#186 (comment)

Copy link
Contributor

@alvestrand alvestrand left a comment

Choose a reason for hiding this comment

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

Does the sample log what codec is actually being used?

transceiver.setCodecPreferences(codecs);
console.log('Preferred video codec', selectedCodec);
}
}
codecPreferences.disabled = true;
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this still reasonable? (I assume it's turned back on after negotiation finishes)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It is going to be turned until the end of the call until we support @Orphis' cool stuff

src/content/peerconnection/change-codecs/js/main.js Outdated Show resolved Hide resolved
While using setCodecPreferences on the sending side works because
the answerer will match the sender's order, using it on the receiving
end is more semantically correct.

See this comment
w3c/webrtc-encoded-transform#186 (comment)
@fippo fippo force-pushed the setcodecpreferences-receiver branch from ff61251 to cb5943b Compare November 20, 2023 10:28
@alvestrand alvestrand merged commit 9b9b4d6 into webrtc:gh-pages Nov 20, 2023
3 checks passed
@fippo fippo deleted the setcodecpreferences-receiver branch November 20, 2023 10:31
fippo added a commit to fippo/webrtc that referenced this pull request Nov 25, 2023
follow-up to webrtc#1640 which got copy-pasted quite a bit.
fippo added a commit to fippo/webrtc that referenced this pull request Nov 25, 2023
follow-up to webrtc#1640 which got copy-pasted quite a bit.
fippo added a commit to fippo/simulcast-playground that referenced this pull request Nov 27, 2023
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