Skip to content

Fix Firefox not streaming when using VPX codecs#204

Merged
lukehb merged 2 commits intomasterfrom
ff-fix
Jul 24, 2024
Merged

Fix Firefox not streaming when using VPX codecs#204
lukehb merged 2 commits intomasterfrom
ff-fix

Conversation

@lukehb
Copy link
Copy Markdown
Contributor

@lukehb lukehb commented Jul 24, 2024

Relevant components:

  • Signalling server
  • Common library
  • Frontend library
  • Frontend UI library
  • Matchmaker
  • Platform scripts
  • SFU

Problem statement:

In FireFox 128.0 FireFox add support for the setCodecPreference API. This triggered a codepath that was previously only tested on Chrome to be executed. That codepath was unable to handle the slight difference codec parameters specified by Firefox and resulted in no codec being selected by the preferred codec API - meaning the browser would not display VPX video.

Solution

The solution was to make this code path more robust to mismatched parameters and if the parameters are unable to be matched then it will fallback to only using the codec name. This should be robust to future browser changes in Chrome, FireFox, Safari, etc.

Documentation

N/A

Test Plan and Compatibility

Test with:

  • FF + H.264
  • FF + VP8
  • Chrome + VP8
  • Chrome + H.264

All are able to connect.

@lukehb lukehb added bug Something isn't working auto-backport Used to specify we want a PR to auto backport to a branch, must be paired with auto-backport-to-UEX. auto-backport-to-UE5.4 Auto backport to UE 5.4 auto-backport-to-UE5.3 Auto backport to UE 5.3 auto-backport-to-UE5.2 Auto backport to UE 5.2 auto-backport-to-UE5.5 labels Jul 24, 2024
@lukehb lukehb requested a review from mcottontensor July 24, 2024 02:39
@github-actions
Copy link
Copy Markdown
Contributor

💚 All backports created successfully

Status Branch Result
UE5.4
UE5.3
UE5.2
UE5.5

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation and see the Github Action logs for details

lukehb added a commit that referenced this pull request Jul 24, 2024
[UE5.5] Merge pull request #204 from EpicGamesExt/ff-fix
@lukehb lukehb changed the title Added fuzzy matching to preferred codecs so Firefox can connect to VPX streams Fix Firefox not streaming when using VPX codecs Jul 24, 2024
mcottontensor added a commit that referenced this pull request Jul 25, 2024
[UE5.2] Merge pull request #204 from EpicGamesExt/ff-fix
mcottontensor added a commit that referenced this pull request Jul 25, 2024
[UE5.3] Merge pull request #204 from EpicGamesExt/ff-fix
mcottontensor added a commit that referenced this pull request Jul 25, 2024
[UE5.4] Merge pull request #204 from EpicGamesExt/ff-fix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-backport Used to specify we want a PR to auto backport to a branch, must be paired with auto-backport-to-UEX. auto-backport-to-UE5.2 Auto backport to UE 5.2 auto-backport-to-UE5.3 Auto backport to UE 5.3 auto-backport-to-UE5.4 Auto backport to UE 5.4 auto-backport-to-UE5.5 bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants