Skip to content

Commit d625dc8

Browse files
committed
Try with Chrome flags for audio...
1 parent 9f04adb commit d625dc8

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.circleci/config.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ commands:
3434
- run:
3535
name: download chrome
3636
command: |
37-
# Try adding a dummy sound device for Chrome...
38-
/usr/sbin/modprobe snd-dummy
3937
# TODO: Make these part of the base image
4038
apt-get install -q -y libu2f-udev libvulkan1 xdg-utils
4139
# wget -O ~/chrome.deb https://dl.google.com/linux/direct/google-chrome-beta_current_amd64.deb
@@ -312,12 +310,13 @@ commands:
312310
EMTEST_DETECT_TEMPFILE_LEAKS: "0"
313311
# --no-sandbox because we are running as root and chrome requires
314312
# this flag for now: https://crbug.com/638180
315-
CHROME_FLAGS_BASE: "--no-first-run -start-maximized --no-sandbox --use-gl=swiftshader --user-data-dir=/tmp/chrome-emscripten-profile --enable-experimental-web-platform-features --autoplay-policy=no-user-gesture-required"
313+
CHROME_FLAGS_BASE: "--no-first-run -start-maximized --no-sandbox --use-gl=swiftshader --user-data-dir=/tmp/chrome-emscripten-profile --enable-experimental-web-platform-features"
316314
CHROME_FLAGS_HEADLESS: "--headless=new --remote-debugging-port=1234"
317315
CHROME_FLAGS_WASM: "--enable-experimental-webassembly-features --js-flags=\"--experimental-wasm-stack-switching --experimental-wasm-type-reflection\""
318316
CHROME_FLAGS_NOCACHE: "--disk-cache-dir=/dev/null --disk-cache-size=1 --media-cache-size=1 --disable-application-cache --incognito"
317+
CHROME_FLAGS_AUDIO: "--autoplay-policy=no-user-gesture-required --use-fake-device-for-media-stream"
319318
command: |
320-
export EMTEST_BROWSER="/usr/bin/google-chrome $CHROME_FLAGS_BASE $CHROME_FLAGS_HEADLESS $CHROME_FLAGS_WASM $CHROME_FLAGS_NOCACHE"
319+
export EMTEST_BROWSER="/usr/bin/google-chrome $CHROME_FLAGS_BASE $CHROME_FLAGS_HEADLESS $CHROME_FLAGS_WASM $CHROME_FLAGS_NOCACHE $CHROME_FLAGS_AUDIO"
321320
# There are tests in the browser test suite that using libraries
322321
# that are not included by "./embuilder build ALL". For example the
323322
# PIC version of libSDL which is used by test_sdl2_misc_main_module

0 commit comments

Comments
 (0)