public class TimedTracker extends java.lang.Object implements Tracker, TickerObserver, TrackingConfigListener
| Modifier and Type | Method and Description |
|---|---|
static TimedTracker |
create(Timeline timeline,
TrackerDatasource trackerDatasource,
java.util.List<com.brightcove.ssai.tracking.timed.TimedTrackingTrigger> timedTrackingTriggers)
Instantiates a TimedTracker.
|
Timeline |
getTimeline()
Returns the
Timeline. |
void |
onTick(long previous,
long current)
A tick represent an poll from the underlying video player.
|
void |
onTrackingConfigChanged(TrackingConfig trackingConfig)
Triggered when there is a
TrackingConfig change. |
void |
track(java.util.List<TrackingEvent> trackingEvents)
Tracks the given
TrackingEvent. |
public static TimedTracker create(@NonNull Timeline timeline, @NonNull TrackerDatasource trackerDatasource, @NonNull java.util.List<com.brightcove.ssai.tracking.timed.TimedTrackingTrigger> timedTrackingTriggers)
timeline - an instance of the Timeline to track.trackerDatasource - an instance of TrackerDatasourcetimedTrackingTriggers - the List of the TimedTrackingTrigger to track.public void onTick(long previous,
long current)
TickerObserveronTick in interface TickerObserverprevious - the last playhead position in millisecondscurrent - the current playhead position in milliseconds@NonNull public Timeline getTimeline()
TrackerTimeline.getTimeline in interface Trackerpublic void track(@NonNull
java.util.List<TrackingEvent> trackingEvents)
TrackerTrackingEvent.public void onTrackingConfigChanged(@NonNull
TrackingConfig trackingConfig)
TrackingConfigListenerTrackingConfig change.onTrackingConfigChanged in interface TrackingConfigListenertrackingConfig - the tracking config