Convert bytesLoaded to secondsLoaded

I I have a video that is 303 seconds long @ 15fps.

Using setInterval I would like to calculate how many esimated “seconds” are downloaded based on how many bytes have been downloaded.

Is this possible?