---
url: https://cri-middleware.github.io/SSPlayerForWeb/api/@spritestudio/ssplayer-webgl/interfaces/SSPlayerOptions.md
---
# Interface: SSPlayerOptions

Defined in: [ssplayer-webgl/src/SSPlayer.ts:116](https://github.com/cri-middleware/SSPlayerForWeb/blob/eb9d544908210befb40d3729ed6fde7adc44f61a/packages/ssplayer-webgl/src/SSPlayer.ts#L116)

## Properties

### autoAudio?

> `optional` **autoAudio?**: `boolean`

Defined in: [ssplayer-webgl/src/SSPlayer.ts:133](https://github.com/cri-middleware/SSPlayerForWeb/blob/eb9d544908210befb40d3729ed6fde7adc44f61a/packages/ssplayer-webgl/src/SSPlayer.ts#L133)

Automatically play the animation's sounds (default `true`).

When the loaded SSAB references sounds and no `audioManager` has been set, the
player creates a default `SSWebAudioManager` while loading and wires it up —
so sound "just works" with zero consumer code, like ssplayer-pixi. The audio
adapter is loaded via a **dynamic import**, so it is a separate chunk fetched
only for a sound-bearing pack: packs without sound (and the `./lite` build)
never pull in any audio code, keeping the default bundle within the size
budget.

Set to `false` for full manual control (attach your own `IAudioManager`, or
none) — nothing audio-related is then loaded automatically. Attaching your own
manager *after* `load()` also works, but with `autoAudio` left on the default
one has been created by then.

***

### resourceManager?

> `optional` **resourceManager?**: [`SSWebGLResourceManager`](../classes/SSWebGLResourceManager.md)

Defined in: [ssplayer-webgl/src/SSPlayer.ts:143](https://github.com/cri-middleware/SSPlayerForWeb/blob/eb9d544908210befb40d3729ed6fde7adc44f61a/packages/ssplayer-webgl/src/SSPlayer.ts#L143)

Supply the player's texture manager instead of letting it build a plain
[SSWebGLResourceManager](../classes/SSWebGLResourceManager.md) on the surface's context.

This is the hook for hosts that resolve textures through their own engine:
`ssplayer-rmmz` subclasses it to load through RPG Maker MZ's `ImageManager`
so SS atlases go through the same cache (and the same encryption) as every
other game asset. Must belong to the same GL context as the surface.
