always send integers to buffer api

This commit is contained in:
Sean Yesmunt 2020-08-27 14:18:45 -04:00
parent 2e1d7fde1a
commit df9a19a9b4

View file

@ -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;