Class TimedTracker

    • Method Detail

      • create

        public static TimedTracker create​(@NonNull
                                          Timeline timeline,
                                          TrackerDatasource trackerDatasource,
                                          java.util.List<com.brightcove.ssai.tracking.timed.TimedTrackingTrigger> timedTrackingTriggers)
        Instantiates a TimedTracker.
        timeline - an instance of the Timeline to track.
        trackerDatasource - an instance of TrackerDatasource
        timedTrackingTriggers - the List of the TimedTrackingTrigger to track.
        new instance of a TimedTracker.
      • onTick

        public void onTick​(long previous,
                           long current)
        Description copied from interface: TickerObserver
        A tick represent an poll from the underlying video player.
        Specified by:
        onTick in interface TickerObserver
        previous - the last playhead position in milliseconds
        current - the current playhead position in milliseconds
      • track

        public void track​(@NonNull
                          java.util.List<TrackingEvent> trackingEvents)
        Description copied from interface: Tracker
        Tracks the given TrackingEvent.
        Specified by:
        track in interface Tracker
        trackingEvents - List of events to be tracked.