English
Interface: SSPlayerOptions
Defined in: ssplayer-webgl/src/SSPlayer.ts:116
Properties
autoAudio?
optionalautoAudio?:boolean
Defined in: ssplayer-webgl/src/SSPlayer.ts:133
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?
optionalresourceManager?:SSWebGLResourceManager
Defined in: ssplayer-webgl/src/SSPlayer.ts:143
Supply the player's texture manager instead of letting it build a plain SSWebGLResourceManager 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.