Using Chromecast with AMP

Implementation of Chromecast into AMP. The plugin can be implemented by providing a chromecast object in the player config:

var config = {
  plugins: {
    chromecast: {
      resources: [
        {src: "#{paths.plugins}chromecast/Chromecast.min.css", debug: "#{paths.plugins}chromecast/Chromecast.css", type: "text/css", async: true},
        {src: "#{paths.plugins}chromecast/Chromecast.min.js", debug: "#{paths.plugins}chromecast/Chromecast.js", type: "text/javascript", async: true}
      ],
      sdk: [
        {src: "//www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1", type: "text/javascript"},
      ],
      applicationId: "CC1AD845"
    }
  }
};
akamai.amp.AMP.create("amp", config);