Add Advertising

  1. Define the advertising metadata.

    var auditudeSettings = new AdobePSDK.AuditudeSettings(); 
      auditudeSettings.domain = "auditude.com"; 
      auditudeSettings.mediaId = "adbe_tearsofsteel2"; 
      auditudeSettings.zoneId = "123869";
    
  2. Add the advertising metadata to the MediaResource.

    var mediaResource =  
      new AdobePSDK.MediaResource(resourceUrl, resourceType, auditudeSettings, false);
    
  3. Add the settings to the config and add a SpliceOut parser factory.

    var config = new AdobePSDK.MediaPlayerItemConfig(); 
    config.advertisingMetadata = auditudeSettings; 
    config.advertisingFactory = new ExtCueOutContentFactory(auditudeSettings);
    
  4. Add the ExtCueOutContentFactory to the library section.

  5. Download the ExtCueOutContentFactory.js from the library section and place it in the working folder.

    <script src= "frameworks/player/dash.min.js"></script> 
    <script src= "frameworks/player/primetimemain.min.js"></script> 
    <script src= "frameworks/player/swfobject.js"></script> 
    <script src= "frameworks/player/primetimeei.min.js"></script> 
    <script src= "ExtCueOutContentFactory.js"></script>
    
  6. Test your configuration.

On this page

Adobe Summit Banner

A virtual event April 27-28.

Expand your skills and get inspired.

Register for free
Adobe Summit Banner

A virtual event April 27-28.

Expand your skills and get inspired.

Register for free
Adobe Maker Awards Banner

Time to shine!

Apply now for the 2021 Adobe Experience Maker Awards.

Apply now
Adobe Maker Awards Banner

Time to shine!

Apply now for the 2021 Adobe Experience Maker Awards.

Apply now