com.ooyala.android.analytics.AnalyticsPluginInterface Interface Reference

An Interface that can be used to plug an Analytics reporter into the OoyalaPlayer. More...

Inheritance diagram for com.ooyala.android.analytics.AnalyticsPluginInterface:
com.ooyala.android.analytics.AnalyticsPluginBaseImpl com.ooyala.android.analytics.TestAnalyticsPlugin

Public Member Functions

void onCurrentItemAboutToPlay (Video currentItem)
 Called when a new video is set. More...
 
void reportPlayStarted ()
 Called when video content starts playing. More...
 
void reportPlayPaused ()
 Called when video content is paused. More...
 
void reportPlayResumed ()
 Called when video content is resumed from paused state;. More...
 
void reportPlayCompleted ()
 Called when video content is completed;. More...
 
void reportPlayerLoad ()
 Called when the Plugin is registered, effectively reporting when the player is loaded. More...
 
void reportPlayheadUpdate (int playheadTime)
 Called whenever the Player reports a playhead change. More...
 
void reportReplay ()
 Called during the first time video starts playing back after a video was Completed. More...
 
void reportPlayRequested ()
 Called whenever the user or application calls OoyalaPlayer.play() More...
 
void reportSeek (SeekInfo seekInfo)
 Called whenever the user starts to seek the video. More...
 

Detailed Description

An Interface that can be used to plug an Analytics reporter into the OoyalaPlayer.

Your Analytics plugin may require more functionality than is reported here. If this is the case you can additionally observe OoyalaPlayer, and report any other metrics through the observation chain

You should most likely NOT implement this interface, and instead extend AnalyticsPluginBaseImpl

See also
AnalyticsPluginBaseImpl
com.ooyala.android.OoyalaPlayer::registerPlugin(AnalyticsPluginInterface)

Member Function Documentation

void com.ooyala.android.analytics.AnalyticsPluginInterface.onCurrentItemAboutToPlay ( Video  currentItem)

Called when a new video is set.

Parameters
currentItemthe video that we're going to send information about. It may be null, be sure to check it.

Implemented in com.ooyala.android.analytics.AnalyticsPluginBaseImpl, and com.ooyala.android.analytics.TestAnalyticsPlugin.

void com.ooyala.android.analytics.AnalyticsPluginInterface.reportPlayCompleted ( )

Called when video content is completed;.

Implemented in com.ooyala.android.analytics.AnalyticsPluginBaseImpl.

void com.ooyala.android.analytics.AnalyticsPluginInterface.reportPlayerLoad ( )

Called when the Plugin is registered, effectively reporting when the player is loaded.

Implemented in com.ooyala.android.analytics.AnalyticsPluginBaseImpl, and com.ooyala.android.analytics.TestAnalyticsPlugin.

void com.ooyala.android.analytics.AnalyticsPluginInterface.reportPlayheadUpdate ( int  playheadTime)

Called whenever the Player reports a playhead change.

Implemented in com.ooyala.android.analytics.AnalyticsPluginBaseImpl, and com.ooyala.android.analytics.TestAnalyticsPlugin.

void com.ooyala.android.analytics.AnalyticsPluginInterface.reportPlayPaused ( )

Called when video content is paused.

Implemented in com.ooyala.android.analytics.AnalyticsPluginBaseImpl.

void com.ooyala.android.analytics.AnalyticsPluginInterface.reportPlayRequested ( )
void com.ooyala.android.analytics.AnalyticsPluginInterface.reportPlayResumed ( )

Called when video content is resumed from paused state;.

Implemented in com.ooyala.android.analytics.AnalyticsPluginBaseImpl.

void com.ooyala.android.analytics.AnalyticsPluginInterface.reportPlayStarted ( )
void com.ooyala.android.analytics.AnalyticsPluginInterface.reportReplay ( )

Called during the first time video starts playing back after a video was Completed.

Implemented in com.ooyala.android.analytics.AnalyticsPluginBaseImpl, and com.ooyala.android.analytics.TestAnalyticsPlugin.

void com.ooyala.android.analytics.AnalyticsPluginInterface.reportSeek ( SeekInfo  seekInfo)

Called whenever the user starts to seek the video.

Implemented in com.ooyala.android.analytics.AnalyticsPluginBaseImpl.