Skip to content

Commit

Permalink
openvidu-test-browsers: fix h264 codec in Selenium-managed Firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
pabloFuente committed Dec 4, 2024
1 parent d1cca5e commit 01530fe
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ public FirefoxUser(String userName, int timeOfWaitInSeconds, boolean disableOpen
options.addPreference("media.gmp-gmpopenh264.enabled", false);
}

// ATTENTION: WITHOUT THIS FLAG H264 DOES NOT WORK IN SELENIUM-MANAGED FIREFOX
options.addPreference("media.webrtc.hw.h264.enabled", true);

if (headless) {
options.addArguments("--headless");
options.addPreference("media.volume_scale", "0.0");
Expand Down

0 comments on commit 01530fe

Please sign in to comment.