Remove erroneous multiplication of time to start by 1000
This commit is contained in:
parent
09cfee2fa1
commit
27abc1e9d3
1 changed files with 4 additions and 4 deletions
|
@ -152,15 +152,15 @@ function VideoViewer(props: Props) {
|
|||
}
|
||||
|
||||
function doTrackingFirstPlay(e: Event, data: any) {
|
||||
let timeToStartInMs = data.secondsToLoad * 1000;
|
||||
let timeToStart = data.secondsToLoad;
|
||||
|
||||
if (desktopPlayStartTime !== undefined) {
|
||||
const differenceToAdd = Date.now() - desktopPlayStartTime;
|
||||
timeToStartInMs += differenceToAdd;
|
||||
timeToStart += differenceToAdd;
|
||||
}
|
||||
analytics.playerStartedEvent(embedded);
|
||||
analytics.videoStartEvent(claimId, timeToStartInMs);
|
||||
doAnalyticsView(uri, timeToStartInMs).then(() => {
|
||||
analytics.videoStartEvent(claimId, timeToStart);
|
||||
doAnalyticsView(uri, timeToStart).then(() => {
|
||||
claimRewards();
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue