GuidesAPI ReferenceRelease Notes
HomeLog InHome
Guides

BlazeSDKDelegate - Android

The SDK triggers global delegate events that the hosting application can choose to handle.

📘

All functions in this interface are optional, the choice of which function to implement is left for app developers.

Methods

onEventTriggered

This delegate is called whenever the SDK reports Analytics Event to the client

Parameters:

  • eventData: All the event properties and general data
fun onEventTriggered(eventData: BlazeAnalyticsEvent)

onErrorThrown

This delegate is called whenever an error is thrown within the SDK.

Parameter:

  • BlazeError: The specific BlazeResult.Error that occurred within the SDK.
fun onErrorThrown(error: BlazeResult.Error)

playbackModificationHandler

Called before playing HLS or MP4 content to allow playback modification (e.g., URL tokenization, header modification).
If not implemented, the original content will be used without modification.
Using this callback forces the player to be async.

suspend fun playbackModificationHandler(request: BlazePlaybackModificationRequest): BlazePlaybackModificationResponse

BlazePlaybackModificationRequest

Contains information about content that needs playback modification before playing

Parameters:

  • originalURL: The original url for the playback

BlazePlaybackModificationResponse

Response object containing the modified content information to be used for playback

Parameters:

  • modifiedURL: The modified url for the playback

Did this page help you?