Chromecast
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}amp-amp-chromecast/Chromecast.min.css", debug: "#{paths.plugins}amp-amp-chromecast/Chromecast.css", type: "text/css", async: true},
{src: "#{paths.plugins}amp-amp-chromecast/Chromecast.min.js", debug: "#{paths.plugins}amp-amp-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);