web: Default autoplay to 'auto'
This commit is contained in:
parent
600d267bf3
commit
103f0d69e8
|
@ -76,7 +76,7 @@ export interface Config {
|
|||
/**
|
||||
* Controls the auto-play behaviour of Ruffle.
|
||||
*
|
||||
* @default AutoPlay.Off
|
||||
* @default AutoPlay.Auto
|
||||
*/
|
||||
autoplay?: AutoPlay;
|
||||
|
||||
|
|
|
@ -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 (
|
||||
|
|
Loading…
Reference in New Issue