always send integers to buffer api
This commit is contained in:
parent
2e1d7fde1a
commit
df9a19a9b4
1 changed files with 2 additions and 2 deletions
|
@ -477,8 +477,8 @@ export function doAnalyticsBuffer(uri, bufferData) {
|
|||
const {
|
||||
value: { video, audio, source },
|
||||
} = claim;
|
||||
const timeAtBuffer = bufferData.currentTime * 1000;
|
||||
const bufferDuration = bufferData.secondsToLoad * 1000;
|
||||
const timeAtBuffer = parseInt(bufferData.currentTime * 1000);
|
||||
const bufferDuration = parseInt(bufferData.secondsToLoad * 1000);
|
||||
const fileDurationInSeconds = (video && video.duration) || (audio && audio.duration);
|
||||
const fileSize = source.size; // size in bytes
|
||||
const fileSizeInBits = fileSize * 8;
|
||||
|
|
Loading…
Reference in a new issue