web: Default autoplay to 'auto'

This commit is contained in:
Nathan Adams 2020-11-20 19:01:17 +01:00 committed by Mike Welsh
parent 600d267bf3
commit 103f0d69e8
2 changed files with 2 additions and 2 deletions

View File

@ -76,7 +76,7 @@ export interface Config {
/**
* Controls the auto-play behaviour of Ruffle.
*
* @default AutoPlay.Off
* @default AutoPlay.Auto
*/
autoplay?: AutoPlay;

View File

@ -327,7 +327,7 @@ export class RufflePlayer extends HTMLElement {
...(window.RufflePlayer?.config ?? {}),
...this.config,
};
const autoplay = config.autoplay ?? AutoPlay.Off;
const autoplay = config.autoplay ?? AutoPlay.Auto;
const unmuteVisibility = config.unmuteOverlay ?? UnmuteOverlay.Visible;
if (