You can configure custom tag names in TVSDK globally with the MediaPlayerItemConfig class or stream-based with the MediaPlayerItemConfig class.
TVSDK applies the global configuration automatically to any media stream that does not specify a stream-specific configuration.
Both PSDKConfig
and MediaPlayerItemConfig
expose these methods to manage the custom tags:
Subscribe to specific custom tags | |
public function get subscribeTags():Vector.<String> | Retrieves the current list of subscribed tags. |
public function set subscribeTags():Vector.<String> | Sets the list of subscribed tags that will be exposed to the application. Your application is also automatically subscribed to all tags transmitted through adTags. |
Customize the ad tags used by the default opportunity detector | |
public function get adTags():Vector.<String> | Retrieves the current list of ad tags. |
public function set adTags():Vector.<String> | Sets the list of ad tags that will be used by default opportunity generator. |
Remember the following:
The setter methods do not allow the tags parameter to contain null values.
If encountered, TVSDK throws an IllegalArgumentException
.
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.