Package com.castlabs.sdk.youbora
Class YouboraAnalyticsSession
- java.lang.Object
-
- com.castlabs.sdk.youbora.YouboraAnalyticsSession
-
- All Implemented Interfaces:
AnalyticsSession,PlayerControllerPlugin.Component
public class YouboraAnalyticsSession extends Object implements AnalyticsSession
- Since:
- 3.1.0
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadError(CastlabsPlayerException exception)voidadSkipped()voidadStart(Ad ad)voidadStop()voiddetachFromController()com.npaw.youbora.lib6.plugin.PlugingetYouboraPlugin()Return the underlying instance of the YouboraPluginAPI.Classid()voidonDestroy(PlayerController playerController)voidonExoPlayerStateChanged(boolean playWhenReady, int playbackState)voidonOpenBundle(PlayerController playerController, Bundle bundle)voidonOpenState(PlayerController playerController, PlayerConfig playerConfig)voidrelease()voidseekEnd()voidseekProcessed()voidseekStart(long newPosition)voidsendError(String code, String message, int severity)voidsetPlugin(com.npaw.youbora.lib6.plugin.Plugin youboraPlugin)Sets the YouboraPlugininstance to use.voidstart(PlayerController playerController, AnalyticsMetaData analyticsMetaData)voidstop()
-
-
-
Method Detail
-
start
public void start(@NonNull PlayerController playerController, @NonNull AnalyticsMetaData analyticsMetaData)- Specified by:
startin interfaceAnalyticsSession
-
detachFromController
public void detachFromController()
- Specified by:
detachFromControllerin interfaceAnalyticsSession
-
onExoPlayerStateChanged
public void onExoPlayerStateChanged(boolean playWhenReady, int playbackState)- Specified by:
onExoPlayerStateChangedin interfaceAnalyticsSession
-
stop
public void stop()
- Specified by:
stopin interfaceAnalyticsSession
-
release
public void release()
- Specified by:
releasein interfaceAnalyticsSession
-
adStart
public void adStart(Ad ad)
- Specified by:
adStartin interfaceAnalyticsSession
-
adStop
public void adStop()
- Specified by:
adStopin interfaceAnalyticsSession
-
adError
public void adError(CastlabsPlayerException exception)
- Specified by:
adErrorin interfaceAnalyticsSession
-
adSkipped
public void adSkipped()
- Specified by:
adSkippedin interfaceAnalyticsSession
-
sendError
public void sendError(String code, String message, int severity)
- Specified by:
sendErrorin interfaceAnalyticsSession
-
seekStart
public void seekStart(long newPosition)
- Specified by:
seekStartin interfaceAnalyticsSession
-
seekEnd
public void seekEnd()
- Specified by:
seekEndin interfaceAnalyticsSession
-
seekProcessed
public void seekProcessed()
- Specified by:
seekProcessedin interfaceAnalyticsSession
-
getYouboraPlugin
@Nullable public com.npaw.youbora.lib6.plugin.Plugin getYouboraPlugin()
Return the underlying instance of the YouboraPluginAPI. May benullif the session is not yet started.- Returns:
- the underlying instance of the Youbora Plugin API.
-
id
@NonNull public Class id()
- Specified by:
idin interfacePlayerControllerPlugin.Component
-
onDestroy
public void onDestroy(@NonNull PlayerController playerController)- Specified by:
onDestroyin interfacePlayerControllerPlugin.Component
-
onOpenBundle
public void onOpenBundle(@NonNull PlayerController playerController, @NonNull Bundle bundle)- Specified by:
onOpenBundlein interfacePlayerControllerPlugin.Component
-
onOpenState
public void onOpenState(PlayerController playerController, PlayerConfig playerConfig)
- Specified by:
onOpenStatein interfacePlayerControllerPlugin.Component
-
setPlugin
public void setPlugin(@Nullable com.npaw.youbora.lib6.plugin.Plugin youboraPlugin)Sets the YouboraPlugininstance to use. Note that calling this method is not needed in case theYouboraPluginwas alreadycreatedwith a Plugin instance. Should be called beforeopeningthe player.- Parameters:
youboraPlugin- YouboraPlugininstance to use.
-
-