Files
story-studio/remotion/node_modules/@remotion/webcodecs/dist/calculate-progress.js
2026-02-21 10:33:18 +01:00

11 lines
384 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.calculateProgress = void 0;
const calculateProgress = ({ millisecondsWritten, expectedOutputDurationInMs, }) => {
if (expectedOutputDurationInMs === null) {
return null;
}
return millisecondsWritten / expectedOutputDurationInMs;
};
exports.calculateProgress = calculateProgress;