# SSAI

Play midroll ads (Server Side Ad Insertion).

## How To

SSAI configuration can be simple or detailed:

### Simple

SSAI can be turned on/off by simply setting a `Boolean`:

    var player = TOP.createAndInitPlayer({
        config : {
            features : {
                ssai : true // Enables server side ad insertion using default config values
            }
        }
    });

### Detailed

To specify more configuration information, set a SSAIFeatureData object:

    var player = TOP.createAndInitPlayer({
        config : {
            features : {
                ssai : {
                    enabled : true, // Enables ssai
                    version : 'v2'  // v1 or v2
                }
            }
        }
    });