@remotion/studio 4.0.374 → 4.0.375
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Studio.js +3 -3
- package/dist/components/WebRender/TriggerWebRender.js +1 -0
- package/dist/esm/chunk-03w3c26b.js +42549 -0
- package/dist/esm/chunk-2kj2627a.js +42547 -0
- package/dist/esm/chunk-37cze1x7.js +42543 -0
- package/dist/esm/chunk-4ns8ztd2.js +42549 -0
- package/dist/esm/chunk-4rppqne0.js +42546 -0
- package/dist/esm/chunk-8z4rzrhp.js +42546 -0
- package/dist/esm/chunk-b5nk3brj.js +42547 -0
- package/dist/esm/chunk-frv7vy1j.js +42529 -0
- package/dist/esm/chunk-gb06np4s.js +42550 -0
- package/dist/esm/chunk-h52z3hgf.js +42551 -0
- package/dist/esm/chunk-km09dnep.js +42553 -0
- package/dist/esm/chunk-m568znn3.js +42549 -0
- package/dist/esm/chunk-mdaqg5j8.js +42548 -0
- package/dist/esm/chunk-ne8ndgzb.js +42523 -0
- package/dist/esm/chunk-p8y1s3pt.js +42546 -0
- package/dist/esm/chunk-v4qm7dck.js +42549 -0
- package/dist/esm/chunk-vcbctbn8.js +42546 -0
- package/dist/esm/chunk-w7k34d87.js +42527 -0
- package/dist/esm/chunk-w7xtj3ac.js +42533 -0
- package/dist/esm/chunk-xe44g8va.js +42551 -0
- package/dist/esm/chunk-yqxn3vsy.js +42533 -0
- package/dist/esm/chunk-ysfymx2n.js +42551 -0
- package/dist/esm/internals.mjs +173 -129
- package/dist/esm/previewEntry.mjs +173 -129
- package/dist/esm/renderEntry.mjs +2 -1
- package/dist/renderEntry.js +1 -0
- package/package.json +10 -10
|
@@ -18220,6 +18220,7 @@ var TimelineZoomControls = () => {
|
|
|
18220
18220
|
};
|
|
18221
18221
|
|
|
18222
18222
|
// ../web-renderer/dist/esm/index.mjs
|
|
18223
|
+
import { flushSync } from "react-dom";
|
|
18223
18224
|
import ReactDOM8 from "react-dom/client";
|
|
18224
18225
|
import { Internals as Internals44 } from "remotion";
|
|
18225
18226
|
import { jsx as jsx177 } from "react/jsx-runtime";
|
|
@@ -18298,12 +18299,26 @@ var findSvgElements = (element) => {
|
|
|
18298
18299
|
});
|
|
18299
18300
|
return composables;
|
|
18300
18301
|
};
|
|
18302
|
+
var withResolvers = function() {
|
|
18303
|
+
let resolve;
|
|
18304
|
+
let reject;
|
|
18305
|
+
const promise = new Promise((res, rej) => {
|
|
18306
|
+
resolve = res;
|
|
18307
|
+
reject = rej;
|
|
18308
|
+
});
|
|
18309
|
+
return { promise, resolve, reject };
|
|
18310
|
+
};
|
|
18301
18311
|
var waitForReady = (timeoutInMilliseconds, scope) => {
|
|
18302
|
-
|
|
18312
|
+
if (scope.remotion_renderReady === true) {
|
|
18313
|
+
return Promise.resolve();
|
|
18314
|
+
}
|
|
18303
18315
|
const start = Date.now();
|
|
18316
|
+
const { promise, resolve, reject } = withResolvers();
|
|
18304
18317
|
const interval = setInterval(() => {
|
|
18305
18318
|
if (scope.remotion_renderReady === true) {
|
|
18306
|
-
|
|
18319
|
+
requestAnimationFrame(() => {
|
|
18320
|
+
resolve();
|
|
18321
|
+
});
|
|
18307
18322
|
clearInterval(interval);
|
|
18308
18323
|
return;
|
|
18309
18324
|
}
|
|
@@ -18320,7 +18335,7 @@ var waitForReady = (timeoutInMilliseconds, scope) => {
|
|
|
18320
18335
|
return promise;
|
|
18321
18336
|
};
|
|
18322
18337
|
var COMP_ID = "markup";
|
|
18323
|
-
|
|
18338
|
+
async function internalRenderStillOnWeb({
|
|
18324
18339
|
Component,
|
|
18325
18340
|
width,
|
|
18326
18341
|
height,
|
|
@@ -18328,8 +18343,9 @@ var internalRenderStillOnWeb = async ({
|
|
|
18328
18343
|
durationInFrames,
|
|
18329
18344
|
frame: frame2,
|
|
18330
18345
|
delayRenderTimeoutInMilliseconds,
|
|
18331
|
-
logLevel
|
|
18332
|
-
|
|
18346
|
+
logLevel,
|
|
18347
|
+
inputProps
|
|
18348
|
+
}) {
|
|
18333
18349
|
const div = document.createElement("div");
|
|
18334
18350
|
div.style.display = "flex";
|
|
18335
18351
|
div.style.backgroundColor = "transparent";
|
|
@@ -18341,74 +18357,87 @@ var internalRenderStillOnWeb = async ({
|
|
|
18341
18357
|
if (!ReactDOM8.createRoot) {
|
|
18342
18358
|
throw new Error("@remotion/web-renderer requires React 18 or higher");
|
|
18343
18359
|
}
|
|
18344
|
-
const
|
|
18360
|
+
const { promise, resolve, reject } = withResolvers();
|
|
18361
|
+
const root = ReactDOM8.createRoot(div, {
|
|
18362
|
+
onUncaughtError: (err) => {
|
|
18363
|
+
reject(err);
|
|
18364
|
+
}
|
|
18365
|
+
});
|
|
18345
18366
|
const delayRenderScope = {
|
|
18346
18367
|
remotion_renderReady: true,
|
|
18347
18368
|
remotion_delayRenderTimeouts: {},
|
|
18348
18369
|
remotion_puppeteerTimeout: delayRenderTimeoutInMilliseconds,
|
|
18349
18370
|
remotion_attempt: 0
|
|
18350
18371
|
};
|
|
18351
|
-
|
|
18352
|
-
|
|
18353
|
-
|
|
18354
|
-
|
|
18355
|
-
|
|
18356
|
-
|
|
18357
|
-
|
|
18358
|
-
|
|
18359
|
-
|
|
18360
|
-
|
|
18361
|
-
|
|
18362
|
-
|
|
18363
|
-
|
|
18364
|
-
|
|
18365
|
-
|
|
18366
|
-
|
|
18367
|
-
|
|
18368
|
-
|
|
18369
|
-
|
|
18370
|
-
|
|
18371
|
-
|
|
18372
|
-
|
|
18373
|
-
|
|
18374
|
-
|
|
18375
|
-
|
|
18376
|
-
|
|
18377
|
-
|
|
18378
|
-
|
|
18379
|
-
|
|
18380
|
-
|
|
18381
|
-
|
|
18382
|
-
|
|
18383
|
-
|
|
18384
|
-
|
|
18385
|
-
|
|
18386
|
-
|
|
18387
|
-
|
|
18388
|
-
|
|
18389
|
-
|
|
18390
|
-
|
|
18391
|
-
|
|
18392
|
-
|
|
18393
|
-
|
|
18394
|
-
|
|
18395
|
-
|
|
18396
|
-
|
|
18397
|
-
videoEnabled: true,
|
|
18398
|
-
logLevel,
|
|
18399
|
-
numberOfAudioTags: 0,
|
|
18400
|
-
audioLatencyHint: "interactive",
|
|
18401
|
-
frameState: {
|
|
18402
|
-
[COMP_ID]: frame2
|
|
18372
|
+
flushSync(() => {
|
|
18373
|
+
root.render(/* @__PURE__ */ jsx177(Internals44.RemotionEnvironmentContext, {
|
|
18374
|
+
value: {
|
|
18375
|
+
isStudio: false,
|
|
18376
|
+
isRendering: true,
|
|
18377
|
+
isPlayer: false,
|
|
18378
|
+
isReadOnlyStudio: false,
|
|
18379
|
+
isClientSideRendering: true
|
|
18380
|
+
},
|
|
18381
|
+
children: /* @__PURE__ */ jsx177(Internals44.DelayRenderContextType.Provider, {
|
|
18382
|
+
value: delayRenderScope,
|
|
18383
|
+
children: /* @__PURE__ */ jsx177(Internals44.CompositionManager.Provider, {
|
|
18384
|
+
value: {
|
|
18385
|
+
compositions: [
|
|
18386
|
+
{
|
|
18387
|
+
id: COMP_ID,
|
|
18388
|
+
component: Component,
|
|
18389
|
+
nonce: 0,
|
|
18390
|
+
defaultProps: undefined,
|
|
18391
|
+
folderName: null,
|
|
18392
|
+
parentFolderName: null,
|
|
18393
|
+
schema: null,
|
|
18394
|
+
calculateMetadata: null,
|
|
18395
|
+
durationInFrames,
|
|
18396
|
+
fps,
|
|
18397
|
+
height,
|
|
18398
|
+
width
|
|
18399
|
+
}
|
|
18400
|
+
],
|
|
18401
|
+
canvasContent: {
|
|
18402
|
+
type: "composition",
|
|
18403
|
+
compositionId: COMP_ID
|
|
18404
|
+
},
|
|
18405
|
+
currentCompositionMetadata: {
|
|
18406
|
+
props: inputProps,
|
|
18407
|
+
durationInFrames,
|
|
18408
|
+
fps,
|
|
18409
|
+
height,
|
|
18410
|
+
width,
|
|
18411
|
+
defaultCodec: null,
|
|
18412
|
+
defaultOutName: null,
|
|
18413
|
+
defaultVideoImageFormat: null,
|
|
18414
|
+
defaultPixelFormat: null,
|
|
18415
|
+
defaultProResProfile: null
|
|
18416
|
+
},
|
|
18417
|
+
folders: []
|
|
18403
18418
|
},
|
|
18404
|
-
children: /* @__PURE__ */ jsx177(Internals44.
|
|
18405
|
-
|
|
18406
|
-
|
|
18419
|
+
children: /* @__PURE__ */ jsx177(Internals44.RemotionRoot, {
|
|
18420
|
+
audioEnabled: false,
|
|
18421
|
+
videoEnabled: true,
|
|
18422
|
+
logLevel,
|
|
18423
|
+
numberOfAudioTags: 0,
|
|
18424
|
+
audioLatencyHint: "interactive",
|
|
18425
|
+
frameState: {
|
|
18426
|
+
[COMP_ID]: frame2
|
|
18427
|
+
},
|
|
18428
|
+
children: /* @__PURE__ */ jsx177(Internals44.CanUseRemotionHooks, {
|
|
18429
|
+
value: true,
|
|
18430
|
+
children: /* @__PURE__ */ jsx177(Component, {
|
|
18431
|
+
...inputProps
|
|
18432
|
+
})
|
|
18433
|
+
})
|
|
18407
18434
|
})
|
|
18408
18435
|
})
|
|
18409
18436
|
})
|
|
18410
|
-
})
|
|
18411
|
-
})
|
|
18437
|
+
}));
|
|
18438
|
+
});
|
|
18439
|
+
resolve();
|
|
18440
|
+
await promise;
|
|
18412
18441
|
await waitForReady(delayRenderTimeoutInMilliseconds, delayRenderScope);
|
|
18413
18442
|
const canvasElements = findCanvasElements(div);
|
|
18414
18443
|
const svgElements = findSvgElements(div);
|
|
@@ -18423,7 +18452,7 @@ var internalRenderStillOnWeb = async ({
|
|
|
18423
18452
|
root.unmount();
|
|
18424
18453
|
div.remove();
|
|
18425
18454
|
return imageData;
|
|
18426
|
-
}
|
|
18455
|
+
}
|
|
18427
18456
|
var renderStillOnWeb = (options) => {
|
|
18428
18457
|
return internalRenderStillOnWeb({
|
|
18429
18458
|
...options,
|
|
@@ -18455,7 +18484,8 @@ var TriggerWebRender = () => {
|
|
|
18455
18484
|
height: video.height,
|
|
18456
18485
|
fps: video.fps,
|
|
18457
18486
|
durationInFrames: video.durationInFrames,
|
|
18458
|
-
frame: frame2
|
|
18487
|
+
frame: frame2,
|
|
18488
|
+
inputProps: {}
|
|
18459
18489
|
}).then((blob) => {
|
|
18460
18490
|
const url = URL.createObjectURL(blob);
|
|
18461
18491
|
const a = document.createElement("a");
|
|
@@ -20970,7 +21000,7 @@ var getTimelineSequenceLayout = ({
|
|
|
20970
21000
|
// src/helpers/use-max-media-duration.ts
|
|
20971
21001
|
import { getVideoMetadata as getVideoMetadata2 } from "@remotion/media-utils";
|
|
20972
21002
|
|
|
20973
|
-
// ../../node_modules/.bun/mediabunny@1.24.
|
|
21003
|
+
// ../../node_modules/.bun/mediabunny@1.24.5/node_modules/mediabunny/dist/modules/src/misc.js
|
|
20974
21004
|
/*!
|
|
20975
21005
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
20976
21006
|
*
|
|
@@ -21322,13 +21352,13 @@ class CallSerializer {
|
|
|
21322
21352
|
return this.currentPromise = this.currentPromise.then(fn);
|
|
21323
21353
|
}
|
|
21324
21354
|
}
|
|
21325
|
-
var
|
|
21326
|
-
var
|
|
21327
|
-
if (
|
|
21328
|
-
return
|
|
21355
|
+
var isWebKitCache = null;
|
|
21356
|
+
var isWebKit = () => {
|
|
21357
|
+
if (isWebKitCache !== null) {
|
|
21358
|
+
return isWebKitCache;
|
|
21329
21359
|
}
|
|
21330
|
-
const result = !!(typeof navigator !== "undefined" && navigator.vendor?.match(/apple/i)
|
|
21331
|
-
|
|
21360
|
+
const result = !!(typeof navigator !== "undefined" && navigator.vendor?.match(/apple/i));
|
|
21361
|
+
isWebKitCache = result;
|
|
21332
21362
|
return result;
|
|
21333
21363
|
};
|
|
21334
21364
|
var isFirefoxCache = null;
|
|
@@ -21359,7 +21389,7 @@ var isNumber = (x) => {
|
|
|
21359
21389
|
return typeof x === "number" && !Number.isNaN(x);
|
|
21360
21390
|
};
|
|
21361
21391
|
|
|
21362
|
-
// ../../node_modules/.bun/mediabunny@1.24.
|
|
21392
|
+
// ../../node_modules/.bun/mediabunny@1.24.5/node_modules/mediabunny/dist/modules/src/tags.js
|
|
21363
21393
|
/*!
|
|
21364
21394
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
21365
21395
|
*
|
|
@@ -21402,7 +21432,7 @@ class AttachedFile {
|
|
|
21402
21432
|
}
|
|
21403
21433
|
}
|
|
21404
21434
|
|
|
21405
|
-
// ../../node_modules/.bun/mediabunny@1.24.
|
|
21435
|
+
// ../../node_modules/.bun/mediabunny@1.24.5/node_modules/mediabunny/dist/modules/src/codec.js
|
|
21406
21436
|
/*!
|
|
21407
21437
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
21408
21438
|
*
|
|
@@ -21675,7 +21705,7 @@ var parsePcmCodec = (codec) => {
|
|
|
21675
21705
|
return { dataType, sampleSize, littleEndian, silentValue };
|
|
21676
21706
|
};
|
|
21677
21707
|
|
|
21678
|
-
// ../../node_modules/.bun/mediabunny@1.24.
|
|
21708
|
+
// ../../node_modules/.bun/mediabunny@1.24.5/node_modules/mediabunny/dist/modules/src/codec-data.js
|
|
21679
21709
|
/*!
|
|
21680
21710
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
21681
21711
|
*
|
|
@@ -22835,7 +22865,7 @@ var readVorbisComments = (bytes, metadataTags) => {
|
|
|
22835
22865
|
}
|
|
22836
22866
|
};
|
|
22837
22867
|
|
|
22838
|
-
// ../../node_modules/.bun/mediabunny@1.24.
|
|
22868
|
+
// ../../node_modules/.bun/mediabunny@1.24.5/node_modules/mediabunny/dist/modules/src/demuxer.js
|
|
22839
22869
|
/*!
|
|
22840
22870
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
22841
22871
|
*
|
|
@@ -22850,7 +22880,7 @@ class Demuxer {
|
|
|
22850
22880
|
}
|
|
22851
22881
|
}
|
|
22852
22882
|
|
|
22853
|
-
// ../../node_modules/.bun/mediabunny@1.24.
|
|
22883
|
+
// ../../node_modules/.bun/mediabunny@1.24.5/node_modules/mediabunny/dist/modules/src/custom-coder.js
|
|
22854
22884
|
/*!
|
|
22855
22885
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
22856
22886
|
*
|
|
@@ -22861,7 +22891,7 @@ class Demuxer {
|
|
|
22861
22891
|
var customVideoDecoders = [];
|
|
22862
22892
|
var customAudioDecoders = [];
|
|
22863
22893
|
|
|
22864
|
-
// ../../node_modules/.bun/mediabunny@1.24.
|
|
22894
|
+
// ../../node_modules/.bun/mediabunny@1.24.5/node_modules/mediabunny/dist/modules/src/packet.js
|
|
22865
22895
|
/*!
|
|
22866
22896
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
22867
22897
|
*
|
|
@@ -22993,7 +23023,7 @@ class EncodedPacket {
|
|
|
22993
23023
|
}
|
|
22994
23024
|
}
|
|
22995
23025
|
|
|
22996
|
-
// ../../node_modules/.bun/mediabunny@1.24.
|
|
23026
|
+
// ../../node_modules/.bun/mediabunny@1.24.5/node_modules/mediabunny/dist/modules/src/sample.js
|
|
22997
23027
|
/*!
|
|
22998
23028
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
22999
23029
|
*
|
|
@@ -23441,7 +23471,7 @@ var validateCropRectangle = (crop, prefix) => {
|
|
|
23441
23471
|
};
|
|
23442
23472
|
var AUDIO_SAMPLE_FORMATS = new Set(["f32", "f32-planar", "s16", "s16-planar", "s32", "s32-planar", "u8", "u8-planar"]);
|
|
23443
23473
|
|
|
23444
|
-
// ../../node_modules/.bun/mediabunny@1.24.
|
|
23474
|
+
// ../../node_modules/.bun/mediabunny@1.24.5/node_modules/mediabunny/dist/modules/src/media-sink.js
|
|
23445
23475
|
/*!
|
|
23446
23476
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
23447
23477
|
*
|
|
@@ -24035,7 +24065,7 @@ class VideoDecoderWrapper extends DecoderWrapper {
|
|
|
24035
24065
|
this.customDecoderCallSerializer.call(() => this.customDecoder.decode(packet)).then(() => this.customDecoderQueueSize--);
|
|
24036
24066
|
} else {
|
|
24037
24067
|
assert(this.decoder);
|
|
24038
|
-
if (!
|
|
24068
|
+
if (!isWebKit()) {
|
|
24039
24069
|
insertSorted(this.inputTimestamps, packet.timestamp, (x) => x);
|
|
24040
24070
|
}
|
|
24041
24071
|
this.decoder.decode(packet.toEncodedVideoChunk());
|
|
@@ -24125,7 +24155,7 @@ class VideoDecoderWrapper extends DecoderWrapper {
|
|
|
24125
24155
|
});
|
|
24126
24156
|
}
|
|
24127
24157
|
sampleHandler(sample) {
|
|
24128
|
-
if (
|
|
24158
|
+
if (isWebKit()) {
|
|
24129
24159
|
if (this.sampleQueue.length > 0 && sample.timestamp >= last(this.sampleQueue).timestamp) {
|
|
24130
24160
|
for (const sample2 of this.sampleQueue) {
|
|
24131
24161
|
this.finalizeAndEmitSample(sample2);
|
|
@@ -24183,7 +24213,7 @@ class VideoDecoderWrapper extends DecoderWrapper {
|
|
|
24183
24213
|
this.currentAlphaPacketIndex = 0;
|
|
24184
24214
|
this.alphaRaslSkipped = false;
|
|
24185
24215
|
}
|
|
24186
|
-
if (
|
|
24216
|
+
if (isWebKit()) {
|
|
24187
24217
|
for (const sample of this.sampleQueue) {
|
|
24188
24218
|
this.finalizeAndEmitSample(sample);
|
|
24189
24219
|
}
|
|
@@ -24371,7 +24401,7 @@ class VideoSampleSink extends BaseMediaSampleSink {
|
|
|
24371
24401
|
}
|
|
24372
24402
|
}
|
|
24373
24403
|
|
|
24374
|
-
// ../../node_modules/.bun/mediabunny@1.24.
|
|
24404
|
+
// ../../node_modules/.bun/mediabunny@1.24.5/node_modules/mediabunny/dist/modules/src/input-track.js
|
|
24375
24405
|
/*!
|
|
24376
24406
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
24377
24407
|
*
|
|
@@ -24577,7 +24607,7 @@ class InputAudioTrack extends InputTrack {
|
|
|
24577
24607
|
}
|
|
24578
24608
|
}
|
|
24579
24609
|
|
|
24580
|
-
// ../../node_modules/.bun/mediabunny@1.24.
|
|
24610
|
+
// ../../node_modules/.bun/mediabunny@1.24.5/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-misc.js
|
|
24581
24611
|
/*!
|
|
24582
24612
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
24583
24613
|
*
|
|
@@ -24595,7 +24625,7 @@ var buildIsobmffMimeType = (info) => {
|
|
|
24595
24625
|
return string;
|
|
24596
24626
|
};
|
|
24597
24627
|
|
|
24598
|
-
// ../../node_modules/.bun/mediabunny@1.24.
|
|
24628
|
+
// ../../node_modules/.bun/mediabunny@1.24.5/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-reader.js
|
|
24599
24629
|
/*!
|
|
24600
24630
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
24601
24631
|
*
|
|
@@ -24671,7 +24701,7 @@ var readDataBox = (slice) => {
|
|
|
24671
24701
|
}
|
|
24672
24702
|
};
|
|
24673
24703
|
|
|
24674
|
-
// ../../node_modules/.bun/mediabunny@1.24.
|
|
24704
|
+
// ../../node_modules/.bun/mediabunny@1.24.5/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-demuxer.js
|
|
24675
24705
|
/*!
|
|
24676
24706
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
24677
24707
|
*
|
|
@@ -26927,7 +26957,7 @@ var sampleTableIsEmpty = (sampleTable) => {
|
|
|
26927
26957
|
return sampleTable.sampleSizes.length === 0;
|
|
26928
26958
|
};
|
|
26929
26959
|
|
|
26930
|
-
// ../../node_modules/.bun/mediabunny@1.24.
|
|
26960
|
+
// ../../node_modules/.bun/mediabunny@1.24.5/node_modules/mediabunny/dist/modules/src/matroska/ebml.js
|
|
26931
26961
|
/*!
|
|
26932
26962
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
26933
26963
|
*
|
|
@@ -27245,7 +27275,7 @@ function assertDefinedSize(size4) {
|
|
|
27245
27275
|
}
|
|
27246
27276
|
}
|
|
27247
27277
|
|
|
27248
|
-
// ../../node_modules/.bun/mediabunny@1.24.
|
|
27278
|
+
// ../../node_modules/.bun/mediabunny@1.24.5/node_modules/mediabunny/dist/modules/src/matroska/matroska-misc.js
|
|
27249
27279
|
/*!
|
|
27250
27280
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
27251
27281
|
*
|
|
@@ -27263,7 +27293,7 @@ var buildMatroskaMimeType = (info) => {
|
|
|
27263
27293
|
return string;
|
|
27264
27294
|
};
|
|
27265
27295
|
|
|
27266
|
-
// ../../node_modules/.bun/mediabunny@1.24.
|
|
27296
|
+
// ../../node_modules/.bun/mediabunny@1.24.5/node_modules/mediabunny/dist/modules/src/matroska/matroska-demuxer.js
|
|
27267
27297
|
/*!
|
|
27268
27298
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
27269
27299
|
*
|
|
@@ -27723,10 +27753,10 @@ class MatroskaDemuxer extends Demuxer {
|
|
|
27723
27753
|
}
|
|
27724
27754
|
assert(frameSizes.length === frameCount);
|
|
27725
27755
|
blocks.splice(blockIndex, 1);
|
|
27756
|
+
const blockDuration = originalBlock.duration || frameCount * (track.defaultDuration ?? 0);
|
|
27726
27757
|
for (let i = 0;i < frameCount; i++) {
|
|
27727
27758
|
const frameSize = frameSizes[i];
|
|
27728
27759
|
const frameData = readBytes(slice, frameSize);
|
|
27729
|
-
const blockDuration = originalBlock.duration || frameCount * (track.defaultDuration ?? 0);
|
|
27730
27760
|
const frameTimestamp = originalBlock.timestamp + blockDuration * i / frameCount;
|
|
27731
27761
|
const frameDuration = blockDuration / frameCount;
|
|
27732
27762
|
blocks.splice(blockIndex + i, 0, {
|
|
@@ -29136,7 +29166,7 @@ var sortBlocksByReferences = (blocks) => {
|
|
|
29136
29166
|
return result;
|
|
29137
29167
|
};
|
|
29138
29168
|
|
|
29139
|
-
// ../../node_modules/.bun/mediabunny@1.24.
|
|
29169
|
+
// ../../node_modules/.bun/mediabunny@1.24.5/node_modules/mediabunny/dist/modules/shared/mp3-misc.js
|
|
29140
29170
|
/*!
|
|
29141
29171
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
29142
29172
|
*
|
|
@@ -29378,7 +29408,7 @@ var decodeSynchsafe = (synchsafed) => {
|
|
|
29378
29408
|
return unsynchsafed;
|
|
29379
29409
|
};
|
|
29380
29410
|
|
|
29381
|
-
// ../../node_modules/.bun/mediabunny@1.24.
|
|
29411
|
+
// ../../node_modules/.bun/mediabunny@1.24.5/node_modules/mediabunny/dist/modules/src/id3.js
|
|
29382
29412
|
/*!
|
|
29383
29413
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
29384
29414
|
*
|
|
@@ -30078,7 +30108,7 @@ class Id3V2Reader {
|
|
|
30078
30108
|
}
|
|
30079
30109
|
}
|
|
30080
30110
|
|
|
30081
|
-
// ../../node_modules/.bun/mediabunny@1.24.
|
|
30111
|
+
// ../../node_modules/.bun/mediabunny@1.24.5/node_modules/mediabunny/dist/modules/src/mp3/mp3-reader.js
|
|
30082
30112
|
/*!
|
|
30083
30113
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
30084
30114
|
*
|
|
@@ -30104,7 +30134,7 @@ var readNextFrameHeader = async (reader, startPos, until) => {
|
|
|
30104
30134
|
return null;
|
|
30105
30135
|
};
|
|
30106
30136
|
|
|
30107
|
-
// ../../node_modules/.bun/mediabunny@1.24.
|
|
30137
|
+
// ../../node_modules/.bun/mediabunny@1.24.5/node_modules/mediabunny/dist/modules/src/mp3/mp3-demuxer.js
|
|
30108
30138
|
/*!
|
|
30109
30139
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
30110
30140
|
*
|
|
@@ -30364,7 +30394,7 @@ class Mp3AudioTrackBacking {
|
|
|
30364
30394
|
}
|
|
30365
30395
|
}
|
|
30366
30396
|
|
|
30367
|
-
// ../../node_modules/.bun/mediabunny@1.24.
|
|
30397
|
+
// ../../node_modules/.bun/mediabunny@1.24.5/node_modules/mediabunny/dist/modules/src/ogg/ogg-misc.js
|
|
30368
30398
|
/*!
|
|
30369
30399
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
30370
30400
|
*
|
|
@@ -30435,7 +30465,7 @@ var buildOggMimeType = (info) => {
|
|
|
30435
30465
|
return string;
|
|
30436
30466
|
};
|
|
30437
30467
|
|
|
30438
|
-
// ../../node_modules/.bun/mediabunny@1.24.
|
|
30468
|
+
// ../../node_modules/.bun/mediabunny@1.24.5/node_modules/mediabunny/dist/modules/src/ogg/ogg-reader.js
|
|
30439
30469
|
/*!
|
|
30440
30470
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
30441
30471
|
*
|
|
@@ -30499,7 +30529,7 @@ var findNextPageHeader = (slice, until) => {
|
|
|
30499
30529
|
return false;
|
|
30500
30530
|
};
|
|
30501
30531
|
|
|
30502
|
-
// ../../node_modules/.bun/mediabunny@1.24.
|
|
30532
|
+
// ../../node_modules/.bun/mediabunny@1.24.5/node_modules/mediabunny/dist/modules/src/ogg/ogg-demuxer.js
|
|
30503
30533
|
/*!
|
|
30504
30534
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
30505
30535
|
*
|
|
@@ -31154,7 +31184,7 @@ var findPreviousPacketEndPosition = (pageList, startPage, startSegmentIndex) =>
|
|
|
31154
31184
|
return { page: previousPage, segmentIndex: previousPage.lacingValues.length - 1 };
|
|
31155
31185
|
};
|
|
31156
31186
|
|
|
31157
|
-
// ../../node_modules/.bun/mediabunny@1.24.
|
|
31187
|
+
// ../../node_modules/.bun/mediabunny@1.24.5/node_modules/mediabunny/dist/modules/src/wave/wave-demuxer.js
|
|
31158
31188
|
/*!
|
|
31159
31189
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
31160
31190
|
*
|
|
@@ -31570,7 +31600,7 @@ class WaveAudioTrackBacking {
|
|
|
31570
31600
|
}
|
|
31571
31601
|
}
|
|
31572
31602
|
|
|
31573
|
-
// ../../node_modules/.bun/mediabunny@1.24.
|
|
31603
|
+
// ../../node_modules/.bun/mediabunny@1.24.5/node_modules/mediabunny/dist/modules/src/adts/adts-reader.js
|
|
31574
31604
|
/*!
|
|
31575
31605
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
31576
31606
|
*
|
|
@@ -31631,7 +31661,7 @@ var readFrameHeader2 = (slice) => {
|
|
|
31631
31661
|
};
|
|
31632
31662
|
};
|
|
31633
31663
|
|
|
31634
|
-
// ../../node_modules/.bun/mediabunny@1.24.
|
|
31664
|
+
// ../../node_modules/.bun/mediabunny@1.24.5/node_modules/mediabunny/dist/modules/src/adts/adts-demuxer.js
|
|
31635
31665
|
/*!
|
|
31636
31666
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
31637
31667
|
*
|
|
@@ -31847,7 +31877,7 @@ class AdtsAudioTrackBacking {
|
|
|
31847
31877
|
}
|
|
31848
31878
|
}
|
|
31849
31879
|
|
|
31850
|
-
// ../../node_modules/.bun/mediabunny@1.24.
|
|
31880
|
+
// ../../node_modules/.bun/mediabunny@1.24.5/node_modules/mediabunny/dist/modules/src/flac/flac-misc.js
|
|
31851
31881
|
/*!
|
|
31852
31882
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
31853
31883
|
*
|
|
@@ -31982,7 +32012,7 @@ var calculateCrc8 = (data) => {
|
|
|
31982
32012
|
return crc;
|
|
31983
32013
|
};
|
|
31984
32014
|
|
|
31985
|
-
// ../../node_modules/.bun/mediabunny@1.24.
|
|
32015
|
+
// ../../node_modules/.bun/mediabunny@1.24.5/node_modules/mediabunny/dist/modules/src/flac/flac-demuxer.js
|
|
31986
32016
|
/*!
|
|
31987
32017
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
31988
32018
|
*
|
|
@@ -32153,20 +32183,25 @@ class FlacDemuxer extends Demuxer {
|
|
|
32153
32183
|
}
|
|
32154
32184
|
slice.skip(-2);
|
|
32155
32185
|
const lengthIfNextFlacFrameHeaderIsLegit = slice.filePos - startPos;
|
|
32156
|
-
const
|
|
32186
|
+
const nextFrameHeader = this.readFlacFrameHeader({
|
|
32157
32187
|
slice,
|
|
32158
32188
|
isFirstPacket: false
|
|
32159
32189
|
});
|
|
32160
|
-
if (!
|
|
32190
|
+
if (!nextFrameHeader) {
|
|
32161
32191
|
slice.skip(-1);
|
|
32162
32192
|
continue;
|
|
32163
32193
|
}
|
|
32164
|
-
if (
|
|
32165
|
-
|
|
32166
|
-
|
|
32167
|
-
|
|
32194
|
+
if (this.blockingBit === 0) {
|
|
32195
|
+
if (nextFrameHeader.num - frameHeader.num !== 1) {
|
|
32196
|
+
slice.skip(-1);
|
|
32197
|
+
continue;
|
|
32198
|
+
}
|
|
32199
|
+
} else {
|
|
32200
|
+
if (nextFrameHeader.num - frameHeader.num !== frameHeader.blockSize) {
|
|
32201
|
+
slice.skip(-1);
|
|
32202
|
+
continue;
|
|
32203
|
+
}
|
|
32168
32204
|
}
|
|
32169
|
-
console.log(frameHeader.num, nextIsLegit.num, slice.filePos);
|
|
32170
32205
|
return {
|
|
32171
32206
|
num: frameHeader.num,
|
|
32172
32207
|
blockSize: frameHeader.blockSize,
|
|
@@ -32225,6 +32260,9 @@ class FlacDemuxer extends Demuxer {
|
|
|
32225
32260
|
if (sampleRate === null) {
|
|
32226
32261
|
return null;
|
|
32227
32262
|
}
|
|
32263
|
+
if (sampleRate !== this.audioInfo.sampleRate) {
|
|
32264
|
+
return null;
|
|
32265
|
+
}
|
|
32228
32266
|
const size4 = slice.filePos - startOffset;
|
|
32229
32267
|
const crc = readU8(slice);
|
|
32230
32268
|
slice.skip(-size4);
|
|
@@ -32392,7 +32430,7 @@ class FlacAudioTrackBacking {
|
|
|
32392
32430
|
}
|
|
32393
32431
|
}
|
|
32394
32432
|
|
|
32395
|
-
// ../../node_modules/.bun/mediabunny@1.24.
|
|
32433
|
+
// ../../node_modules/.bun/mediabunny@1.24.5/node_modules/mediabunny/dist/modules/src/input-format.js
|
|
32396
32434
|
/*!
|
|
32397
32435
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
32398
32436
|
*
|
|
@@ -32714,7 +32752,7 @@ var ADTS = new AdtsInputFormat;
|
|
|
32714
32752
|
var FLAC = new FlacInputFormat;
|
|
32715
32753
|
var ALL_FORMATS = [MP4, QTFF, MATROSKA, WEBM, WAVE, OGG, FLAC, MP3, ADTS];
|
|
32716
32754
|
|
|
32717
|
-
// ../../node_modules/.bun/mediabunny@1.24.
|
|
32755
|
+
// ../../node_modules/.bun/mediabunny@1.24.5/node_modules/mediabunny/dist/modules/src/source.js
|
|
32718
32756
|
var nodeAlias = (() => ({}));
|
|
32719
32757
|
/*!
|
|
32720
32758
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
@@ -32832,7 +32870,7 @@ class UrlSource extends Source {
|
|
|
32832
32870
|
return this._orchestrator.read(start, end);
|
|
32833
32871
|
}
|
|
32834
32872
|
async _runWorker(worker) {
|
|
32835
|
-
while (
|
|
32873
|
+
while (true) {
|
|
32836
32874
|
const existing = this._existingResponses.get(worker);
|
|
32837
32875
|
this._existingResponses.delete(worker);
|
|
32838
32876
|
let abortController = existing?.abortController;
|
|
@@ -32881,6 +32919,9 @@ class UrlSource extends Source {
|
|
|
32881
32919
|
throw error;
|
|
32882
32920
|
}
|
|
32883
32921
|
}
|
|
32922
|
+
if (worker.aborted) {
|
|
32923
|
+
break;
|
|
32924
|
+
}
|
|
32884
32925
|
const { done, value } = readResult;
|
|
32885
32926
|
if (done) {
|
|
32886
32927
|
this._orchestrator.forgetWorker(worker);
|
|
@@ -32893,6 +32934,9 @@ class UrlSource extends Source {
|
|
|
32893
32934
|
this.onread?.(worker.currentPos, worker.currentPos + value.length);
|
|
32894
32935
|
this._orchestrator.supplyWorkerData(worker, value);
|
|
32895
32936
|
}
|
|
32937
|
+
if (worker.aborted) {
|
|
32938
|
+
break;
|
|
32939
|
+
}
|
|
32896
32940
|
}
|
|
32897
32941
|
worker.running = false;
|
|
32898
32942
|
}
|
|
@@ -33084,7 +33128,7 @@ class ReadOrchestrator {
|
|
|
33084
33128
|
currentPos: startPos,
|
|
33085
33129
|
targetPos,
|
|
33086
33130
|
running: false,
|
|
33087
|
-
aborted:
|
|
33131
|
+
aborted: this.disposed,
|
|
33088
33132
|
pendingSlices: [],
|
|
33089
33133
|
age: this.nextAge++
|
|
33090
33134
|
};
|
|
@@ -33123,9 +33167,7 @@ class ReadOrchestrator {
|
|
|
33123
33167
|
});
|
|
33124
33168
|
}
|
|
33125
33169
|
supplyWorkerData(worker, bytes) {
|
|
33126
|
-
|
|
33127
|
-
return;
|
|
33128
|
-
}
|
|
33170
|
+
assert(!worker.aborted);
|
|
33129
33171
|
const start = worker.currentPos;
|
|
33130
33172
|
const end = start + bytes.length;
|
|
33131
33173
|
this.insertIntoCache({
|
|
@@ -33252,7 +33294,7 @@ class ReadOrchestrator {
|
|
|
33252
33294
|
}
|
|
33253
33295
|
}
|
|
33254
33296
|
|
|
33255
|
-
// ../../node_modules/.bun/mediabunny@1.24.
|
|
33297
|
+
// ../../node_modules/.bun/mediabunny@1.24.5/node_modules/mediabunny/dist/modules/src/input.js
|
|
33256
33298
|
/*!
|
|
33257
33299
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
33258
33300
|
*
|
|
@@ -33359,7 +33401,7 @@ class InputDisposedError extends Error {
|
|
|
33359
33401
|
}
|
|
33360
33402
|
}
|
|
33361
33403
|
|
|
33362
|
-
// ../../node_modules/.bun/mediabunny@1.24.
|
|
33404
|
+
// ../../node_modules/.bun/mediabunny@1.24.5/node_modules/mediabunny/dist/modules/src/reader.js
|
|
33363
33405
|
/*!
|
|
33364
33406
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
33365
33407
|
*
|
|
@@ -33577,7 +33619,7 @@ var readAscii = (slice, length) => {
|
|
|
33577
33619
|
}
|
|
33578
33620
|
return str;
|
|
33579
33621
|
};
|
|
33580
|
-
// ../../node_modules/.bun/mediabunny@1.24.
|
|
33622
|
+
// ../../node_modules/.bun/mediabunny@1.24.5/node_modules/mediabunny/dist/modules/src/index.js
|
|
33581
33623
|
/*!
|
|
33582
33624
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
33583
33625
|
*
|
|
@@ -42785,15 +42827,17 @@ var Studio = ({ rootComponent, readOnly }) => {
|
|
|
42785
42827
|
logLevel: window.remotion_logLevel,
|
|
42786
42828
|
numberOfAudioTags: window.remotion_numberOfAudioTags,
|
|
42787
42829
|
audioLatencyHint: window.remotion_audioLatencyHint ?? "interactive",
|
|
42788
|
-
children: /* @__PURE__ */
|
|
42789
|
-
|
|
42790
|
-
|
|
42791
|
-
|
|
42792
|
-
|
|
42793
|
-
|
|
42794
|
-
|
|
42795
|
-
|
|
42796
|
-
|
|
42830
|
+
children: /* @__PURE__ */ jsx275(Internals67.ResolveCompositionConfigInStudio, {
|
|
42831
|
+
children: /* @__PURE__ */ jsxs141(EditorContexts, {
|
|
42832
|
+
readOnlyStudio: readOnly,
|
|
42833
|
+
children: [
|
|
42834
|
+
/* @__PURE__ */ jsx275(Editor, {
|
|
42835
|
+
readOnlyStudio: readOnly,
|
|
42836
|
+
Root: rootComponent
|
|
42837
|
+
}),
|
|
42838
|
+
readOnly ? null : createPortal(/* @__PURE__ */ jsx275(ServerDisconnected, {}), getServerDisconnectedDomElement())
|
|
42839
|
+
]
|
|
42840
|
+
})
|
|
42797
42841
|
})
|
|
42798
42842
|
})
|
|
42799
42843
|
});
|