🎥 Make videos programmatically with React
don't keep track of allocation size
Jonny Burger13f975315b24
diff --git a/packages/video/src/keyframe-bank.ts b/packages/video/src/keyframe-bank.tsindex aad1f5a0ee..2cca2cb6bf 100644--- a/packages/video/src/keyframe-bank.ts+++ b/packages/video/src/keyframe-bank.ts@@ -22,7 +22,6 @@ export type KeyframeBank = {length: number;size: number;timestamps: number[];- allocationSizes: number[];};};@@ -188,7 +187,6 @@ export const makeKeyframeBank = ({.filter(Boolean);const {length} = f;const timestamps: number[] = [];- const allocationSizes: number[] = [];const size = f.reduce((acc, frame) => {const allocationSize = frame.allocationSize();if (allocationSize === 0) {@@ -199,10 +197,9 @@ export const makeKeyframeBank = ({}timestamps.push(frame.timestamp);- allocationSizes.push(allocationSize);return acc + allocationSize;}, 0);- return {length, size, timestamps, allocationSizes};+ return {length, size, timestamps};};const keyframeBank: KeyframeBank = {diff --git a/packages/video/src/keyframe-manager.ts b/packages/video/src/keyframe-manager.tsindex 71320954a9..fe61d0817d 100644--- a/packages/video/src/keyframe-manager.ts+++ b/packages/video/src/keyframe-manager.ts@@ -27,8 +27,7 @@ export const makeKeyframeManager = () => {for (const src in sources) {for (const bank in sources[src]) {const v = await sources[src][bank];- const {length, size, timestamps, allocationSizes} =- v.getOpenFrameCount();+ const {length, size, timestamps} = v.getOpenFrameCount();count += length;totalSize += size;if (size === 0) {@@ -37,7 +36,7 @@ export const makeKeyframeManager = () => {Log.verbose(logLevel,- `[NewVideo] Open frames for src ${src}: ${timestamps.join(', ')}, ${allocationSizes.join(', ')}`,+ `[NewVideo] Open frames for src ${src}: ${timestamps.join(', ')}}`,);}}