Skip to content

Conversation

@luisrivas
Copy link
Collaborator

@luisrivas luisrivas commented Nov 25, 2025

Pull Request Details

Jira link(s)

Description

Replace manual SDP manipulation for codec preferences with native RTCRtpTransceiver.setCodecPreferences() to align with modern practices for codec negotiation.

Burndown

Before review

  • Updated CHANGELOG.md if necessary
  • Added unit tests if necessary
  • Updated affected documentation
  • Verified locally with npm test
  • Manually sanity tested running locally
  • Included screenshot as PR comment (if needed)
  • Ready for review

Change:
- Use the native transceiver.setCodecPreferences instead of manually modifying the SDP.
- Relay on the browser's SDP negotiation to set the correct codecs instead of manually modifying the SDP.

class SafariRTCPeerConnection extends EventTarget {
constructor(configuration) {
constructor(configuration, options = {}) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I see that the Chrome RTCPeerConnection has a default value for configuration where this Safari one does not.

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.

4 participants