Skip to main content
Version: Latest

Configuration

Configure the player with AI_PLAYER.setConfig(json) before init(). All options are optional. See setConfig for the full list.

v2-specific options

OptionTypeDescription
enableEarlyStartBooleanLoads the first part of the idle background first and starts earlier, reducing time-to-first-render. (default: false)
AI_PLAYER.setConfig({
enableEarlyStart: false,
});

Automatic mobile optimization

On mobile devices the player automatically shortens the idle background download so the avatar appears faster and uses less memory. This is applied automatically based on the device — there is no option to set. Desktop behavior is unchanged.

Next steps