Skip to content

Commit

Permalink
store dvr window length in ms
Browse files Browse the repository at this point in the history
  • Loading branch information
wjoosen committed Sep 13, 2024
1 parent bd490c0 commit c243056
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -376,11 +376,8 @@ export class ComscoreStreamingAnalyticsTHEOIntegration {
const dvrWindowStart = seekable.start(0);
const dvrWindowLengthInSeconds = dvrWindowEnd - dvrWindowStart;
if (dvrWindowLengthInSeconds) {
this.streamingAnalytics.setDvrWindowLength(dvrWindowLengthInSeconds * 1000);
if (this.configuration.debug && LOG_STREAMINGANALYTICS)
console.log(
`[COMSCORE - StreamingAnalytics] setDvrWindowLength ${dvrWindowLengthInSeconds * 1000}`
);
this.dvrWindowLengthMs = toMilliSeconds(dvrWindowLengthInSeconds)
if (this.state === ComscoreState.VIDEO || this.state === ComscoreState.VIDEO_PAUSED) this.streamingAnalytics.setDvrWindowLength(this.dvrWindowLengthMs)
} else if (this.configuration.debug) console.log(`[COMSCORE] DVR window length was not > 0`);
}
} catch (error) {
Expand Down

0 comments on commit c243056

Please sign in to comment.