# Persistence

Persistence allows the player to remember certain values the user has set. For example, if a user adjusts the volume to certain value, return visits will automatically set volume to that level (for each browser).

By default, `TOP` will persist values specified on ConfigStorageKey (see example).

## How To

See below on how to persist only specific values or opt out of persisting any values.

### Specific

To persist only the `volume` value (see ConfigStorageKey for available persist properties, also see example):

    var player = TOP.createAndInitPlayer({
        config: {
            player: {
                persist: ['volume'] // only volume will be persisted
            }
        }
    });

### Opt Out

To not persist any values (see example):

    var player = TOP.createAndInitPlayer({
        config: {
            player: {
                persist: null // nothing persisted
            }
        }
    });