Package com.castlabs.sdk.youbora
Class YouboraAnalyticsSession
java.lang.Object
com.castlabs.analytics.AnalyticsSession
com.castlabs.sdk.youbora.YouboraAnalyticsSession
- All Implemented Interfaces:
IAnalyticsSession
,PlayerControllerPlugin.Component
,SingleControllerPlaylist.PlaylistListener
public class YouboraAnalyticsSession
extends AnalyticsSession
implements SingleControllerPlaylist.PlaylistListener
- Since:
- 3.1.0
-
Method Summary
Modifier and TypeMethodDescriptionvoid
com.npaw.NpawPlugin
Return the underlying instance of the YouboraNpawPlugin
API.id()
void
onDestroy
(PlayerController playerController) void
onExoPlayerStateChangedInternal
(boolean playWhenReady, int playbackState) void
onItemChange
(PlayerConfig config) void
onOpenBundle
(PlayerController playerController, Bundle bundle) void
onOpenState
(PlayerController playerController, PlayerConfig playerConfig) void
void
void
void
void
void
seekStartInternal
(long newPosition) void
sendErrorInternal
(String code, String message, int severity) void
setPlugin
(com.npaw.NpawPlugin youboraPlugin) Sets the YouboraNpawPlugin
instance to use.void
startInternal
(PlayerController playerController, AnalyticsMetaData analyticsMetaData) void
Methods inherited from class com.castlabs.analytics.AnalyticsSession
adClick, adError, adPause, adResume, adSkipped, adStart, adStop, adWillStart, detachFromController, getEnabled, onExoPlayerStateChanged, release, reportPlayerState, seekEnd, seekProcessed, seekStart, sendError, setEnabled, start, stop
-
Method Details
-
startInternal
public void startInternal(@NonNull PlayerController playerController, @NonNull AnalyticsMetaData analyticsMetaData) -
detachFromControllerInternal
public void detachFromControllerInternal() -
onExoPlayerStateChangedInternal
public void onExoPlayerStateChangedInternal(boolean playWhenReady, int playbackState) -
stopInternal
public void stopInternal() -
releaseInternal
public void releaseInternal() -
reportPlayerStateInternal
-
sendErrorInternal
-
seekStartInternal
public void seekStartInternal(long newPosition) -
seekEndInternal
public void seekEndInternal() -
seekProcessedInternal
public void seekProcessedInternal() -
getYouboraPlugin
@Nullable public com.npaw.NpawPlugin getYouboraPlugin()Return the underlying instance of the YouboraNpawPlugin
API. May benull
if the session is not yet started.- Returns:
- the underlying instance of the Youbora Plugin API.
-
id
- Specified by:
id
in interfacePlayerControllerPlugin.Component
-
onDestroy
- Specified by:
onDestroy
in interfacePlayerControllerPlugin.Component
-
onOpenBundle
- Specified by:
onOpenBundle
in interfacePlayerControllerPlugin.Component
-
onOpenState
- Specified by:
onOpenState
in interfacePlayerControllerPlugin.Component
-
onItemChange
- Specified by:
onItemChange
in interfaceSingleControllerPlaylist.PlaylistListener
-
onPlaylistEnded
public void onPlaylistEnded()- Specified by:
onPlaylistEnded
in interfaceSingleControllerPlaylist.PlaylistListener
-
setPlugin
public void setPlugin(@Nullable com.npaw.NpawPlugin youboraPlugin) Sets the YouboraNpawPlugin
instance to use. Note that calling this method is not needed in case theYouboraPlugin
was alreadycreated
with a NpawPlugin instance. Should be called beforeopening
the player.- Parameters:
youboraPlugin
- YouboraNpawPlugin
instance to use.
-