Videos Inline Player Event Delegate
This section covers the delegate interface for receiving callbacks and events from inline video players.
BlazePlayerInInlineDelegate is an interface that extends BlazePlayerSourceDelegate and provides additional callback methods for inline players. This delegate allows your app to receive feedback about player flow, data loading events, fullscreen transitions, and user actions.
All functions in this interface are optional, the choice of which function to implement is left for app developers.
In addition to BlazePlayerSourceDelegate functions, the following inline-specific callbacks are available:
onPlayerDidEnterFullScreen
Called when the inline player transitions to fullscreen mode.
- playerType - The type of the player.
- sourceId - The unique identifier of the player's source.
fun onPlayerDidEnterFullScreen(
playerType: BlazePlayerType,
sourceId: String?
) { }onPlayerDidExitFullScreen
Called when the player exits fullscreen mode and returns to inline mode.
- playerType - The type of the player.
- sourceId - The unique identifier of the player's source.
fun onPlayerDidExitFullScreen(
playerType: BlazePlayerType,
sourceId: String?
) { }onPlaceholderClicked
Called when a placeholder is clicked in Preview mode. This automatically triggers a transition to fullscreen mode.
Important: This callback is only available for players in Preview mode. In Interactive mode, placeholders have no click behavior.
- playerType - The type of the player.
- sourceId - The unique identifier of the player's source.
fun onPlaceholderClicked(
playerType: BlazePlayerType,
sourceId: String?
) { }Updated about 2 months ago
