fix mse calc

This commit is contained in:
Josh Hawkins 2025-09-01 19:12:55 -05:00
parent 1b77187245
commit 6314ef273f

View File

@ -592,7 +592,7 @@ function MSEPlayer({
const now = Date.now();
const bytesLoaded = totalBytesLoaded.current;
const timeElapsed = (now - lastTimestamp) / 1000; // seconds
const bandwidth = (bytesLoaded - lastLoadedBytes) / timeElapsed / 1024; // kbps
const bandwidth = (bytesLoaded - lastLoadedBytes) / timeElapsed / 1000; // kbps
lastLoadedBytes = bytesLoaded;
lastTimestamp = now;