Event Management
Implementation of live event management into AMP. The plugin can be implemented by providing a eventmanagement
object in the player config:
var config = {
plugins: {
eventmanagement : {
resources: [
{src: "#{paths.plugins}eventmanagement/Eventmanagement.min.js", debug: "#{paths.plugins}eventmanagement/Eventmanagement.js", type: "text/javascript"},
{src: "#{paths.plugins}eventmanagement/Eventmanagement.min.css", debug: "#{paths.plugins}eventmanagement/Eventmanagement.css", type: "text/css"}
],
url : "playerstate.txt",
interval : 5,
states : [{
id : "pre",
poster : "pre_slate.png"
}, {
id : "post",
poster : "post_slate.png"
}, {
id : "error",
poster : "error_slate.png"
}, {
id : "off",
poster : "off_slate.png"
}]
}
}
};
akamai.amp.AMP.create("amp", config);