CustomPlaybackSessionContext

data class CustomPlaybackSessionContext(val contentURLOverrideAction: ContentURLOverrideAction, val contextData: Map<String, Any>? = null)

Constructors

Link copied to clipboard
constructor(contentURLOverrideAction: ContentURLOverrideAction, contextData: Map<String, Any>? = null)

Properties

Link copied to clipboard

A suspend function that takes the raw player instance and the original content URL as parameters, and returns a String representing the overridden content URL to be used for playback. This allows for dynamic modification of the content URL before it is loaded by the player, enabling use cases such as redirection, or integration with third-party services.

Link copied to clipboard
val contextData: Map<String, Any>? = null

A map of String keys and Any values that can be used to provide additional context or parameters needed for the content URL override action. This can include information such as authentication tokens, user preferences, or any other relevant data that the override function might require to generate the appropriate content URL.