Browse Source

ignore: mute player for chrome autoplay (#93)

pull/92/head
Joe Forbes 7 years ago
committed by GitHub
parent
commit
79249f9870
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      test/karma.conf.js
  2. 2
      test/playback.test.js

12
test/karma.conf.js

@ -40,19 +40,11 @@ module.exports = function(config) {
customLaunchers: {
ChromeHeadlessWithFlags: {
base: 'ChromeHeadless',
flags: [
'--mute-audio',
'--no-sandbox',
'--no-user-gesture-required'
]
flags: [ '--no-sandbox' ]
},
ChromeBrowserStack: {
base: 'BrowserStack',
flags: [
'--mute-audio',
'--no-sandbox',
'--no-user-gesture-required'
],
flags: [ '--no-sandbox' ],
browser: 'chrome',
os: 'Windows',
os_version: '10'

2
test/playback.test.js

@ -30,7 +30,7 @@ QUnit.module('Playback', {
video.width = 600;
video.height = 300;
this.fixture.appendChild(video);
this.player = videojs(video);
this.player = videojs(video, { muted: true });
this.player.ready(done);
},
afterEach() {

Loading…
Cancel
Save