Class AmlComponent
java.lang.Object
com.castlabs.android.exoplayer2.ext.amlnativeplayer.AmlComponent
- All Implemented Interfaces:
PlayerControllerPlugin.Component
AmlComponent is a PlayerControllerPlugin.Component that provides access to the AmlTrackRendererPlugin and AmLogicPlayerPlugin.
-
Constructor Summary
ConstructorsConstructorDescriptionAmlComponent(AmlTrackRendererPlugin amlTrackRendererPlugin, AmLogicPlayerPlugin amLogicPlayerPlugin) Creates a new AmlComponent. -
Method Summary
Modifier and TypeMethodDescriptionid()voidonDestroy(PlayerController playerController) voidonOpenBundle(PlayerController playerController, Bundle bundle) voidonOpenState(PlayerController playerController, PlayerConfig playerConfig) voidremoveWVCASLicense(String lic) Removes the WVCAS license.voidsetEventDispatcher(com.google.android.exoplayer2.analytics.IptvAnalyticsListener.EventDispatcher eventDispatcher) Sets the EventDispatcher to use for analytics events.
-
Constructor Details
-
AmlComponent
public AmlComponent(AmlTrackRendererPlugin amlTrackRendererPlugin, AmLogicPlayerPlugin amLogicPlayerPlugin) Creates a new AmlComponent.- Parameters:
amlTrackRendererPlugin- The AmlTrackRendererPlugin to use.amLogicPlayerPlugin- The AmLogicPlayerPlugin to use.
-
-
Method Details
-
setEventDispatcher
public void setEventDispatcher(@Nullable com.google.android.exoplayer2.analytics.IptvAnalyticsListener.EventDispatcher eventDispatcher) Sets the EventDispatcher to use for analytics events.- Parameters:
eventDispatcher- The EventDispatcher to use.
-
removeWVCASLicense
Removes the WVCAS license.- Parameters:
lic- The license to remove.
-
id
- Specified by:
idin interfacePlayerControllerPlugin.Component
-
onDestroy
- Specified by:
onDestroyin interfacePlayerControllerPlugin.Component
-
onOpenBundle
- Specified by:
onOpenBundlein interfacePlayerControllerPlugin.Component
-
onOpenState
- Specified by:
onOpenStatein interfacePlayerControllerPlugin.Component
-