Skip to content

media: re-add Safari17Handler to fix simulcast max bitrate#791

Open
kevinwhereby wants to merge 2 commits intomainfrom
kevinhanna/cob-2031-re-add-safari17handleron
Open

media: re-add Safari17Handler to fix simulcast max bitrate#791
kevinwhereby wants to merge 2 commits intomainfrom
kevinhanna/cob-2031-re-add-safari17handleron

Conversation

@kevinwhereby
Copy link
Contributor

@kevinwhereby kevinwhereby commented Nov 10, 2025

Description

Summary:
Fixes the Safari12 implementation in mediasoup-client to limit simulcast bitrate when maxBitrate is provided

Related Issue:
https://linear.app/whereby/issue/COB-2031/re-add-safari17handleron

Testing

  1. pnpm build this repo
  2. cd packages/media && yalc publish
  3. in pwa repo, yalc add @whereby.com/media@2.2.0
  4. start local stack
  5. join an SFU call in safari with ?stats
  6. join the same room in a chrome client with ?stats
  7. check the bitrate of the simulcast streams, both chrome and safari should show roughly the same bitrates

Screenshots/GIFs (if applicable)

image

Checklist

  • My code follows the project's coding standards.
  • Prefixed the PR title and commit messages with the service or package name
  • I have written unit tests (if applicable).
  • I have updated the documentation (if applicable).
  • By submitting this pull request, I confirm that my contribution is made
    under the terms of the MIT license.

Additional Information

see linear ticket for module resolution issue discussion

this is taken directly from the mediasoup-client repo (with imports
adjusted)
the next commit will add the changes that make it work with maxBandwidth
for clarity
@changeset-bot
Copy link

changeset-bot bot commented Nov 10, 2025

🦋 Changeset detected

Latest commit: bbd2e1e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 5 packages
Name Type
@whereby.com/media Minor
@whereby.com/browser-sdk Patch
@whereby.com/core Patch
@whereby.com/assistant-sdk Patch
@whereby.com/react-native-sdk Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

encodings aren't respected if provided in `addTransceiver` so we wait
until the connection is negotiated
@kevinwhereby kevinwhereby force-pushed the kevinhanna/cob-2031-re-add-safari17handleron branch from 6ab2c45 to bbd2e1e Compare November 10, 2025 16:31
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.

1 participant