Show Menu
TOPICS×

Config class methods for tags

You can configure custom tag names in a stream with the MediaPlayerItemConfig class.
To create a new MediaPlayerItemConfig :
var mediaPlayerItemConfig = new AdobePSDK.MediPlayerItemConfig();

Here is some information about how the MediaPlayerItemConfig methods are used to manage custom tags:
Subscribe to specific custom tags
var subscribeTagsObtained = mediaPlayerItemConfig.subscribeTags;
Retrieves the current list of subscribed tags.
var subscribeTags = ["#EXT-X-PROGRAM-DATE-TIME"];mediaPlayerItemConfig.subscribeTags = subscribeTags;
Sets the list of subscribed tags exposed to the application.
Your application is also automatically subscribed to all tags that are transmitted through adTags .
Customize the ad tags used by the default opportunity detector
var adTagsObtained = mediaPlayerItemConfig.adTags;
Retrieves the current list of ad tags.
var adTags = ["#EXT-X-CUE"];mediaPlayerItemConfig.adTags = adTags;
Sets the list of ad tags to be used by the default opportunity generator.
Remember the following:
  • The custom tag name must contain the # prefix.
    For example, #EXT-X-ASSET is a correct custom tag name, but EXT-X-ASSET is incorrect.
  • You cannot change the configuration after the media stream has been loaded.