Skip to content

Instantly share code, notes, and snippets.

@brandonaaskov
Created April 25, 2012 02:25
Show Gist options
  • Save brandonaaskov/2485625 to your computer and use it in GitHub Desktop.
Save brandonaaskov/2485625 to your computer and use it in GitHub Desktop.
Enhancing Akamai Media Analytics with Brightcove
_experienceModule = _brightcovePlayer.getModule(APIModules.EXPERIENCE) as ExperienceModule; var modules:Array = _experienceModule.getModules();
for(var i in modules)
{
var modIdentifier:ModuleIdentifier = modules[i];
if(modIdentifier.path.indexOf("http://79423.analytics.edgesuite.net/csma/brightcove/BrightcoveCSMALoader.swf") != -1)
{
//Akamai Module Found
var AkamaiPluginHandle:Object = _experienceModule.getElementByID(modIdentifier.id); //Setting the Custom Information
AkamaiPluginHandle.setData("customName1"," customValue1");
AkamaiPluginHandle.setData("customName2"," customValue2");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment