Agregar publicidad

  1. Defina los metadatos publicitarios.

    var auditudeSettings = new AdobePSDK.AuditudeSettings(); 
      auditudeSettings.domain = "auditude.com"; 
      auditudeSettings.mediaId = "adbe_tearsofsteel2"; 
      auditudeSettings.zoneId = "123869";
    
  2. Agregue los metadatos publicitarios a MediaResource.

    var mediaResource =  
      new AdobePSDK.MediaResource(resourceUrl, resourceType, auditudeSettings, false);
    
  3. Agregue la configuración a la configuración y agregue una fábrica de analizador SpliceOut.

    var config = new AdobePSDK.MediaPlayerItemConfig(); 
    config.advertisingMetadata = auditudeSettings; 
    config.advertisingFactory = new ExtCueOutContentFactory(auditudeSettings);
    
  4. Agregue ExtCueOutContentFactory a la sección de la biblioteca.

  5. Descargue el ExtCueOutContentFactory.js de la sección de la biblioteca y colóquelo en la carpeta de trabajo.

    <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. Pruebe la configuración.

En esta página

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