Subscribe to custom tags

TVSDK prepares PTTimedMetadata 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 PTSDKConfig.

    IMPORTANT

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

    For example:

    NSArray *customHLSTags = [NSArray arrayWithObjects:@"#EXT-OATCLS-SCTE35",@"#EXT_CUSTOM_TAG2",nil]; 
    [PTSDKConfig  setSubscribedTags:customHLSTags];
    

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