Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ private NRDef() {
public static final String CONTENT_HEARTBEAT = "CONTENT_HEARTBEAT";
public static final String CONTENT_RENDITION_CHANGE = "CONTENT_RENDITION_CHANGE";
public static final String CONTENT_ERROR = "CONTENT_ERROR";
public static final String QOE_AGGREGATE = "QOE_AGGREGATE";

public static final String AD_REQUEST = "AD_REQUEST";
public static final String AD_START = "AD_START";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ public class NRTrackerState {
public NRChrono chrono;
public Long accumulatedVideoWatchTime;

public NRChrono adChrono;
public Long accumulatedAdWatchTime;

/**
* Create a new tracker state instance.
*/
Expand All @@ -66,6 +69,8 @@ public void reset() {
isAdBreak = false;
chrono = new NRChrono();
accumulatedVideoWatchTime = 0L;
adChrono = new NRChrono();
accumulatedAdWatchTime = 0L;
}

/**
Expand Down Expand Up @@ -257,4 +262,4 @@ public boolean goAdBreakEnd() {
return false;
}
}
}
}
Loading
Loading