@remotion/promo-pages 4.0.540 → 4.0.541
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/Automate.js +1693 -1536
- package/dist/GetStartedCta.js +88 -55
- package/dist/Homepage.js +92 -57
- package/dist/design.js +88 -55
- package/dist/experts.js +86 -54
- package/dist/homepage/Pricing.js +91 -56
- package/dist/prompts/PromptsGallery.js +88 -55
- package/dist/prompts/PromptsShow.js +88 -55
- package/dist/prompts/PromptsSubmit.js +88 -55
- package/dist/team.js +88 -55
- package/dist/template-modal-content.js +88 -55
- package/dist/templates.js +88 -55
- package/package.json +13 -13
|
@@ -3611,8 +3611,9 @@ var cutPath = (d, length) => {
|
|
|
3611
3611
|
if (summedUpLength + instructionAndInfo.length > length) {
|
|
3612
3612
|
const remainingLength = length - summedUpLength;
|
|
3613
3613
|
const progress = remainingLength / instructionAndInfo.length;
|
|
3614
|
+
const { instruction } = instructionAndInfo;
|
|
3614
3615
|
const cut = cutInstruction({
|
|
3615
|
-
instruction:
|
|
3616
|
+
instruction: instruction.type === "Z" ? { type: "L", x: segment.startPoint.x, y: segment.startPoint.y } : instruction,
|
|
3616
3617
|
lastPoint: instructionAndInfo.startPoint,
|
|
3617
3618
|
progress
|
|
3618
3619
|
});
|
|
@@ -4345,7 +4346,7 @@ var setComponentIdentityResolver = (resolver) => {
|
|
|
4345
4346
|
var resolveComponentIdentity = (component) => {
|
|
4346
4347
|
return componentIdentityResolver?.(component) ?? component;
|
|
4347
4348
|
};
|
|
4348
|
-
var
|
|
4349
|
+
var getSingleChildElement = (children) => {
|
|
4349
4350
|
const mountedChildren = React4.Children.toArray(children);
|
|
4350
4351
|
if (mountedChildren.length !== 1) {
|
|
4351
4352
|
return null;
|
|
@@ -4355,12 +4356,19 @@ var getSingleChildComponent = (children) => {
|
|
|
4355
4356
|
return null;
|
|
4356
4357
|
}
|
|
4357
4358
|
if (child.type === IsNotInsideSeriesProvider) {
|
|
4358
|
-
return
|
|
4359
|
+
return getSingleChildElement(child.props.children);
|
|
4359
4360
|
}
|
|
4360
4361
|
if (typeof child.type !== "function" && typeof child.type !== "object") {
|
|
4361
4362
|
return null;
|
|
4362
4363
|
}
|
|
4363
|
-
return
|
|
4364
|
+
return child;
|
|
4365
|
+
};
|
|
4366
|
+
var getSingleChildComponent = (children) => {
|
|
4367
|
+
const child = getSingleChildElement(children);
|
|
4368
|
+
return child === null ? null : resolveComponentIdentity(child.type);
|
|
4369
|
+
};
|
|
4370
|
+
var getSingleChildProps = (children) => {
|
|
4371
|
+
return getSingleChildElement(children)?.props ?? null;
|
|
4364
4372
|
};
|
|
4365
4373
|
var CompositionRegistryFallbackContext = createContext5(null);
|
|
4366
4374
|
var useIsomorphicLayoutEffect = typeof window === "undefined" ? useEffect : useLayoutEffect;
|
|
@@ -5768,9 +5776,11 @@ var makeOriginalSourceStack = ({
|
|
|
5768
5776
|
fileName,
|
|
5769
5777
|
lineNumber,
|
|
5770
5778
|
columnNumber
|
|
5771
|
-
}) => {
|
|
5772
|
-
|
|
5779
|
+
}, compiledSourceHash = null) => {
|
|
5780
|
+
const location = `Error
|
|
5773
5781
|
at remotionOriginalSource (${ORIGINAL_SOURCE_STACK_PREFIX}${encodeURIComponent(fileName)}:${lineNumber}:${columnNumber})`;
|
|
5782
|
+
return compiledSourceHash === null ? location : `${location}
|
|
5783
|
+
at remotionCompiledSource (remotion-source-sha256:${compiledSourceHash})`;
|
|
5774
5784
|
};
|
|
5775
5785
|
var parseOriginalSourceStack = (stack) => {
|
|
5776
5786
|
if (!stack) {
|
|
@@ -5800,7 +5810,7 @@ var setStackForControls = (controls, stack) => {
|
|
|
5800
5810
|
var getStackForControls = (controls) => {
|
|
5801
5811
|
return stacksByControls.get(controls) ?? null;
|
|
5802
5812
|
};
|
|
5803
|
-
var VERSION = "4.0.
|
|
5813
|
+
var VERSION = "4.0.541";
|
|
5804
5814
|
var checkMultipleRemotionVersions = () => {
|
|
5805
5815
|
if (typeof globalThis === "undefined") {
|
|
5806
5816
|
return;
|
|
@@ -9556,7 +9566,7 @@ function hslToRgb(h, s, l) {
|
|
|
9556
9566
|
return Math.round(r * 255) << 24 | Math.round(g * 255) << 16 | Math.round(b * 255) << 8;
|
|
9557
9567
|
}
|
|
9558
9568
|
function parse255(str) {
|
|
9559
|
-
const int = Number.
|
|
9569
|
+
const int = Math.round(Number.parseFloat(str));
|
|
9560
9570
|
if (int < 0) {
|
|
9561
9571
|
return 0;
|
|
9562
9572
|
}
|
|
@@ -11308,6 +11318,7 @@ var setSequenceWrapperRef = (ref, wrapperRef, node) => {
|
|
|
11308
11318
|
ref.current = node;
|
|
11309
11319
|
}
|
|
11310
11320
|
};
|
|
11321
|
+
var getSingleChildPropsFromRef = (childrenRef) => getSingleChildProps(childrenRef.current);
|
|
11311
11322
|
var RegularSequenceContentRefForwardingFunction = ({
|
|
11312
11323
|
timing,
|
|
11313
11324
|
from = 0,
|
|
@@ -11328,6 +11339,7 @@ var RegularSequenceContentRefForwardingFunction = ({
|
|
|
11328
11339
|
_remotionInternalLoopDisplay: loopDisplay,
|
|
11329
11340
|
_remotionInternalStack: stack,
|
|
11330
11341
|
_remotionInternalSingleChildComponent: childComponentOverride,
|
|
11342
|
+
_remotionInternalSingleChildren: authoredChildrenOverride,
|
|
11331
11343
|
_remotionInternalDocumentationLink: documentationLink,
|
|
11332
11344
|
_remotionInternalPremountDisplay: premountDisplay,
|
|
11333
11345
|
_remotionInternalPostmountDisplay: postmountDisplay,
|
|
@@ -11378,6 +11390,7 @@ var RegularSequenceContentRefForwardingFunction = ({
|
|
|
11378
11390
|
loopPeriod,
|
|
11379
11391
|
loopIteration,
|
|
11380
11392
|
contentVisible,
|
|
11393
|
+
inheritedFrozenFrame,
|
|
11381
11394
|
currentFrameRef
|
|
11382
11395
|
} = timing;
|
|
11383
11396
|
if (typeof contentDurationInFrames !== "number") {
|
|
@@ -11502,7 +11515,13 @@ var RegularSequenceContentRefForwardingFunction = ({
|
|
|
11502
11515
|
}, [name]);
|
|
11503
11516
|
const resolvedDocumentationLink = documentationLink ?? "https://www.remotion.dev/docs/sequence";
|
|
11504
11517
|
const isInsideSeries = useContext28(IsInsideSeriesContext);
|
|
11505
|
-
const
|
|
11518
|
+
const authoredChildren = authoredChildrenOverride === undefined ? children : authoredChildrenOverride;
|
|
11519
|
+
const singleChildComponent = useMemo22(() => childComponentOverride === undefined ? getSingleChildComponent(authoredChildren) : childComponentOverride, [authoredChildren, childComponentOverride]);
|
|
11520
|
+
const childrenRef = useRef8(authoredChildren);
|
|
11521
|
+
useLayoutEffect9(() => {
|
|
11522
|
+
childrenRef.current = authoredChildren;
|
|
11523
|
+
}, [authoredChildren]);
|
|
11524
|
+
const getRegisteredSingleChildProps = useMemo22(() => childComponentOverride === undefined ? getSingleChildPropsFromRef.bind(null, childrenRef) : null, [childComponentOverride]);
|
|
11506
11525
|
const registrationStack = controls ? getStackForControls(controls) ?? stack ?? null : stack ?? null;
|
|
11507
11526
|
const getStack = useMemo22(() => getSequenceStack.bind(null, registrationStack), [registrationStack]);
|
|
11508
11527
|
const registeredFrozenFrame = typeof freeze === "number" ? freeze : null;
|
|
@@ -11511,7 +11530,8 @@ var RegularSequenceContentRefForwardingFunction = ({
|
|
|
11511
11530
|
const parentCumulatedNegativeFrom = parentSequence?.cumulatedNegativeFrom ?? 0;
|
|
11512
11531
|
const startMediaFrom = isMedia && isMedia.type !== "image" ? isMedia.data.startMediaFrom + parentCumulatedNegativeFrom - cumulatedNegativeFrom : null;
|
|
11513
11532
|
const mediaFrameAtSequenceZero = isMedia && isMedia.type !== "image" ? isMedia.data.startMediaFrom + parentCumulatedNegativeFrom : null;
|
|
11514
|
-
const
|
|
11533
|
+
const mediaFreezeFrame = registeredFrozenFrame ?? (contentVisible && !parentDormant && !premounting && !postmounting ? inheritedFrozenFrame : null);
|
|
11534
|
+
const frozenMediaFrame = isMedia && isMedia.type !== "image" && mediaFrameAtSequenceZero !== null && mediaFreezeFrame !== null ? mediaFrameAtSequenceZero + (resolvedLoopDisplay ? mediaFreezeFrame % resolvedLoopDisplay.durationInFrames : mediaFreezeFrame) * isMedia.data.playbackRate : null;
|
|
11515
11535
|
const controlsSchema = controls?.schema;
|
|
11516
11536
|
const controlsRuntimeValues = controls?.runtimeValues;
|
|
11517
11537
|
const controlsOverrideId = controls?.overrideId;
|
|
@@ -11519,8 +11539,7 @@ var RegularSequenceContentRefForwardingFunction = ({
|
|
|
11519
11539
|
const controlsComponentIdentity = controls?.componentIdentity;
|
|
11520
11540
|
const controlsComponentName = controls?.componentName;
|
|
11521
11541
|
const controlsVideoConfigValues = controls?.videoConfigValues;
|
|
11522
|
-
const
|
|
11523
|
-
const canInferDuration = (controlsComponentIdentity === "dev.remotion.remotion.Series" || controlsComponentIdentity === "dev.remotion.transitions.TransitionSeries") && !loop && registeredFrozenFrame === null && !isInsideNonPremountFreeze && !hidden;
|
|
11542
|
+
const canInferDuration = (controlsComponentIdentity === "dev.remotion.remotion.Series" || controlsComponentIdentity === "dev.remotion.transitions.TransitionSeries") && !loop && registeredFrozenFrame === null && inheritedFrozenFrame === null && !hidden;
|
|
11524
11543
|
const autoDuration = canInferDuration && durationInFrames === undefined;
|
|
11525
11544
|
const isSeriesChild = controlsComponentIdentity === "dev.remotion.remotion.Series.Sequence" || controlsComponentIdentity === "dev.remotion.transitions.TransitionSeries.Sequence" || controlsComponentIdentity === "dev.remotion.transitions.TransitionSeries.Transition" || controlsComponentIdentity === "dev.remotion.transitions.TransitionSeries.Overlay";
|
|
11526
11545
|
const effectRuntimeValues = useMemo22(() => _remotionInternalEffects?.runtimeValues ?? null, [_remotionInternalEffects]);
|
|
@@ -11582,7 +11601,8 @@ var RegularSequenceContentRefForwardingFunction = ({
|
|
|
11582
11601
|
refForOutline: refForOutline ?? null,
|
|
11583
11602
|
isInsideSeries,
|
|
11584
11603
|
frozenFrame: registeredFrozenFrame,
|
|
11585
|
-
singleChildComponent: singleChildComponent ?? null
|
|
11604
|
+
singleChildComponent: singleChildComponent ?? null,
|
|
11605
|
+
getSingleChildProps: getRegisteredSingleChildProps
|
|
11586
11606
|
};
|
|
11587
11607
|
}
|
|
11588
11608
|
return {
|
|
@@ -11615,7 +11635,8 @@ var RegularSequenceContentRefForwardingFunction = ({
|
|
|
11615
11635
|
isInsideSeries,
|
|
11616
11636
|
frozenFrame: registeredFrozenFrame,
|
|
11617
11637
|
frozenMediaFrame,
|
|
11618
|
-
singleChildComponent: singleChildComponent ?? null
|
|
11638
|
+
singleChildComponent: singleChildComponent ?? null,
|
|
11639
|
+
getSingleChildProps: getRegisteredSingleChildProps
|
|
11619
11640
|
};
|
|
11620
11641
|
}
|
|
11621
11642
|
return {
|
|
@@ -11645,7 +11666,8 @@ var RegularSequenceContentRefForwardingFunction = ({
|
|
|
11645
11666
|
refForOutline: refForOutline ?? null,
|
|
11646
11667
|
isInsideSeries,
|
|
11647
11668
|
frozenFrame: registeredFrozenFrame,
|
|
11648
|
-
singleChildComponent: singleChildComponent ?? null
|
|
11669
|
+
singleChildComponent: singleChildComponent ?? null,
|
|
11670
|
+
getSingleChildProps: getRegisteredSingleChildProps
|
|
11649
11671
|
};
|
|
11650
11672
|
}, [
|
|
11651
11673
|
id,
|
|
@@ -11679,7 +11701,8 @@ var RegularSequenceContentRefForwardingFunction = ({
|
|
|
11679
11701
|
startMediaFrom,
|
|
11680
11702
|
mediaFrameAtSequenceZero,
|
|
11681
11703
|
frozenMediaFrame,
|
|
11682
|
-
singleChildComponent
|
|
11704
|
+
singleChildComponent,
|
|
11705
|
+
getRegisteredSingleChildProps
|
|
11683
11706
|
]);
|
|
11684
11707
|
const getSequenceForRegistration = useMemo22(() => getSequenceRegistration.bind(null, sequenceForRegistration), [sequenceForRegistration]);
|
|
11685
11708
|
const registration = useSequenceRegistration({
|
|
@@ -11843,6 +11866,7 @@ var RegularSequenceRefForwardingFunction = (props, ref) => {
|
|
|
11843
11866
|
const loopOffset = loopPeriod === null ? 0 : loopIteration * loopPeriod;
|
|
11844
11867
|
const currentSequenceStart = cumulatedFrom + (from + loopOffset - trimBefore / playbackRate) / parentPlaybackRate;
|
|
11845
11868
|
const currentFrame = typeof freeze === "number" ? freeze : (absoluteFrame - currentSequenceStart) * (parentPlaybackRate * playbackRate);
|
|
11869
|
+
const inheritedFrozenFrame = useIsInsideNonPremountFreeze() ? currentFrame : null;
|
|
11846
11870
|
const currentFrameRef = useRef8(currentFrame);
|
|
11847
11871
|
const timing = useMemo22(() => ({
|
|
11848
11872
|
contentDurationInFrames,
|
|
@@ -11851,6 +11875,7 @@ var RegularSequenceRefForwardingFunction = (props, ref) => {
|
|
|
11851
11875
|
loopPeriod,
|
|
11852
11876
|
loopIteration,
|
|
11853
11877
|
contentVisible,
|
|
11878
|
+
inheritedFrozenFrame,
|
|
11854
11879
|
currentFrameRef
|
|
11855
11880
|
}), [
|
|
11856
11881
|
contentDurationInFrames,
|
|
@@ -11858,7 +11883,8 @@ var RegularSequenceRefForwardingFunction = (props, ref) => {
|
|
|
11858
11883
|
actualDurationInFrames,
|
|
11859
11884
|
loopPeriod,
|
|
11860
11885
|
loopIteration,
|
|
11861
|
-
contentVisible
|
|
11886
|
+
contentVisible,
|
|
11887
|
+
inheritedFrozenFrame
|
|
11862
11888
|
]);
|
|
11863
11889
|
return /* @__PURE__ */ jsxs2(React27.Fragment, {
|
|
11864
11890
|
children: [
|
|
@@ -12138,6 +12164,16 @@ var AbsoluteFill = withInteractivitySchema({
|
|
|
12138
12164
|
supportsEffects: false
|
|
12139
12165
|
});
|
|
12140
12166
|
addSequenceStackTraces(AbsoluteFill);
|
|
12167
|
+
var getCanvasPropsFromSequenceProps = (props) => {
|
|
12168
|
+
const canvasProps = {};
|
|
12169
|
+
const mutableCanvasProps = canvasProps;
|
|
12170
|
+
for (const key in props) {
|
|
12171
|
+
if (Object.prototype.hasOwnProperty.call(props, key) && (key.startsWith("data-") || key.startsWith("aria-"))) {
|
|
12172
|
+
mutableCanvasProps[key] = props[key];
|
|
12173
|
+
}
|
|
12174
|
+
}
|
|
12175
|
+
return canvasProps;
|
|
12176
|
+
};
|
|
12141
12177
|
var useCropStyle = ({
|
|
12142
12178
|
cropLeft,
|
|
12143
12179
|
cropRight,
|
|
@@ -13425,16 +13461,6 @@ var animatedImageSchema = {
|
|
|
13425
13461
|
...borderSchema2,
|
|
13426
13462
|
...borderRadiusSchema2
|
|
13427
13463
|
};
|
|
13428
|
-
var getCanvasPropsFromSequenceProps = (props) => {
|
|
13429
|
-
const canvasProps = {};
|
|
13430
|
-
const mutableCanvasProps = canvasProps;
|
|
13431
|
-
for (const key in props) {
|
|
13432
|
-
if (Object.prototype.hasOwnProperty.call(props, key) && (key.startsWith("data-") || key.startsWith("aria-"))) {
|
|
13433
|
-
mutableCanvasProps[key] = props[key];
|
|
13434
|
-
}
|
|
13435
|
-
}
|
|
13436
|
-
return canvasProps;
|
|
13437
|
-
};
|
|
13438
13464
|
var AnimatedImageContent = forwardRef4(({
|
|
13439
13465
|
src,
|
|
13440
13466
|
width,
|
|
@@ -13920,6 +13946,16 @@ var RenderAssetManagerProvider = ({ children, collectAssets }) => {
|
|
|
13920
13946
|
});
|
|
13921
13947
|
};
|
|
13922
13948
|
var ArtifactThumbnail = Symbol("Thumbnail");
|
|
13949
|
+
var encodeBinaryArtifact = (bytes) => {
|
|
13950
|
+
if ("toBase64" in bytes && typeof bytes.toBase64 === "function") {
|
|
13951
|
+
return bytes.toBase64();
|
|
13952
|
+
}
|
|
13953
|
+
let binary = "";
|
|
13954
|
+
for (let offset = 0;offset < bytes.length; offset += 32768) {
|
|
13955
|
+
binary += String.fromCharCode(...bytes.subarray(offset, offset + 32768));
|
|
13956
|
+
}
|
|
13957
|
+
return btoa(binary);
|
|
13958
|
+
};
|
|
13923
13959
|
var Artifact = ({ filename, content, downloadBehavior }) => {
|
|
13924
13960
|
const { registerRenderAsset, unregisterRenderAsset } = useContext30(RenderAssetManager);
|
|
13925
13961
|
const env = useRemotionEnvironment();
|
|
@@ -13935,7 +13971,7 @@ var Artifact = ({ filename, content, downloadBehavior }) => {
|
|
|
13935
13971
|
registerRenderAsset({
|
|
13936
13972
|
type: "artifact",
|
|
13937
13973
|
id,
|
|
13938
|
-
content:
|
|
13974
|
+
content: encodeBinaryArtifact(content),
|
|
13939
13975
|
filename,
|
|
13940
13976
|
frame,
|
|
13941
13977
|
contentType: "binary",
|
|
@@ -15716,9 +15752,7 @@ var getMediaSyncAction = (input) => {
|
|
|
15716
15752
|
ended,
|
|
15717
15753
|
desiredUnclampedTime,
|
|
15718
15754
|
mediaTagTime,
|
|
15719
|
-
mediaTagLastUpdate,
|
|
15720
15755
|
rvcTime,
|
|
15721
|
-
rvcLastUpdate,
|
|
15722
15756
|
isVariableFpsVideo,
|
|
15723
15757
|
acceptableTimeShift,
|
|
15724
15758
|
lastSeekDueToShift,
|
|
@@ -15730,13 +15764,11 @@ var getMediaSyncAction = (input) => {
|
|
|
15730
15764
|
onlyWarnForMediaSeekingError,
|
|
15731
15765
|
isPremounting,
|
|
15732
15766
|
isPostmounting,
|
|
15733
|
-
pauseWhenBuffering
|
|
15767
|
+
pauseWhenBuffering,
|
|
15768
|
+
mediaType
|
|
15734
15769
|
} = input;
|
|
15735
15770
|
const shouldBeTime = !Number.isNaN(duration) && Number.isFinite(duration) ? Math.min(duration, desiredUnclampedTime) : desiredUnclampedTime;
|
|
15736
|
-
const
|
|
15737
|
-
const timeShiftRvcTag = rvcTime ? Math.abs(shouldBeTime - rvcTime) : null;
|
|
15738
|
-
const mostRecentTimeshift = rvcLastUpdate && rvcTime > mediaTagLastUpdate ? timeShiftRvcTag : timeShiftMediaTag;
|
|
15739
|
-
const timeShift = timeShiftRvcTag && !isVariableFpsVideo ? mostRecentTimeshift : timeShiftMediaTag;
|
|
15771
|
+
const timeShift = Math.abs(shouldBeTime - mediaTagTime);
|
|
15740
15772
|
if (timeShift > acceptableTimeShift && lastSeekDueToShift !== shouldBeTime) {
|
|
15741
15773
|
return {
|
|
15742
15774
|
type: "seek-due-to-shift",
|
|
@@ -15749,18 +15781,23 @@ var getMediaSyncAction = (input) => {
|
|
|
15749
15781
|
}
|
|
15750
15782
|
const seekThreshold = playing ? 0.15 : 0.01;
|
|
15751
15783
|
const makesSenseToSeek = Math.abs(currentTime - shouldBeTime) > seekThreshold;
|
|
15784
|
+
const audioLead = currentTime - shouldBeTime;
|
|
15785
|
+
const holdAudioUntilTimelineCatchesUp = mediaType === "audio" && playing && playbackRate > 0 && makesSenseToSeek && audioLead > 0 && audioLead <= acceptableTimeShift;
|
|
15752
15786
|
const isSomethingElseBuffering = playerBuffering && !mediaTagBufferingOrStalled;
|
|
15753
15787
|
if (!playing || isSomethingElseBuffering) {
|
|
15754
15788
|
return {
|
|
15755
15789
|
type: "seek-if-not-playing",
|
|
15756
15790
|
shouldBeTime,
|
|
15757
|
-
why: makesSenseToSeek ? `not playing or something else is buffering. time offset is over seek threshold (${seekThreshold})` : null
|
|
15791
|
+
why: makesSenseToSeek && !holdAudioUntilTimelineCatchesUp ? `not playing or something else is buffering. time offset is over seek threshold (${seekThreshold})` : null
|
|
15758
15792
|
};
|
|
15759
15793
|
}
|
|
15760
15794
|
if (!playing || playerBuffering) {
|
|
15761
15795
|
return { type: "none" };
|
|
15762
15796
|
}
|
|
15763
15797
|
const pausedCondition = paused && !ended;
|
|
15798
|
+
if (pausedCondition && holdAudioUntilTimelineCatchesUp) {
|
|
15799
|
+
return { type: "none" };
|
|
15800
|
+
}
|
|
15764
15801
|
const firstFrameCondition = absoluteFrame === 0;
|
|
15765
15802
|
if (pausedCondition || firstFrameCondition) {
|
|
15766
15803
|
const reason = pausedCondition ? "media tag is paused" : "absolute frame is 0";
|
|
@@ -15774,19 +15811,15 @@ var getMediaSyncAction = (input) => {
|
|
|
15774
15811
|
}
|
|
15775
15812
|
return { type: "none" };
|
|
15776
15813
|
};
|
|
15777
|
-
var
|
|
15778
|
-
const
|
|
15779
|
-
time: mediaRef.current?.currentTime ?? 0
|
|
15780
|
-
lastUpdate: performance.now()
|
|
15814
|
+
var useCurrentTimeOfMediaTag = (mediaRef) => {
|
|
15815
|
+
const currentTime = React35.useRef({
|
|
15816
|
+
time: mediaRef.current?.currentTime ?? 0
|
|
15781
15817
|
});
|
|
15782
15818
|
const nowCurrentTime = mediaRef.current?.currentTime ?? null;
|
|
15783
15819
|
if (nowCurrentTime !== null) {
|
|
15784
|
-
|
|
15785
|
-
lastUpdate.current.time = nowCurrentTime;
|
|
15786
|
-
lastUpdate.current.lastUpdate = performance.now();
|
|
15787
|
-
}
|
|
15820
|
+
currentTime.current.time = nowCurrentTime;
|
|
15788
15821
|
}
|
|
15789
|
-
return
|
|
15822
|
+
return currentTime;
|
|
15790
15823
|
};
|
|
15791
15824
|
var seek = ({
|
|
15792
15825
|
mediaRef,
|
|
@@ -15953,8 +15986,7 @@ var useRequestVideoCallbackTime = ({
|
|
|
15953
15986
|
const { current } = mediaRef;
|
|
15954
15987
|
if (current) {
|
|
15955
15988
|
currentTime.current = {
|
|
15956
|
-
time: current.currentTime
|
|
15957
|
-
lastUpdate: performance.now()
|
|
15989
|
+
time: current.currentTime
|
|
15958
15990
|
};
|
|
15959
15991
|
} else {
|
|
15960
15992
|
currentTime.current = null;
|
|
@@ -15984,8 +16016,7 @@ var useRequestVideoCallbackTime = ({
|
|
|
15984
16016
|
}
|
|
15985
16017
|
}
|
|
15986
16018
|
currentTime.current = {
|
|
15987
|
-
time: info.mediaTime
|
|
15988
|
-
lastUpdate: performance.now()
|
|
16019
|
+
time: info.mediaTime
|
|
15989
16020
|
};
|
|
15990
16021
|
request();
|
|
15991
16022
|
});
|
|
@@ -16116,7 +16147,7 @@ var useMediaPlayback = ({
|
|
|
16116
16147
|
lastSeek,
|
|
16117
16148
|
onVariableFpsVideoDetected
|
|
16118
16149
|
});
|
|
16119
|
-
const mediaTagCurrentTime =
|
|
16150
|
+
const mediaTagCurrentTime = useCurrentTimeOfMediaTag(mediaRef);
|
|
16120
16151
|
const desiredUnclampedTime = getMediaTime({
|
|
16121
16152
|
frame,
|
|
16122
16153
|
playbackRate: localPlaybackRate,
|
|
@@ -16197,9 +16228,7 @@ var useMediaPlayback = ({
|
|
|
16197
16228
|
ended: current.ended,
|
|
16198
16229
|
desiredUnclampedTime,
|
|
16199
16230
|
mediaTagTime: mediaTagCurrentTime.current.time,
|
|
16200
|
-
mediaTagLastUpdate: mediaTagCurrentTime.current.lastUpdate,
|
|
16201
16231
|
rvcTime: rvcCurrentTime.current?.time ?? null,
|
|
16202
|
-
rvcLastUpdate: rvcCurrentTime.current?.lastUpdate ?? null,
|
|
16203
16232
|
isVariableFpsVideo: Boolean(isVariableFpsVideoMap.current[src]),
|
|
16204
16233
|
acceptableTimeShift: acceptableTimeShiftButLessThanDuration,
|
|
16205
16234
|
lastSeekDueToShift: lastSeekDueToShift.current,
|
|
@@ -16211,7 +16240,8 @@ var useMediaPlayback = ({
|
|
|
16211
16240
|
onlyWarnForMediaSeekingError,
|
|
16212
16241
|
isPremounting,
|
|
16213
16242
|
isPostmounting,
|
|
16214
|
-
pauseWhenBuffering
|
|
16243
|
+
pauseWhenBuffering,
|
|
16244
|
+
mediaType
|
|
16215
16245
|
});
|
|
16216
16246
|
if (action.type === "none") {
|
|
16217
16247
|
return;
|
|
@@ -17055,7 +17085,8 @@ var SolidInner = ({
|
|
|
17055
17085
|
pixelDensity,
|
|
17056
17086
|
overrideId,
|
|
17057
17087
|
videoConfigValues,
|
|
17058
|
-
reference
|
|
17088
|
+
reference,
|
|
17089
|
+
canvasProps
|
|
17059
17090
|
}) => {
|
|
17060
17091
|
const { delayRender, continueRender, cancelRender } = useDelayRender();
|
|
17061
17092
|
const resolvedPixelDensity = resolveSolidPixelDensity(pixelDensity);
|
|
@@ -17143,6 +17174,7 @@ var SolidInner = ({
|
|
|
17143
17174
|
};
|
|
17144
17175
|
}, [height, style, width]);
|
|
17145
17176
|
return /* @__PURE__ */ jsx31("canvas", {
|
|
17177
|
+
...canvasProps,
|
|
17146
17178
|
ref: canvasRef,
|
|
17147
17179
|
width: canvasWidth,
|
|
17148
17180
|
height: canvasHeight,
|
|
@@ -17239,6 +17271,7 @@ var SolidOuter = forwardRef8(({
|
|
|
17239
17271
|
_remotionInternalIsPostmounting: postmountingActive,
|
|
17240
17272
|
children: /* @__PURE__ */ jsx31(SequenceContent, {
|
|
17241
17273
|
children: /* @__PURE__ */ jsx31(SolidInner, {
|
|
17274
|
+
canvasProps: getCanvasPropsFromSequenceProps(props),
|
|
17242
17275
|
reference: actualRef,
|
|
17243
17276
|
videoConfigValues: controls?.videoConfigValues ?? null,
|
|
17244
17277
|
overrideId: controls?.overrideId ?? null,
|
|
@@ -19649,7 +19682,7 @@ var createElementSourceProxy = (api, sourceArgumentIndex, getSourceFileName) =>
|
|
|
19649
19682
|
fileName: getSourceFileName(source.fileName),
|
|
19650
19683
|
lineNumber: source.lineNumber,
|
|
19651
19684
|
columnNumber: source.columnNumber - 1
|
|
19652
|
-
});
|
|
19685
|
+
}, typeof source.__remotionCompiledSourceHash === "string" ? source.__remotionCompiledSourceHash : null);
|
|
19653
19686
|
} else {
|
|
19654
19687
|
const { stackTraceLimit } = Error;
|
|
19655
19688
|
const canLimitStack = typeof stackTraceLimit === "number" && stackTraceLimit > 2 && Object.getOwnPropertyDescriptor(Error, "stackTraceLimit")?.writable;
|