init commit
This commit is contained in:
13
remotion/node_modules/@remotion/media-parser/dist/make-progress-object.js
generated
vendored
Normal file
13
remotion/node_modules/@remotion/media-parser/dist/make-progress-object.js
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.makeProgressObject = void 0;
|
||||
const makeProgressObject = (state) => {
|
||||
return {
|
||||
bytes: state.iterator.counter.getOffset(),
|
||||
percentage: state.contentLength
|
||||
? state.iterator.counter.getOffset() / state.contentLength
|
||||
: null,
|
||||
totalBytes: state.contentLength,
|
||||
};
|
||||
};
|
||||
exports.makeProgressObject = makeProgressObject;
|
||||
Reference in New Issue
Block a user