# Configuration Options

Certain features of `TOP` can be toggled depending on when configuration is being done (see Config Levels for more on how to configure `TOP`).

## How To

Available types of configuration:

Type | Description
--- | ---
Init | Only during player initialization
Config | During and after player initialization

### Init

The createAndInitPlayer API accepts an init config object (can only be set on player initialization) which allows you to specify the following:

- The html element to attach the player to
- The player config options (see Config below)

### Config

Other config options can be specified during player initialization and afterward (see adhoc and play).

## Categories

Commonly used configuration categories:

Category | Description
--- | ---
ads | Enable and configure ads
auth | Set authentication service type
cms | Set defaults for media.json and content.xml play back
features | Player feature configuration
media | General media play back behavior
player | Player-wide behavior, like autoPlay
plugins | Extras like analytics
ui | User interface