Sound
Some stories and games contain video or audio. Sound is a global SDK setting: it applies across every reader, so muting it once mutes all subsequent content.
Default Muted Setting
To open the story reader muted by default, set defaultMuted: true in StoryManagerConfig:
const storyManager = await StoryManager.create({
apiKey: '<your-api-key>',
defaultMuted: true,
});
Toggle sound at runtime
Pass true to enable sound or false to mute it:
storyManager.changeSound(true); // enable audio
storyManager.changeSound(false); // mute audio
Custom sound icon
To customize the reader sound button icon, use appearanceManager.setSoundImage:
appearanceManager.setSoundImage('sound_on', 'sound_muted');