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

Types

Link copied to clipboard
data 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.

Link copied to clipboard
data 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.

Link copied to clipboard
data class Interstitial(val id: String, val customAttributes: Map<String, String>) : InterstitialMappingData

Provides access to interstitial-level metadata and custom attributes.

Properties

Link copied to clipboard

Map containing custom attributes from interstitial metadata.