Subscribe to custom tags

TVSDK prepares TimedMetadata objects for subscribed tags each time these objects are encountered in the content manifest.

Before the playback starts, you must subscribe to the tags. To be notified about custom tags in HLS manifests:

  1. Set the custom ad tag names globally by passing an array that contains the custom tags to setSubscribedTags in MediaPlayerItemConfig.

    IMPORTANT

    You must include the # prefix when working with HLS streams.

    For example:

    String[] array = new String[3]; 
    array[0] = "#EXT-X-ASSET"; 
    array[1] = "#EXT-X-BLACKOUT"; 
    array[2] = "#EXT-OATCLS-SCTE35"; 
    MediaPlayerItemConfig.setSubscribedTags(array);
    

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