@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
package/dist/esm/internals.mjs
CHANGED
|
@@ -17940,6 +17940,7 @@ var TimelineZoomControls = () => {
|
|
|
17940
17940
|
};
|
|
17941
17941
|
|
|
17942
17942
|
// ../web-renderer/dist/esm/index.mjs
|
|
17943
|
+
import { flushSync } from "react-dom";
|
|
17943
17944
|
import ReactDOM8 from "react-dom/client";
|
|
17944
17945
|
import { Internals as Internals44 } from "remotion";
|
|
17945
17946
|
import { jsx as jsx176 } from "react/jsx-runtime";
|
|
@@ -18018,12 +18019,26 @@ var findSvgElements = (element) => {
|
|
|
18018
18019
|
});
|
|
18019
18020
|
return composables;
|
|
18020
18021
|
};
|
|
18022
|
+
var withResolvers = function() {
|
|
18023
|
+
let resolve;
|
|
18024
|
+
let reject;
|
|
18025
|
+
const promise = new Promise((res, rej) => {
|
|
18026
|
+
resolve = res;
|
|
18027
|
+
reject = rej;
|
|
18028
|
+
});
|
|
18029
|
+
return { promise, resolve, reject };
|
|
18030
|
+
};
|
|
18021
18031
|
var waitForReady = (timeoutInMilliseconds, scope) => {
|
|
18022
|
-
|
|
18032
|
+
if (scope.remotion_renderReady === true) {
|
|
18033
|
+
return Promise.resolve();
|
|
18034
|
+
}
|
|
18023
18035
|
const start = Date.now();
|
|
18036
|
+
const { promise, resolve, reject } = withResolvers();
|
|
18024
18037
|
const interval = setInterval(() => {
|
|
18025
18038
|
if (scope.remotion_renderReady === true) {
|
|
18026
|
-
|
|
18039
|
+
requestAnimationFrame(() => {
|
|
18040
|
+
resolve();
|
|
18041
|
+
});
|
|
18027
18042
|
clearInterval(interval);
|
|
18028
18043
|
return;
|
|
18029
18044
|
}
|
|
@@ -18040,7 +18055,7 @@ var waitForReady = (timeoutInMilliseconds, scope) => {
|
|
|
18040
18055
|
return promise;
|
|
18041
18056
|
};
|
|
18042
18057
|
var COMP_ID = "markup";
|
|
18043
|
-
|
|
18058
|
+
async function internalRenderStillOnWeb({
|
|
18044
18059
|
Component,
|
|
18045
18060
|
width,
|
|
18046
18061
|
height,
|
|
@@ -18048,8 +18063,9 @@ var internalRenderStillOnWeb = async ({
|
|
|
18048
18063
|
durationInFrames,
|
|
18049
18064
|
frame: frame2,
|
|
18050
18065
|
delayRenderTimeoutInMilliseconds,
|
|
18051
|
-
logLevel
|
|
18052
|
-
|
|
18066
|
+
logLevel,
|
|
18067
|
+
inputProps
|
|
18068
|
+
}) {
|
|
18053
18069
|
const div = document.createElement("div");
|
|
18054
18070
|
div.style.display = "flex";
|
|
18055
18071
|
div.style.backgroundColor = "transparent";
|
|
@@ -18061,74 +18077,87 @@ var internalRenderStillOnWeb = async ({
|
|
|
18061
18077
|
if (!ReactDOM8.createRoot) {
|
|
18062
18078
|
throw new Error("@remotion/web-renderer requires React 18 or higher");
|
|
18063
18079
|
}
|
|
18064
|
-
const
|
|
18080
|
+
const { promise, resolve, reject } = withResolvers();
|
|
18081
|
+
const root = ReactDOM8.createRoot(div, {
|
|
18082
|
+
onUncaughtError: (err) => {
|
|
18083
|
+
reject(err);
|
|
18084
|
+
}
|
|
18085
|
+
});
|
|
18065
18086
|
const delayRenderScope = {
|
|
18066
18087
|
remotion_renderReady: true,
|
|
18067
18088
|
remotion_delayRenderTimeouts: {},
|
|
18068
18089
|
remotion_puppeteerTimeout: delayRenderTimeoutInMilliseconds,
|
|
18069
18090
|
remotion_attempt: 0
|
|
18070
18091
|
};
|
|
18071
|
-
|
|
18072
|
-
|
|
18073
|
-
|
|
18074
|
-
|
|
18075
|
-
|
|
18076
|
-
|
|
18077
|
-
|
|
18078
|
-
|
|
18079
|
-
|
|
18080
|
-
|
|
18081
|
-
|
|
18082
|
-
|
|
18083
|
-
|
|
18084
|
-
|
|
18085
|
-
|
|
18086
|
-
|
|
18087
|
-
|
|
18088
|
-
|
|
18089
|
-
|
|
18090
|
-
|
|
18091
|
-
|
|
18092
|
-
|
|
18093
|
-
|
|
18094
|
-
|
|
18095
|
-
|
|
18096
|
-
|
|
18097
|
-
|
|
18098
|
-
|
|
18099
|
-
|
|
18100
|
-
|
|
18101
|
-
|
|
18102
|
-
|
|
18103
|
-
|
|
18104
|
-
|
|
18105
|
-
|
|
18106
|
-
|
|
18107
|
-
|
|
18108
|
-
|
|
18109
|
-
|
|
18110
|
-
|
|
18111
|
-
|
|
18112
|
-
|
|
18113
|
-
|
|
18114
|
-
|
|
18115
|
-
|
|
18116
|
-
|
|
18117
|
-
videoEnabled: true,
|
|
18118
|
-
logLevel,
|
|
18119
|
-
numberOfAudioTags: 0,
|
|
18120
|
-
audioLatencyHint: "interactive",
|
|
18121
|
-
frameState: {
|
|
18122
|
-
[COMP_ID]: frame2
|
|
18092
|
+
flushSync(() => {
|
|
18093
|
+
root.render(/* @__PURE__ */ jsx176(Internals44.RemotionEnvironmentContext, {
|
|
18094
|
+
value: {
|
|
18095
|
+
isStudio: false,
|
|
18096
|
+
isRendering: true,
|
|
18097
|
+
isPlayer: false,
|
|
18098
|
+
isReadOnlyStudio: false,
|
|
18099
|
+
isClientSideRendering: true
|
|
18100
|
+
},
|
|
18101
|
+
children: /* @__PURE__ */ jsx176(Internals44.DelayRenderContextType.Provider, {
|
|
18102
|
+
value: delayRenderScope,
|
|
18103
|
+
children: /* @__PURE__ */ jsx176(Internals44.CompositionManager.Provider, {
|
|
18104
|
+
value: {
|
|
18105
|
+
compositions: [
|
|
18106
|
+
{
|
|
18107
|
+
id: COMP_ID,
|
|
18108
|
+
component: Component,
|
|
18109
|
+
nonce: 0,
|
|
18110
|
+
defaultProps: undefined,
|
|
18111
|
+
folderName: null,
|
|
18112
|
+
parentFolderName: null,
|
|
18113
|
+
schema: null,
|
|
18114
|
+
calculateMetadata: null,
|
|
18115
|
+
durationInFrames,
|
|
18116
|
+
fps,
|
|
18117
|
+
height,
|
|
18118
|
+
width
|
|
18119
|
+
}
|
|
18120
|
+
],
|
|
18121
|
+
canvasContent: {
|
|
18122
|
+
type: "composition",
|
|
18123
|
+
compositionId: COMP_ID
|
|
18124
|
+
},
|
|
18125
|
+
currentCompositionMetadata: {
|
|
18126
|
+
props: inputProps,
|
|
18127
|
+
durationInFrames,
|
|
18128
|
+
fps,
|
|
18129
|
+
height,
|
|
18130
|
+
width,
|
|
18131
|
+
defaultCodec: null,
|
|
18132
|
+
defaultOutName: null,
|
|
18133
|
+
defaultVideoImageFormat: null,
|
|
18134
|
+
defaultPixelFormat: null,
|
|
18135
|
+
defaultProResProfile: null
|
|
18136
|
+
},
|
|
18137
|
+
folders: []
|
|
18123
18138
|
},
|
|
18124
|
-
children: /* @__PURE__ */ jsx176(Internals44.
|
|
18125
|
-
|
|
18126
|
-
|
|
18139
|
+
children: /* @__PURE__ */ jsx176(Internals44.RemotionRoot, {
|
|
18140
|
+
audioEnabled: false,
|
|
18141
|
+
videoEnabled: true,
|
|
18142
|
+
logLevel,
|
|
18143
|
+
numberOfAudioTags: 0,
|
|
18144
|
+
audioLatencyHint: "interactive",
|
|
18145
|
+
frameState: {
|
|
18146
|
+
[COMP_ID]: frame2
|
|
18147
|
+
},
|
|
18148
|
+
children: /* @__PURE__ */ jsx176(Internals44.CanUseRemotionHooks, {
|
|
18149
|
+
value: true,
|
|
18150
|
+
children: /* @__PURE__ */ jsx176(Component, {
|
|
18151
|
+
...inputProps
|
|
18152
|
+
})
|
|
18153
|
+
})
|
|
18127
18154
|
})
|
|
18128
18155
|
})
|
|
18129
18156
|
})
|
|
18130
|
-
})
|
|
18131
|
-
})
|
|
18157
|
+
}));
|
|
18158
|
+
});
|
|
18159
|
+
resolve();
|
|
18160
|
+
await promise;
|
|
18132
18161
|
await waitForReady(delayRenderTimeoutInMilliseconds, delayRenderScope);
|
|
18133
18162
|
const canvasElements = findCanvasElements(div);
|
|
18134
18163
|
const svgElements = findSvgElements(div);
|
|
@@ -18143,7 +18172,7 @@ var internalRenderStillOnWeb = async ({
|
|
|
18143
18172
|
root.unmount();
|
|
18144
18173
|
div.remove();
|
|
18145
18174
|
return imageData;
|
|
18146
|
-
}
|
|
18175
|
+
}
|
|
18147
18176
|
var renderStillOnWeb = (options) => {
|
|
18148
18177
|
return internalRenderStillOnWeb({
|
|
18149
18178
|
...options,
|
|
@@ -18175,7 +18204,8 @@ var TriggerWebRender = () => {
|
|
|
18175
18204
|
height: video.height,
|
|
18176
18205
|
fps: video.fps,
|
|
18177
18206
|
durationInFrames: video.durationInFrames,
|
|
18178
|
-
frame: frame2
|
|
18207
|
+
frame: frame2,
|
|
18208
|
+
inputProps: {}
|
|
18179
18209
|
}).then((blob) => {
|
|
18180
18210
|
const url = URL.createObjectURL(blob);
|
|
18181
18211
|
const a = document.createElement("a");
|
|
@@ -20690,7 +20720,7 @@ var getTimelineSequenceLayout = ({
|
|
|
20690
20720
|
// src/helpers/use-max-media-duration.ts
|
|
20691
20721
|
import { getVideoMetadata as getVideoMetadata2 } from "@remotion/media-utils";
|
|
20692
20722
|
|
|
20693
|
-
// ../../node_modules/.bun/mediabunny@1.24.
|
|
20723
|
+
// ../../node_modules/.bun/mediabunny@1.24.5/node_modules/mediabunny/dist/modules/src/misc.js
|
|
20694
20724
|
/*!
|
|
20695
20725
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
20696
20726
|
*
|
|
@@ -21042,13 +21072,13 @@ class CallSerializer {
|
|
|
21042
21072
|
return this.currentPromise = this.currentPromise.then(fn);
|
|
21043
21073
|
}
|
|
21044
21074
|
}
|
|
21045
|
-
var
|
|
21046
|
-
var
|
|
21047
|
-
if (
|
|
21048
|
-
return
|
|
21075
|
+
var isWebKitCache = null;
|
|
21076
|
+
var isWebKit = () => {
|
|
21077
|
+
if (isWebKitCache !== null) {
|
|
21078
|
+
return isWebKitCache;
|
|
21049
21079
|
}
|
|
21050
|
-
const result = !!(typeof navigator !== "undefined" && navigator.vendor?.match(/apple/i)
|
|
21051
|
-
|
|
21080
|
+
const result = !!(typeof navigator !== "undefined" && navigator.vendor?.match(/apple/i));
|
|
21081
|
+
isWebKitCache = result;
|
|
21052
21082
|
return result;
|
|
21053
21083
|
};
|
|
21054
21084
|
var isFirefoxCache = null;
|
|
@@ -21079,7 +21109,7 @@ var isNumber = (x) => {
|
|
|
21079
21109
|
return typeof x === "number" && !Number.isNaN(x);
|
|
21080
21110
|
};
|
|
21081
21111
|
|
|
21082
|
-
// ../../node_modules/.bun/mediabunny@1.24.
|
|
21112
|
+
// ../../node_modules/.bun/mediabunny@1.24.5/node_modules/mediabunny/dist/modules/src/tags.js
|
|
21083
21113
|
/*!
|
|
21084
21114
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
21085
21115
|
*
|
|
@@ -21122,7 +21152,7 @@ class AttachedFile {
|
|
|
21122
21152
|
}
|
|
21123
21153
|
}
|
|
21124
21154
|
|
|
21125
|
-
// ../../node_modules/.bun/mediabunny@1.24.
|
|
21155
|
+
// ../../node_modules/.bun/mediabunny@1.24.5/node_modules/mediabunny/dist/modules/src/codec.js
|
|
21126
21156
|
/*!
|
|
21127
21157
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
21128
21158
|
*
|
|
@@ -21395,7 +21425,7 @@ var parsePcmCodec = (codec) => {
|
|
|
21395
21425
|
return { dataType, sampleSize, littleEndian, silentValue };
|
|
21396
21426
|
};
|
|
21397
21427
|
|
|
21398
|
-
// ../../node_modules/.bun/mediabunny@1.24.
|
|
21428
|
+
// ../../node_modules/.bun/mediabunny@1.24.5/node_modules/mediabunny/dist/modules/src/codec-data.js
|
|
21399
21429
|
/*!
|
|
21400
21430
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
21401
21431
|
*
|
|
@@ -22555,7 +22585,7 @@ var readVorbisComments = (bytes, metadataTags) => {
|
|
|
22555
22585
|
}
|
|
22556
22586
|
};
|
|
22557
22587
|
|
|
22558
|
-
// ../../node_modules/.bun/mediabunny@1.24.
|
|
22588
|
+
// ../../node_modules/.bun/mediabunny@1.24.5/node_modules/mediabunny/dist/modules/src/demuxer.js
|
|
22559
22589
|
/*!
|
|
22560
22590
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
22561
22591
|
*
|
|
@@ -22570,7 +22600,7 @@ class Demuxer {
|
|
|
22570
22600
|
}
|
|
22571
22601
|
}
|
|
22572
22602
|
|
|
22573
|
-
// ../../node_modules/.bun/mediabunny@1.24.
|
|
22603
|
+
// ../../node_modules/.bun/mediabunny@1.24.5/node_modules/mediabunny/dist/modules/src/custom-coder.js
|
|
22574
22604
|
/*!
|
|
22575
22605
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
22576
22606
|
*
|
|
@@ -22581,7 +22611,7 @@ class Demuxer {
|
|
|
22581
22611
|
var customVideoDecoders = [];
|
|
22582
22612
|
var customAudioDecoders = [];
|
|
22583
22613
|
|
|
22584
|
-
// ../../node_modules/.bun/mediabunny@1.24.
|
|
22614
|
+
// ../../node_modules/.bun/mediabunny@1.24.5/node_modules/mediabunny/dist/modules/src/packet.js
|
|
22585
22615
|
/*!
|
|
22586
22616
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
22587
22617
|
*
|
|
@@ -22713,7 +22743,7 @@ class EncodedPacket {
|
|
|
22713
22743
|
}
|
|
22714
22744
|
}
|
|
22715
22745
|
|
|
22716
|
-
// ../../node_modules/.bun/mediabunny@1.24.
|
|
22746
|
+
// ../../node_modules/.bun/mediabunny@1.24.5/node_modules/mediabunny/dist/modules/src/sample.js
|
|
22717
22747
|
/*!
|
|
22718
22748
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
22719
22749
|
*
|
|
@@ -23161,7 +23191,7 @@ var validateCropRectangle = (crop, prefix) => {
|
|
|
23161
23191
|
};
|
|
23162
23192
|
var AUDIO_SAMPLE_FORMATS = new Set(["f32", "f32-planar", "s16", "s16-planar", "s32", "s32-planar", "u8", "u8-planar"]);
|
|
23163
23193
|
|
|
23164
|
-
// ../../node_modules/.bun/mediabunny@1.24.
|
|
23194
|
+
// ../../node_modules/.bun/mediabunny@1.24.5/node_modules/mediabunny/dist/modules/src/media-sink.js
|
|
23165
23195
|
/*!
|
|
23166
23196
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
23167
23197
|
*
|
|
@@ -23755,7 +23785,7 @@ class VideoDecoderWrapper extends DecoderWrapper {
|
|
|
23755
23785
|
this.customDecoderCallSerializer.call(() => this.customDecoder.decode(packet)).then(() => this.customDecoderQueueSize--);
|
|
23756
23786
|
} else {
|
|
23757
23787
|
assert(this.decoder);
|
|
23758
|
-
if (!
|
|
23788
|
+
if (!isWebKit()) {
|
|
23759
23789
|
insertSorted(this.inputTimestamps, packet.timestamp, (x) => x);
|
|
23760
23790
|
}
|
|
23761
23791
|
this.decoder.decode(packet.toEncodedVideoChunk());
|
|
@@ -23845,7 +23875,7 @@ class VideoDecoderWrapper extends DecoderWrapper {
|
|
|
23845
23875
|
});
|
|
23846
23876
|
}
|
|
23847
23877
|
sampleHandler(sample) {
|
|
23848
|
-
if (
|
|
23878
|
+
if (isWebKit()) {
|
|
23849
23879
|
if (this.sampleQueue.length > 0 && sample.timestamp >= last(this.sampleQueue).timestamp) {
|
|
23850
23880
|
for (const sample2 of this.sampleQueue) {
|
|
23851
23881
|
this.finalizeAndEmitSample(sample2);
|
|
@@ -23903,7 +23933,7 @@ class VideoDecoderWrapper extends DecoderWrapper {
|
|
|
23903
23933
|
this.currentAlphaPacketIndex = 0;
|
|
23904
23934
|
this.alphaRaslSkipped = false;
|
|
23905
23935
|
}
|
|
23906
|
-
if (
|
|
23936
|
+
if (isWebKit()) {
|
|
23907
23937
|
for (const sample of this.sampleQueue) {
|
|
23908
23938
|
this.finalizeAndEmitSample(sample);
|
|
23909
23939
|
}
|
|
@@ -24091,7 +24121,7 @@ class VideoSampleSink extends BaseMediaSampleSink {
|
|
|
24091
24121
|
}
|
|
24092
24122
|
}
|
|
24093
24123
|
|
|
24094
|
-
// ../../node_modules/.bun/mediabunny@1.24.
|
|
24124
|
+
// ../../node_modules/.bun/mediabunny@1.24.5/node_modules/mediabunny/dist/modules/src/input-track.js
|
|
24095
24125
|
/*!
|
|
24096
24126
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
24097
24127
|
*
|
|
@@ -24297,7 +24327,7 @@ class InputAudioTrack extends InputTrack {
|
|
|
24297
24327
|
}
|
|
24298
24328
|
}
|
|
24299
24329
|
|
|
24300
|
-
// ../../node_modules/.bun/mediabunny@1.24.
|
|
24330
|
+
// ../../node_modules/.bun/mediabunny@1.24.5/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-misc.js
|
|
24301
24331
|
/*!
|
|
24302
24332
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
24303
24333
|
*
|
|
@@ -24315,7 +24345,7 @@ var buildIsobmffMimeType = (info) => {
|
|
|
24315
24345
|
return string;
|
|
24316
24346
|
};
|
|
24317
24347
|
|
|
24318
|
-
// ../../node_modules/.bun/mediabunny@1.24.
|
|
24348
|
+
// ../../node_modules/.bun/mediabunny@1.24.5/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-reader.js
|
|
24319
24349
|
/*!
|
|
24320
24350
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
24321
24351
|
*
|
|
@@ -24391,7 +24421,7 @@ var readDataBox = (slice) => {
|
|
|
24391
24421
|
}
|
|
24392
24422
|
};
|
|
24393
24423
|
|
|
24394
|
-
// ../../node_modules/.bun/mediabunny@1.24.
|
|
24424
|
+
// ../../node_modules/.bun/mediabunny@1.24.5/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-demuxer.js
|
|
24395
24425
|
/*!
|
|
24396
24426
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
24397
24427
|
*
|
|
@@ -26647,7 +26677,7 @@ var sampleTableIsEmpty = (sampleTable) => {
|
|
|
26647
26677
|
return sampleTable.sampleSizes.length === 0;
|
|
26648
26678
|
};
|
|
26649
26679
|
|
|
26650
|
-
// ../../node_modules/.bun/mediabunny@1.24.
|
|
26680
|
+
// ../../node_modules/.bun/mediabunny@1.24.5/node_modules/mediabunny/dist/modules/src/matroska/ebml.js
|
|
26651
26681
|
/*!
|
|
26652
26682
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
26653
26683
|
*
|
|
@@ -26965,7 +26995,7 @@ function assertDefinedSize(size4) {
|
|
|
26965
26995
|
}
|
|
26966
26996
|
}
|
|
26967
26997
|
|
|
26968
|
-
// ../../node_modules/.bun/mediabunny@1.24.
|
|
26998
|
+
// ../../node_modules/.bun/mediabunny@1.24.5/node_modules/mediabunny/dist/modules/src/matroska/matroska-misc.js
|
|
26969
26999
|
/*!
|
|
26970
27000
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
26971
27001
|
*
|
|
@@ -26983,7 +27013,7 @@ var buildMatroskaMimeType = (info) => {
|
|
|
26983
27013
|
return string;
|
|
26984
27014
|
};
|
|
26985
27015
|
|
|
26986
|
-
// ../../node_modules/.bun/mediabunny@1.24.
|
|
27016
|
+
// ../../node_modules/.bun/mediabunny@1.24.5/node_modules/mediabunny/dist/modules/src/matroska/matroska-demuxer.js
|
|
26987
27017
|
/*!
|
|
26988
27018
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
26989
27019
|
*
|
|
@@ -27443,10 +27473,10 @@ class MatroskaDemuxer extends Demuxer {
|
|
|
27443
27473
|
}
|
|
27444
27474
|
assert(frameSizes.length === frameCount);
|
|
27445
27475
|
blocks.splice(blockIndex, 1);
|
|
27476
|
+
const blockDuration = originalBlock.duration || frameCount * (track.defaultDuration ?? 0);
|
|
27446
27477
|
for (let i = 0;i < frameCount; i++) {
|
|
27447
27478
|
const frameSize = frameSizes[i];
|
|
27448
27479
|
const frameData = readBytes(slice, frameSize);
|
|
27449
|
-
const blockDuration = originalBlock.duration || frameCount * (track.defaultDuration ?? 0);
|
|
27450
27480
|
const frameTimestamp = originalBlock.timestamp + blockDuration * i / frameCount;
|
|
27451
27481
|
const frameDuration = blockDuration / frameCount;
|
|
27452
27482
|
blocks.splice(blockIndex + i, 0, {
|
|
@@ -28856,7 +28886,7 @@ var sortBlocksByReferences = (blocks) => {
|
|
|
28856
28886
|
return result;
|
|
28857
28887
|
};
|
|
28858
28888
|
|
|
28859
|
-
// ../../node_modules/.bun/mediabunny@1.24.
|
|
28889
|
+
// ../../node_modules/.bun/mediabunny@1.24.5/node_modules/mediabunny/dist/modules/shared/mp3-misc.js
|
|
28860
28890
|
/*!
|
|
28861
28891
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
28862
28892
|
*
|
|
@@ -29098,7 +29128,7 @@ var decodeSynchsafe = (synchsafed) => {
|
|
|
29098
29128
|
return unsynchsafed;
|
|
29099
29129
|
};
|
|
29100
29130
|
|
|
29101
|
-
// ../../node_modules/.bun/mediabunny@1.24.
|
|
29131
|
+
// ../../node_modules/.bun/mediabunny@1.24.5/node_modules/mediabunny/dist/modules/src/id3.js
|
|
29102
29132
|
/*!
|
|
29103
29133
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
29104
29134
|
*
|
|
@@ -29798,7 +29828,7 @@ class Id3V2Reader {
|
|
|
29798
29828
|
}
|
|
29799
29829
|
}
|
|
29800
29830
|
|
|
29801
|
-
// ../../node_modules/.bun/mediabunny@1.24.
|
|
29831
|
+
// ../../node_modules/.bun/mediabunny@1.24.5/node_modules/mediabunny/dist/modules/src/mp3/mp3-reader.js
|
|
29802
29832
|
/*!
|
|
29803
29833
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
29804
29834
|
*
|
|
@@ -29824,7 +29854,7 @@ var readNextFrameHeader = async (reader, startPos, until) => {
|
|
|
29824
29854
|
return null;
|
|
29825
29855
|
};
|
|
29826
29856
|
|
|
29827
|
-
// ../../node_modules/.bun/mediabunny@1.24.
|
|
29857
|
+
// ../../node_modules/.bun/mediabunny@1.24.5/node_modules/mediabunny/dist/modules/src/mp3/mp3-demuxer.js
|
|
29828
29858
|
/*!
|
|
29829
29859
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
29830
29860
|
*
|
|
@@ -30084,7 +30114,7 @@ class Mp3AudioTrackBacking {
|
|
|
30084
30114
|
}
|
|
30085
30115
|
}
|
|
30086
30116
|
|
|
30087
|
-
// ../../node_modules/.bun/mediabunny@1.24.
|
|
30117
|
+
// ../../node_modules/.bun/mediabunny@1.24.5/node_modules/mediabunny/dist/modules/src/ogg/ogg-misc.js
|
|
30088
30118
|
/*!
|
|
30089
30119
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
30090
30120
|
*
|
|
@@ -30155,7 +30185,7 @@ var buildOggMimeType = (info) => {
|
|
|
30155
30185
|
return string;
|
|
30156
30186
|
};
|
|
30157
30187
|
|
|
30158
|
-
// ../../node_modules/.bun/mediabunny@1.24.
|
|
30188
|
+
// ../../node_modules/.bun/mediabunny@1.24.5/node_modules/mediabunny/dist/modules/src/ogg/ogg-reader.js
|
|
30159
30189
|
/*!
|
|
30160
30190
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
30161
30191
|
*
|
|
@@ -30219,7 +30249,7 @@ var findNextPageHeader = (slice, until) => {
|
|
|
30219
30249
|
return false;
|
|
30220
30250
|
};
|
|
30221
30251
|
|
|
30222
|
-
// ../../node_modules/.bun/mediabunny@1.24.
|
|
30252
|
+
// ../../node_modules/.bun/mediabunny@1.24.5/node_modules/mediabunny/dist/modules/src/ogg/ogg-demuxer.js
|
|
30223
30253
|
/*!
|
|
30224
30254
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
30225
30255
|
*
|
|
@@ -30874,7 +30904,7 @@ var findPreviousPacketEndPosition = (pageList, startPage, startSegmentIndex) =>
|
|
|
30874
30904
|
return { page: previousPage, segmentIndex: previousPage.lacingValues.length - 1 };
|
|
30875
30905
|
};
|
|
30876
30906
|
|
|
30877
|
-
// ../../node_modules/.bun/mediabunny@1.24.
|
|
30907
|
+
// ../../node_modules/.bun/mediabunny@1.24.5/node_modules/mediabunny/dist/modules/src/wave/wave-demuxer.js
|
|
30878
30908
|
/*!
|
|
30879
30909
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
30880
30910
|
*
|
|
@@ -31290,7 +31320,7 @@ class WaveAudioTrackBacking {
|
|
|
31290
31320
|
}
|
|
31291
31321
|
}
|
|
31292
31322
|
|
|
31293
|
-
// ../../node_modules/.bun/mediabunny@1.24.
|
|
31323
|
+
// ../../node_modules/.bun/mediabunny@1.24.5/node_modules/mediabunny/dist/modules/src/adts/adts-reader.js
|
|
31294
31324
|
/*!
|
|
31295
31325
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
31296
31326
|
*
|
|
@@ -31351,7 +31381,7 @@ var readFrameHeader2 = (slice) => {
|
|
|
31351
31381
|
};
|
|
31352
31382
|
};
|
|
31353
31383
|
|
|
31354
|
-
// ../../node_modules/.bun/mediabunny@1.24.
|
|
31384
|
+
// ../../node_modules/.bun/mediabunny@1.24.5/node_modules/mediabunny/dist/modules/src/adts/adts-demuxer.js
|
|
31355
31385
|
/*!
|
|
31356
31386
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
31357
31387
|
*
|
|
@@ -31567,7 +31597,7 @@ class AdtsAudioTrackBacking {
|
|
|
31567
31597
|
}
|
|
31568
31598
|
}
|
|
31569
31599
|
|
|
31570
|
-
// ../../node_modules/.bun/mediabunny@1.24.
|
|
31600
|
+
// ../../node_modules/.bun/mediabunny@1.24.5/node_modules/mediabunny/dist/modules/src/flac/flac-misc.js
|
|
31571
31601
|
/*!
|
|
31572
31602
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
31573
31603
|
*
|
|
@@ -31702,7 +31732,7 @@ var calculateCrc8 = (data) => {
|
|
|
31702
31732
|
return crc;
|
|
31703
31733
|
};
|
|
31704
31734
|
|
|
31705
|
-
// ../../node_modules/.bun/mediabunny@1.24.
|
|
31735
|
+
// ../../node_modules/.bun/mediabunny@1.24.5/node_modules/mediabunny/dist/modules/src/flac/flac-demuxer.js
|
|
31706
31736
|
/*!
|
|
31707
31737
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
31708
31738
|
*
|
|
@@ -31873,20 +31903,25 @@ class FlacDemuxer extends Demuxer {
|
|
|
31873
31903
|
}
|
|
31874
31904
|
slice.skip(-2);
|
|
31875
31905
|
const lengthIfNextFlacFrameHeaderIsLegit = slice.filePos - startPos;
|
|
31876
|
-
const
|
|
31906
|
+
const nextFrameHeader = this.readFlacFrameHeader({
|
|
31877
31907
|
slice,
|
|
31878
31908
|
isFirstPacket: false
|
|
31879
31909
|
});
|
|
31880
|
-
if (!
|
|
31910
|
+
if (!nextFrameHeader) {
|
|
31881
31911
|
slice.skip(-1);
|
|
31882
31912
|
continue;
|
|
31883
31913
|
}
|
|
31884
|
-
if (
|
|
31885
|
-
|
|
31886
|
-
|
|
31887
|
-
|
|
31914
|
+
if (this.blockingBit === 0) {
|
|
31915
|
+
if (nextFrameHeader.num - frameHeader.num !== 1) {
|
|
31916
|
+
slice.skip(-1);
|
|
31917
|
+
continue;
|
|
31918
|
+
}
|
|
31919
|
+
} else {
|
|
31920
|
+
if (nextFrameHeader.num - frameHeader.num !== frameHeader.blockSize) {
|
|
31921
|
+
slice.skip(-1);
|
|
31922
|
+
continue;
|
|
31923
|
+
}
|
|
31888
31924
|
}
|
|
31889
|
-
console.log(frameHeader.num, nextIsLegit.num, slice.filePos);
|
|
31890
31925
|
return {
|
|
31891
31926
|
num: frameHeader.num,
|
|
31892
31927
|
blockSize: frameHeader.blockSize,
|
|
@@ -31945,6 +31980,9 @@ class FlacDemuxer extends Demuxer {
|
|
|
31945
31980
|
if (sampleRate === null) {
|
|
31946
31981
|
return null;
|
|
31947
31982
|
}
|
|
31983
|
+
if (sampleRate !== this.audioInfo.sampleRate) {
|
|
31984
|
+
return null;
|
|
31985
|
+
}
|
|
31948
31986
|
const size4 = slice.filePos - startOffset;
|
|
31949
31987
|
const crc = readU8(slice);
|
|
31950
31988
|
slice.skip(-size4);
|
|
@@ -32112,7 +32150,7 @@ class FlacAudioTrackBacking {
|
|
|
32112
32150
|
}
|
|
32113
32151
|
}
|
|
32114
32152
|
|
|
32115
|
-
// ../../node_modules/.bun/mediabunny@1.24.
|
|
32153
|
+
// ../../node_modules/.bun/mediabunny@1.24.5/node_modules/mediabunny/dist/modules/src/input-format.js
|
|
32116
32154
|
/*!
|
|
32117
32155
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
32118
32156
|
*
|
|
@@ -32434,7 +32472,7 @@ var ADTS = new AdtsInputFormat;
|
|
|
32434
32472
|
var FLAC = new FlacInputFormat;
|
|
32435
32473
|
var ALL_FORMATS = [MP4, QTFF, MATROSKA, WEBM, WAVE, OGG, FLAC, MP3, ADTS];
|
|
32436
32474
|
|
|
32437
|
-
// ../../node_modules/.bun/mediabunny@1.24.
|
|
32475
|
+
// ../../node_modules/.bun/mediabunny@1.24.5/node_modules/mediabunny/dist/modules/src/source.js
|
|
32438
32476
|
var nodeAlias = (() => ({}));
|
|
32439
32477
|
/*!
|
|
32440
32478
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
@@ -32552,7 +32590,7 @@ class UrlSource extends Source {
|
|
|
32552
32590
|
return this._orchestrator.read(start, end);
|
|
32553
32591
|
}
|
|
32554
32592
|
async _runWorker(worker) {
|
|
32555
|
-
while (
|
|
32593
|
+
while (true) {
|
|
32556
32594
|
const existing = this._existingResponses.get(worker);
|
|
32557
32595
|
this._existingResponses.delete(worker);
|
|
32558
32596
|
let abortController = existing?.abortController;
|
|
@@ -32601,6 +32639,9 @@ class UrlSource extends Source {
|
|
|
32601
32639
|
throw error;
|
|
32602
32640
|
}
|
|
32603
32641
|
}
|
|
32642
|
+
if (worker.aborted) {
|
|
32643
|
+
break;
|
|
32644
|
+
}
|
|
32604
32645
|
const { done, value } = readResult;
|
|
32605
32646
|
if (done) {
|
|
32606
32647
|
this._orchestrator.forgetWorker(worker);
|
|
@@ -32613,6 +32654,9 @@ class UrlSource extends Source {
|
|
|
32613
32654
|
this.onread?.(worker.currentPos, worker.currentPos + value.length);
|
|
32614
32655
|
this._orchestrator.supplyWorkerData(worker, value);
|
|
32615
32656
|
}
|
|
32657
|
+
if (worker.aborted) {
|
|
32658
|
+
break;
|
|
32659
|
+
}
|
|
32616
32660
|
}
|
|
32617
32661
|
worker.running = false;
|
|
32618
32662
|
}
|
|
@@ -32804,7 +32848,7 @@ class ReadOrchestrator {
|
|
|
32804
32848
|
currentPos: startPos,
|
|
32805
32849
|
targetPos,
|
|
32806
32850
|
running: false,
|
|
32807
|
-
aborted:
|
|
32851
|
+
aborted: this.disposed,
|
|
32808
32852
|
pendingSlices: [],
|
|
32809
32853
|
age: this.nextAge++
|
|
32810
32854
|
};
|
|
@@ -32843,9 +32887,7 @@ class ReadOrchestrator {
|
|
|
32843
32887
|
});
|
|
32844
32888
|
}
|
|
32845
32889
|
supplyWorkerData(worker, bytes) {
|
|
32846
|
-
|
|
32847
|
-
return;
|
|
32848
|
-
}
|
|
32890
|
+
assert(!worker.aborted);
|
|
32849
32891
|
const start = worker.currentPos;
|
|
32850
32892
|
const end = start + bytes.length;
|
|
32851
32893
|
this.insertIntoCache({
|
|
@@ -32972,7 +33014,7 @@ class ReadOrchestrator {
|
|
|
32972
33014
|
}
|
|
32973
33015
|
}
|
|
32974
33016
|
|
|
32975
|
-
// ../../node_modules/.bun/mediabunny@1.24.
|
|
33017
|
+
// ../../node_modules/.bun/mediabunny@1.24.5/node_modules/mediabunny/dist/modules/src/input.js
|
|
32976
33018
|
/*!
|
|
32977
33019
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
32978
33020
|
*
|
|
@@ -33079,7 +33121,7 @@ class InputDisposedError extends Error {
|
|
|
33079
33121
|
}
|
|
33080
33122
|
}
|
|
33081
33123
|
|
|
33082
|
-
// ../../node_modules/.bun/mediabunny@1.24.
|
|
33124
|
+
// ../../node_modules/.bun/mediabunny@1.24.5/node_modules/mediabunny/dist/modules/src/reader.js
|
|
33083
33125
|
/*!
|
|
33084
33126
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
33085
33127
|
*
|
|
@@ -33297,7 +33339,7 @@ var readAscii = (slice, length) => {
|
|
|
33297
33339
|
}
|
|
33298
33340
|
return str;
|
|
33299
33341
|
};
|
|
33300
|
-
// ../../node_modules/.bun/mediabunny@1.24.
|
|
33342
|
+
// ../../node_modules/.bun/mediabunny@1.24.5/node_modules/mediabunny/dist/modules/src/index.js
|
|
33301
33343
|
/*!
|
|
33302
33344
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
|
33303
33345
|
*
|
|
@@ -42505,15 +42547,17 @@ var Studio = ({ rootComponent, readOnly }) => {
|
|
|
42505
42547
|
logLevel: window.remotion_logLevel,
|
|
42506
42548
|
numberOfAudioTags: window.remotion_numberOfAudioTags,
|
|
42507
42549
|
audioLatencyHint: window.remotion_audioLatencyHint ?? "interactive",
|
|
42508
|
-
children: /* @__PURE__ */
|
|
42509
|
-
|
|
42510
|
-
|
|
42511
|
-
|
|
42512
|
-
|
|
42513
|
-
|
|
42514
|
-
|
|
42515
|
-
|
|
42516
|
-
|
|
42550
|
+
children: /* @__PURE__ */ jsx274(Internals67.ResolveCompositionConfigInStudio, {
|
|
42551
|
+
children: /* @__PURE__ */ jsxs141(EditorContexts, {
|
|
42552
|
+
readOnlyStudio: readOnly,
|
|
42553
|
+
children: [
|
|
42554
|
+
/* @__PURE__ */ jsx274(Editor, {
|
|
42555
|
+
readOnlyStudio: readOnly,
|
|
42556
|
+
Root: rootComponent
|
|
42557
|
+
}),
|
|
42558
|
+
readOnly ? null : createPortal(/* @__PURE__ */ jsx274(ServerDisconnected, {}), getServerDisconnectedDomElement())
|
|
42559
|
+
]
|
|
42560
|
+
})
|
|
42517
42561
|
})
|
|
42518
42562
|
})
|
|
42519
42563
|
});
|