AdsManifestUrlDiscovery
interface AdsManifestUrlDiscovery
Optional capability a PlayerAdapter can implement to expose the ads manifest URL the underlying player discovered by itself.
Lives in the core module so adapters that do not depend on the runtime can implement it. Adapters that do not implement it report nothing: startSession then keeps requiring an explicit manifestUrl.
Functions
Link copied to clipboard
abstract fun onDiscoveredAdsManifestUrlChange(listener: (DiscoveredAdsManifestUrl) -> Unit): () -> Unit
Subscribe to discovery-state changes. The listener may fire on the player's main thread. Returns an unsubscribe function.