InterstitialMappingData

InterstitialMappingData

sealed interface InterstitialMappingData

Interface providing access to custom attributes from interstitial metadata.

Custom attributes can come from:

  • X- prefixed properties in HLS manifest EXT-X-DATERANGE tags in Interstitial
  • custom attributes from an ASSET-LIST in AssetList
  • custom attributes from the asset metadata within an ASSET-LIST in Asset

See InterstitialsConfig.customAttributesMapping for usage.

Inheritors

Interstitial
AssetList
Asset

Types

NameSummary
Assetdata class Asset(val url: String, val duration: Double?, val customAttributes: Map<String, String>) : InterstitialMappingData
Provides access to asset-level metadata and custom attributes within an ASSET-LIST.
AssetListdata class AssetList(val customAttributes: Map<String, String>) : InterstitialMappingData
Provides access to asset list-level metadata and custom attributes. Contains information from the JSON Asset List file that defines a collection of interstitial assets.
Interstitialdata class Interstitial(val id: String, val customAttributes: Map<String, String>) : InterstitialMappingData
Provides access to interstitial-level metadata and custom attributes.

Properties

NameSummary
customAttributesabstract val customAttributes: Map<String, String>
Map containing custom attributes from interstitial metadata.