Skip to content

Commit

Permalink
tests: disable firefox autoplay blocking
Browse files Browse the repository at this point in the history
  • Loading branch information
thijstriemstra committed Apr 30, 2019
1 parent 419412a commit 09a6ba8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,12 @@ var chromeFlags = [
var firefoxFlags = {
'media.navigator.permission.disabled': true,
'media.navigator.streams.fake': true,
'focusmanager.testmode': true
'focusmanager.testmode': true,
// disable autoplay blocking, see https://www.ghacks.net/2018/09/21/firefox-improved-autoplay-blocking/
'media.autoplay.default': 0,
'media.autoplay.ask-permission': false,
'media.autoplay.enabled.user-gestures-needed': false,
'media.autoplay.block-webaudio': false
};
var ci = process.env.TRAVIS || process.env.APPVEYOR;

Expand Down

0 comments on commit 09a6ba8

Please sign in to comment.