# DAI Requirements

By default `TOP` will automatically enable DAI when the proper experience is configured (see examples).

## Required

1. Ads are properly configured

        var player = TOP.createAndInitPlayer({
            config : {
                ads : {
                    serverBaseUrl : "//demo.v.fwmrm.net/ad/g/1",
                    networkId     : 96749,
                    assetId       : "DemoVideoGroup.01",
                    section       : "DemoSiteGroup.01",
                    profile       : "global-js"
                }
            }
        });

2. Playing content which has `EXT-X-CUE-OUT` in the stream
3. Playing live content, and `isLive` set to `true`

        player.play({
            url    : 'stream.m3u8',
            isLive : true // Must be set
        });