-
- All Implemented Interfaces:
-
com.brightcove.player.event.Component
@Emits(events = {EventType.AD_BREAK_COMPLETED, EventType.AD_BREAK_STARTED, EventType.AD_STARTED, EventType.AD_VIEWABLE_IMPRESSION, EventType.AD_COMPLETED, EventType.AD_PROGRESS, EventType.AD_PAUSED, EventType.AD_RESUMED, EventType.AD_ERROR})@ListensFor(events = {})@RestrictTo(value = RestrictTo.Scope.LIBRARY) public class FreeWheelAnalytics extends AbstractComponent
Registers the appropriate FreeWheel event listeners to send analytic events containing the ad insight data for each played slot and ad.
-
-
Field Summary
Fields Modifier and Type Field Description private BaseVideoView
videoView
-
Constructor Summary
Constructors Constructor Description FreeWheelAnalytics(FreeWheelController controller)
Construct a new FreeWheelAnalytics which sends ad insight analytic data.
-
Method Summary
Modifier and Type Method Description BaseVideoView
getVideoView()
void
setVideoView(BaseVideoView videoView)
Set the BaseVideoView responsible for playing FreeWheel ads.This is exposed for testing purposes as the FreeWheel SDK exposes the video view. FreeWheelAnalytics
register()
Register the event listeners to send analytic events. -
-
Constructor Detail
-
FreeWheelAnalytics
FreeWheelAnalytics(FreeWheelController controller)
Construct a new FreeWheelAnalytics which sends ad insight analytic data.- Parameters:
controller
- The FreeWheelController containing the IAdContext.
-
-
Method Detail
-
getVideoView
BaseVideoView getVideoView()
-
setVideoView
void setVideoView(BaseVideoView videoView)
Set the BaseVideoView responsible for playing FreeWheel ads.This is exposed for testing purposes as the FreeWheel SDK exposes the video view.
- Parameters:
videoView
- The video view for playback.
-
register
FreeWheelAnalytics register()
Register the event listeners to send analytic events.
-
-
-
-