Class IPTVComponent
java.lang.Object
com.castlabs.android.exoplayer2.ext.amlnativeplayer.IPTVComponent
- All Implemented Interfaces:
PlayerControllerPlugin.Component
IPTV Clear Player component.
To get an instance of this class, use
PlayerController.getComponent(Class).-
Constructor Summary
ConstructorsConstructorDescriptionIPTVComponent(IPTVPlayerPlugin iptvPlayerPluginWeakReference) Creates a new instance ofIPTVComponent. -
Method Summary
Modifier and TypeMethodDescriptionid()voidonDestroy(PlayerController playerController) voidonOpenBundle(PlayerController playerController, Bundle bundle) voidonOpenState(PlayerController playerController, PlayerConfig playerConfig) voidsetEventDispatcher(com.google.android.exoplayer2.analytics.IptvAnalyticsListener.EventDispatcher eventDispatcher) Sets theIptvAnalyticsListenerEvent Dispatcher for the IPTV Plugin.voidsetTransferListener(com.google.android.exoplayer2.upstream.TransferListener transferListener) Sets theTransferListenerfor the IPTV Plugin DataSource.
-
Constructor Details
-
IPTVComponent
Creates a new instance ofIPTVComponent.- Parameters:
iptvPlayerPluginWeakReference- TheIPTVPlayerPlugininstance.
-
-
Method Details
-
setEventDispatcher
public void setEventDispatcher(@Nullable com.google.android.exoplayer2.analytics.IptvAnalyticsListener.EventDispatcher eventDispatcher) Sets theIptvAnalyticsListenerEvent Dispatcher for the IPTV Plugin.- Parameters:
eventDispatcher- TheIptvAnalyticsListener.EventDispatcherto set.
-
setTransferListener
public void setTransferListener(@Nullable com.google.android.exoplayer2.upstream.TransferListener transferListener) Sets theTransferListenerfor the IPTV Plugin DataSource.- Parameters:
transferListener- TheTransferListenerto set.
-
id
- Specified by:
idin interfacePlayerControllerPlugin.Component
-
onDestroy
- Specified by:
onDestroyin interfacePlayerControllerPlugin.Component
-
onOpenBundle
- Specified by:
onOpenBundlein interfacePlayerControllerPlugin.Component
-
onOpenState
- Specified by:
onOpenStatein interfacePlayerControllerPlugin.Component
-