Package com.castlabs.android.adverts
Class HlsInterstitialPlugin
java.lang.Object
com.castlabs.android.Plugin
com.castlabs.android.adverts.HlsInterstitialPlugin
- All Implemented Interfaces:
AdProvider,ServerAdProvider
Plugin that provides HLS interstitial advertisement functionality.
This plugin implements the AdProvider interface to handle HLS interstitial ads in the player.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateAdLoader(PlayerConfig config) Create a server-sideAdLoaderfor the providedPlayerConfig.getId()Returns the ID of the plugin.getName()Return a unique name to identify the provider.Methods inherited from class com.castlabs.android.Plugin
init, onRemotePlay
-
Constructor Details
-
HlsInterstitialPlugin
public HlsInterstitialPlugin()Creates a new instance of HlsInterstitialPlugin. This constructor initializes the plugin for handling HLS interstitial advertisements.
-
-
Method Details
-
createAdLoader
Description copied from interface:ServerAdProviderCreate a server-sideAdLoaderfor the providedPlayerConfig.- Specified by:
createAdLoaderin interfaceServerAdProvider- Parameters:
config- The configuration of the playback session.- Returns:
- A new
AdLoaderinstance, ornullif the provider cannot serve the configuration.
-
getName
Description copied from interface:AdProviderReturn a unique name to identify the provider.- Specified by:
getNamein interfaceAdProvider- Returns:
- The provider name.
-
getId
Description copied from class:PluginReturns the ID of the plugin. This ID is used to identify the plugin
-