Overview

Example of how to implement Ad Marker detection using AMP Player SDK. The developer can implement the plugin by providing an admarker object in the player config:

var config = {
    plugins: {
        admarker: {
            resources: [{
                    src: "${paths.plugins}admarker/libs/scte35.js",
                    type: "text/javascript"
                },
                {
                    src: "${paths.plugins}admarker/Admarker.min.js",
                    debug: "${paths.plugins}admarker/Admarker.js",
                    type: "text/javascript"
                }
            ]
        }
    }
};

akamai.amp.AMP.create("amp", config);