@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
package/dist/team.js
CHANGED
|
@@ -3759,8 +3759,9 @@ var cutPath = (d, length) => {
|
|
|
3759
3759
|
if (summedUpLength + instructionAndInfo.length > length) {
|
|
3760
3760
|
const remainingLength = length - summedUpLength;
|
|
3761
3761
|
const progress = remainingLength / instructionAndInfo.length;
|
|
3762
|
+
const { instruction } = instructionAndInfo;
|
|
3762
3763
|
const cut = cutInstruction({
|
|
3763
|
-
instruction:
|
|
3764
|
+
instruction: instruction.type === "Z" ? { type: "L", x: segment.startPoint.x, y: segment.startPoint.y } : instruction,
|
|
3764
3765
|
lastPoint: instructionAndInfo.startPoint,
|
|
3765
3766
|
progress
|
|
3766
3767
|
});
|
|
@@ -4493,7 +4494,7 @@ var setComponentIdentityResolver = (resolver) => {
|
|
|
4493
4494
|
var resolveComponentIdentity = (component) => {
|
|
4494
4495
|
return componentIdentityResolver?.(component) ?? component;
|
|
4495
4496
|
};
|
|
4496
|
-
var
|
|
4497
|
+
var getSingleChildElement = (children) => {
|
|
4497
4498
|
const mountedChildren = React4.Children.toArray(children);
|
|
4498
4499
|
if (mountedChildren.length !== 1) {
|
|
4499
4500
|
return null;
|
|
@@ -4503,12 +4504,19 @@ var getSingleChildComponent = (children) => {
|
|
|
4503
4504
|
return null;
|
|
4504
4505
|
}
|
|
4505
4506
|
if (child.type === IsNotInsideSeriesProvider) {
|
|
4506
|
-
return
|
|
4507
|
+
return getSingleChildElement(child.props.children);
|
|
4507
4508
|
}
|
|
4508
4509
|
if (typeof child.type !== "function" && typeof child.type !== "object") {
|
|
4509
4510
|
return null;
|
|
4510
4511
|
}
|
|
4511
|
-
return
|
|
4512
|
+
return child;
|
|
4513
|
+
};
|
|
4514
|
+
var getSingleChildComponent = (children) => {
|
|
4515
|
+
const child = getSingleChildElement(children);
|
|
4516
|
+
return child === null ? null : resolveComponentIdentity(child.type);
|
|
4517
|
+
};
|
|
4518
|
+
var getSingleChildProps = (children) => {
|
|
4519
|
+
return getSingleChildElement(children)?.props ?? null;
|
|
4512
4520
|
};
|
|
4513
4521
|
var CompositionRegistryFallbackContext = createContext5(null);
|
|
4514
4522
|
var useIsomorphicLayoutEffect = typeof window === "undefined" ? useEffect : useLayoutEffect;
|
|
@@ -5916,9 +5924,11 @@ var makeOriginalSourceStack = ({
|
|
|
5916
5924
|
fileName,
|
|
5917
5925
|
lineNumber,
|
|
5918
5926
|
columnNumber
|
|
5919
|
-
}) => {
|
|
5920
|
-
|
|
5927
|
+
}, compiledSourceHash = null) => {
|
|
5928
|
+
const location = `Error
|
|
5921
5929
|
at remotionOriginalSource (${ORIGINAL_SOURCE_STACK_PREFIX}${encodeURIComponent(fileName)}:${lineNumber}:${columnNumber})`;
|
|
5930
|
+
return compiledSourceHash === null ? location : `${location}
|
|
5931
|
+
at remotionCompiledSource (remotion-source-sha256:${compiledSourceHash})`;
|
|
5922
5932
|
};
|
|
5923
5933
|
var parseOriginalSourceStack = (stack) => {
|
|
5924
5934
|
if (!stack) {
|
|
@@ -5948,7 +5958,7 @@ var setStackForControls = (controls, stack) => {
|
|
|
5948
5958
|
var getStackForControls = (controls) => {
|
|
5949
5959
|
return stacksByControls.get(controls) ?? null;
|
|
5950
5960
|
};
|
|
5951
|
-
var VERSION = "4.0.
|
|
5961
|
+
var VERSION = "4.0.541";
|
|
5952
5962
|
var checkMultipleRemotionVersions = () => {
|
|
5953
5963
|
if (typeof globalThis === "undefined") {
|
|
5954
5964
|
return;
|
|
@@ -9704,7 +9714,7 @@ function hslToRgb(h, s, l) {
|
|
|
9704
9714
|
return Math.round(r * 255) << 24 | Math.round(g * 255) << 16 | Math.round(b * 255) << 8;
|
|
9705
9715
|
}
|
|
9706
9716
|
function parse255(str) {
|
|
9707
|
-
const int = Number.
|
|
9717
|
+
const int = Math.round(Number.parseFloat(str));
|
|
9708
9718
|
if (int < 0) {
|
|
9709
9719
|
return 0;
|
|
9710
9720
|
}
|
|
@@ -11456,6 +11466,7 @@ var setSequenceWrapperRef = (ref, wrapperRef, node) => {
|
|
|
11456
11466
|
ref.current = node;
|
|
11457
11467
|
}
|
|
11458
11468
|
};
|
|
11469
|
+
var getSingleChildPropsFromRef = (childrenRef) => getSingleChildProps(childrenRef.current);
|
|
11459
11470
|
var RegularSequenceContentRefForwardingFunction = ({
|
|
11460
11471
|
timing,
|
|
11461
11472
|
from = 0,
|
|
@@ -11476,6 +11487,7 @@ var RegularSequenceContentRefForwardingFunction = ({
|
|
|
11476
11487
|
_remotionInternalLoopDisplay: loopDisplay,
|
|
11477
11488
|
_remotionInternalStack: stack,
|
|
11478
11489
|
_remotionInternalSingleChildComponent: childComponentOverride,
|
|
11490
|
+
_remotionInternalSingleChildren: authoredChildrenOverride,
|
|
11479
11491
|
_remotionInternalDocumentationLink: documentationLink,
|
|
11480
11492
|
_remotionInternalPremountDisplay: premountDisplay,
|
|
11481
11493
|
_remotionInternalPostmountDisplay: postmountDisplay,
|
|
@@ -11526,6 +11538,7 @@ var RegularSequenceContentRefForwardingFunction = ({
|
|
|
11526
11538
|
loopPeriod,
|
|
11527
11539
|
loopIteration,
|
|
11528
11540
|
contentVisible,
|
|
11541
|
+
inheritedFrozenFrame,
|
|
11529
11542
|
currentFrameRef
|
|
11530
11543
|
} = timing;
|
|
11531
11544
|
if (typeof contentDurationInFrames !== "number") {
|
|
@@ -11650,7 +11663,13 @@ var RegularSequenceContentRefForwardingFunction = ({
|
|
|
11650
11663
|
}, [name]);
|
|
11651
11664
|
const resolvedDocumentationLink = documentationLink ?? "https://www.remotion.dev/docs/sequence";
|
|
11652
11665
|
const isInsideSeries = useContext28(IsInsideSeriesContext);
|
|
11653
|
-
const
|
|
11666
|
+
const authoredChildren = authoredChildrenOverride === undefined ? children : authoredChildrenOverride;
|
|
11667
|
+
const singleChildComponent = useMemo22(() => childComponentOverride === undefined ? getSingleChildComponent(authoredChildren) : childComponentOverride, [authoredChildren, childComponentOverride]);
|
|
11668
|
+
const childrenRef = useRef8(authoredChildren);
|
|
11669
|
+
useLayoutEffect9(() => {
|
|
11670
|
+
childrenRef.current = authoredChildren;
|
|
11671
|
+
}, [authoredChildren]);
|
|
11672
|
+
const getRegisteredSingleChildProps = useMemo22(() => childComponentOverride === undefined ? getSingleChildPropsFromRef.bind(null, childrenRef) : null, [childComponentOverride]);
|
|
11654
11673
|
const registrationStack = controls ? getStackForControls(controls) ?? stack ?? null : stack ?? null;
|
|
11655
11674
|
const getStack = useMemo22(() => getSequenceStack.bind(null, registrationStack), [registrationStack]);
|
|
11656
11675
|
const registeredFrozenFrame = typeof freeze === "number" ? freeze : null;
|
|
@@ -11659,7 +11678,8 @@ var RegularSequenceContentRefForwardingFunction = ({
|
|
|
11659
11678
|
const parentCumulatedNegativeFrom = parentSequence?.cumulatedNegativeFrom ?? 0;
|
|
11660
11679
|
const startMediaFrom = isMedia && isMedia.type !== "image" ? isMedia.data.startMediaFrom + parentCumulatedNegativeFrom - cumulatedNegativeFrom : null;
|
|
11661
11680
|
const mediaFrameAtSequenceZero = isMedia && isMedia.type !== "image" ? isMedia.data.startMediaFrom + parentCumulatedNegativeFrom : null;
|
|
11662
|
-
const
|
|
11681
|
+
const mediaFreezeFrame = registeredFrozenFrame ?? (contentVisible && !parentDormant && !premounting && !postmounting ? inheritedFrozenFrame : null);
|
|
11682
|
+
const frozenMediaFrame = isMedia && isMedia.type !== "image" && mediaFrameAtSequenceZero !== null && mediaFreezeFrame !== null ? mediaFrameAtSequenceZero + (resolvedLoopDisplay ? mediaFreezeFrame % resolvedLoopDisplay.durationInFrames : mediaFreezeFrame) * isMedia.data.playbackRate : null;
|
|
11663
11683
|
const controlsSchema = controls?.schema;
|
|
11664
11684
|
const controlsRuntimeValues = controls?.runtimeValues;
|
|
11665
11685
|
const controlsOverrideId = controls?.overrideId;
|
|
@@ -11667,8 +11687,7 @@ var RegularSequenceContentRefForwardingFunction = ({
|
|
|
11667
11687
|
const controlsComponentIdentity = controls?.componentIdentity;
|
|
11668
11688
|
const controlsComponentName = controls?.componentName;
|
|
11669
11689
|
const controlsVideoConfigValues = controls?.videoConfigValues;
|
|
11670
|
-
const
|
|
11671
|
-
const canInferDuration = (controlsComponentIdentity === "dev.remotion.remotion.Series" || controlsComponentIdentity === "dev.remotion.transitions.TransitionSeries") && !loop && registeredFrozenFrame === null && !isInsideNonPremountFreeze && !hidden;
|
|
11690
|
+
const canInferDuration = (controlsComponentIdentity === "dev.remotion.remotion.Series" || controlsComponentIdentity === "dev.remotion.transitions.TransitionSeries") && !loop && registeredFrozenFrame === null && inheritedFrozenFrame === null && !hidden;
|
|
11672
11691
|
const autoDuration = canInferDuration && durationInFrames === undefined;
|
|
11673
11692
|
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";
|
|
11674
11693
|
const effectRuntimeValues = useMemo22(() => _remotionInternalEffects?.runtimeValues ?? null, [_remotionInternalEffects]);
|
|
@@ -11730,7 +11749,8 @@ var RegularSequenceContentRefForwardingFunction = ({
|
|
|
11730
11749
|
refForOutline: refForOutline ?? null,
|
|
11731
11750
|
isInsideSeries,
|
|
11732
11751
|
frozenFrame: registeredFrozenFrame,
|
|
11733
|
-
singleChildComponent: singleChildComponent ?? null
|
|
11752
|
+
singleChildComponent: singleChildComponent ?? null,
|
|
11753
|
+
getSingleChildProps: getRegisteredSingleChildProps
|
|
11734
11754
|
};
|
|
11735
11755
|
}
|
|
11736
11756
|
return {
|
|
@@ -11763,7 +11783,8 @@ var RegularSequenceContentRefForwardingFunction = ({
|
|
|
11763
11783
|
isInsideSeries,
|
|
11764
11784
|
frozenFrame: registeredFrozenFrame,
|
|
11765
11785
|
frozenMediaFrame,
|
|
11766
|
-
singleChildComponent: singleChildComponent ?? null
|
|
11786
|
+
singleChildComponent: singleChildComponent ?? null,
|
|
11787
|
+
getSingleChildProps: getRegisteredSingleChildProps
|
|
11767
11788
|
};
|
|
11768
11789
|
}
|
|
11769
11790
|
return {
|
|
@@ -11793,7 +11814,8 @@ var RegularSequenceContentRefForwardingFunction = ({
|
|
|
11793
11814
|
refForOutline: refForOutline ?? null,
|
|
11794
11815
|
isInsideSeries,
|
|
11795
11816
|
frozenFrame: registeredFrozenFrame,
|
|
11796
|
-
singleChildComponent: singleChildComponent ?? null
|
|
11817
|
+
singleChildComponent: singleChildComponent ?? null,
|
|
11818
|
+
getSingleChildProps: getRegisteredSingleChildProps
|
|
11797
11819
|
};
|
|
11798
11820
|
}, [
|
|
11799
11821
|
id,
|
|
@@ -11827,7 +11849,8 @@ var RegularSequenceContentRefForwardingFunction = ({
|
|
|
11827
11849
|
startMediaFrom,
|
|
11828
11850
|
mediaFrameAtSequenceZero,
|
|
11829
11851
|
frozenMediaFrame,
|
|
11830
|
-
singleChildComponent
|
|
11852
|
+
singleChildComponent,
|
|
11853
|
+
getRegisteredSingleChildProps
|
|
11831
11854
|
]);
|
|
11832
11855
|
const getSequenceForRegistration = useMemo22(() => getSequenceRegistration.bind(null, sequenceForRegistration), [sequenceForRegistration]);
|
|
11833
11856
|
const registration = useSequenceRegistration({
|
|
@@ -11991,6 +12014,7 @@ var RegularSequenceRefForwardingFunction = (props, ref) => {
|
|
|
11991
12014
|
const loopOffset = loopPeriod === null ? 0 : loopIteration * loopPeriod;
|
|
11992
12015
|
const currentSequenceStart = cumulatedFrom + (from + loopOffset - trimBefore / playbackRate) / parentPlaybackRate;
|
|
11993
12016
|
const currentFrame = typeof freeze === "number" ? freeze : (absoluteFrame - currentSequenceStart) * (parentPlaybackRate * playbackRate);
|
|
12017
|
+
const inheritedFrozenFrame = useIsInsideNonPremountFreeze() ? currentFrame : null;
|
|
11994
12018
|
const currentFrameRef = useRef8(currentFrame);
|
|
11995
12019
|
const timing = useMemo22(() => ({
|
|
11996
12020
|
contentDurationInFrames,
|
|
@@ -11999,6 +12023,7 @@ var RegularSequenceRefForwardingFunction = (props, ref) => {
|
|
|
11999
12023
|
loopPeriod,
|
|
12000
12024
|
loopIteration,
|
|
12001
12025
|
contentVisible,
|
|
12026
|
+
inheritedFrozenFrame,
|
|
12002
12027
|
currentFrameRef
|
|
12003
12028
|
}), [
|
|
12004
12029
|
contentDurationInFrames,
|
|
@@ -12006,7 +12031,8 @@ var RegularSequenceRefForwardingFunction = (props, ref) => {
|
|
|
12006
12031
|
actualDurationInFrames,
|
|
12007
12032
|
loopPeriod,
|
|
12008
12033
|
loopIteration,
|
|
12009
|
-
contentVisible
|
|
12034
|
+
contentVisible,
|
|
12035
|
+
inheritedFrozenFrame
|
|
12010
12036
|
]);
|
|
12011
12037
|
return /* @__PURE__ */ jsxs22(React27.Fragment, {
|
|
12012
12038
|
children: [
|
|
@@ -12286,6 +12312,16 @@ var AbsoluteFill = withInteractivitySchema({
|
|
|
12286
12312
|
supportsEffects: false
|
|
12287
12313
|
});
|
|
12288
12314
|
addSequenceStackTraces(AbsoluteFill);
|
|
12315
|
+
var getCanvasPropsFromSequenceProps = (props) => {
|
|
12316
|
+
const canvasProps = {};
|
|
12317
|
+
const mutableCanvasProps = canvasProps;
|
|
12318
|
+
for (const key in props) {
|
|
12319
|
+
if (Object.prototype.hasOwnProperty.call(props, key) && (key.startsWith("data-") || key.startsWith("aria-"))) {
|
|
12320
|
+
mutableCanvasProps[key] = props[key];
|
|
12321
|
+
}
|
|
12322
|
+
}
|
|
12323
|
+
return canvasProps;
|
|
12324
|
+
};
|
|
12289
12325
|
var useCropStyle = ({
|
|
12290
12326
|
cropLeft,
|
|
12291
12327
|
cropRight,
|
|
@@ -13573,16 +13609,6 @@ var animatedImageSchema = {
|
|
|
13573
13609
|
...borderSchema2,
|
|
13574
13610
|
...borderRadiusSchema2
|
|
13575
13611
|
};
|
|
13576
|
-
var getCanvasPropsFromSequenceProps = (props) => {
|
|
13577
|
-
const canvasProps = {};
|
|
13578
|
-
const mutableCanvasProps = canvasProps;
|
|
13579
|
-
for (const key in props) {
|
|
13580
|
-
if (Object.prototype.hasOwnProperty.call(props, key) && (key.startsWith("data-") || key.startsWith("aria-"))) {
|
|
13581
|
-
mutableCanvasProps[key] = props[key];
|
|
13582
|
-
}
|
|
13583
|
-
}
|
|
13584
|
-
return canvasProps;
|
|
13585
|
-
};
|
|
13586
13612
|
var AnimatedImageContent = forwardRef4(({
|
|
13587
13613
|
src,
|
|
13588
13614
|
width,
|
|
@@ -14068,6 +14094,16 @@ var RenderAssetManagerProvider = ({ children, collectAssets }) => {
|
|
|
14068
14094
|
});
|
|
14069
14095
|
};
|
|
14070
14096
|
var ArtifactThumbnail = Symbol("Thumbnail");
|
|
14097
|
+
var encodeBinaryArtifact = (bytes) => {
|
|
14098
|
+
if ("toBase64" in bytes && typeof bytes.toBase64 === "function") {
|
|
14099
|
+
return bytes.toBase64();
|
|
14100
|
+
}
|
|
14101
|
+
let binary = "";
|
|
14102
|
+
for (let offset = 0;offset < bytes.length; offset += 32768) {
|
|
14103
|
+
binary += String.fromCharCode(...bytes.subarray(offset, offset + 32768));
|
|
14104
|
+
}
|
|
14105
|
+
return btoa(binary);
|
|
14106
|
+
};
|
|
14071
14107
|
var Artifact = ({ filename, content, downloadBehavior }) => {
|
|
14072
14108
|
const { registerRenderAsset, unregisterRenderAsset } = useContext30(RenderAssetManager);
|
|
14073
14109
|
const env = useRemotionEnvironment();
|
|
@@ -14083,7 +14119,7 @@ var Artifact = ({ filename, content, downloadBehavior }) => {
|
|
|
14083
14119
|
registerRenderAsset({
|
|
14084
14120
|
type: "artifact",
|
|
14085
14121
|
id,
|
|
14086
|
-
content:
|
|
14122
|
+
content: encodeBinaryArtifact(content),
|
|
14087
14123
|
filename,
|
|
14088
14124
|
frame,
|
|
14089
14125
|
contentType: "binary",
|
|
@@ -15864,9 +15900,7 @@ var getMediaSyncAction = (input) => {
|
|
|
15864
15900
|
ended,
|
|
15865
15901
|
desiredUnclampedTime,
|
|
15866
15902
|
mediaTagTime,
|
|
15867
|
-
mediaTagLastUpdate,
|
|
15868
15903
|
rvcTime,
|
|
15869
|
-
rvcLastUpdate,
|
|
15870
15904
|
isVariableFpsVideo,
|
|
15871
15905
|
acceptableTimeShift,
|
|
15872
15906
|
lastSeekDueToShift,
|
|
@@ -15878,13 +15912,11 @@ var getMediaSyncAction = (input) => {
|
|
|
15878
15912
|
onlyWarnForMediaSeekingError,
|
|
15879
15913
|
isPremounting,
|
|
15880
15914
|
isPostmounting,
|
|
15881
|
-
pauseWhenBuffering
|
|
15915
|
+
pauseWhenBuffering,
|
|
15916
|
+
mediaType
|
|
15882
15917
|
} = input;
|
|
15883
15918
|
const shouldBeTime = !Number.isNaN(duration) && Number.isFinite(duration) ? Math.min(duration, desiredUnclampedTime) : desiredUnclampedTime;
|
|
15884
|
-
const
|
|
15885
|
-
const timeShiftRvcTag = rvcTime ? Math.abs(shouldBeTime - rvcTime) : null;
|
|
15886
|
-
const mostRecentTimeshift = rvcLastUpdate && rvcTime > mediaTagLastUpdate ? timeShiftRvcTag : timeShiftMediaTag;
|
|
15887
|
-
const timeShift = timeShiftRvcTag && !isVariableFpsVideo ? mostRecentTimeshift : timeShiftMediaTag;
|
|
15919
|
+
const timeShift = Math.abs(shouldBeTime - mediaTagTime);
|
|
15888
15920
|
if (timeShift > acceptableTimeShift && lastSeekDueToShift !== shouldBeTime) {
|
|
15889
15921
|
return {
|
|
15890
15922
|
type: "seek-due-to-shift",
|
|
@@ -15897,18 +15929,23 @@ var getMediaSyncAction = (input) => {
|
|
|
15897
15929
|
}
|
|
15898
15930
|
const seekThreshold = playing ? 0.15 : 0.01;
|
|
15899
15931
|
const makesSenseToSeek = Math.abs(currentTime - shouldBeTime) > seekThreshold;
|
|
15932
|
+
const audioLead = currentTime - shouldBeTime;
|
|
15933
|
+
const holdAudioUntilTimelineCatchesUp = mediaType === "audio" && playing && playbackRate > 0 && makesSenseToSeek && audioLead > 0 && audioLead <= acceptableTimeShift;
|
|
15900
15934
|
const isSomethingElseBuffering = playerBuffering && !mediaTagBufferingOrStalled;
|
|
15901
15935
|
if (!playing || isSomethingElseBuffering) {
|
|
15902
15936
|
return {
|
|
15903
15937
|
type: "seek-if-not-playing",
|
|
15904
15938
|
shouldBeTime,
|
|
15905
|
-
why: makesSenseToSeek ? `not playing or something else is buffering. time offset is over seek threshold (${seekThreshold})` : null
|
|
15939
|
+
why: makesSenseToSeek && !holdAudioUntilTimelineCatchesUp ? `not playing or something else is buffering. time offset is over seek threshold (${seekThreshold})` : null
|
|
15906
15940
|
};
|
|
15907
15941
|
}
|
|
15908
15942
|
if (!playing || playerBuffering) {
|
|
15909
15943
|
return { type: "none" };
|
|
15910
15944
|
}
|
|
15911
15945
|
const pausedCondition = paused && !ended;
|
|
15946
|
+
if (pausedCondition && holdAudioUntilTimelineCatchesUp) {
|
|
15947
|
+
return { type: "none" };
|
|
15948
|
+
}
|
|
15912
15949
|
const firstFrameCondition = absoluteFrame === 0;
|
|
15913
15950
|
if (pausedCondition || firstFrameCondition) {
|
|
15914
15951
|
const reason = pausedCondition ? "media tag is paused" : "absolute frame is 0";
|
|
@@ -15922,19 +15959,15 @@ var getMediaSyncAction = (input) => {
|
|
|
15922
15959
|
}
|
|
15923
15960
|
return { type: "none" };
|
|
15924
15961
|
};
|
|
15925
|
-
var
|
|
15926
|
-
const
|
|
15927
|
-
time: mediaRef.current?.currentTime ?? 0
|
|
15928
|
-
lastUpdate: performance.now()
|
|
15962
|
+
var useCurrentTimeOfMediaTag = (mediaRef) => {
|
|
15963
|
+
const currentTime = React35.useRef({
|
|
15964
|
+
time: mediaRef.current?.currentTime ?? 0
|
|
15929
15965
|
});
|
|
15930
15966
|
const nowCurrentTime = mediaRef.current?.currentTime ?? null;
|
|
15931
15967
|
if (nowCurrentTime !== null) {
|
|
15932
|
-
|
|
15933
|
-
lastUpdate.current.time = nowCurrentTime;
|
|
15934
|
-
lastUpdate.current.lastUpdate = performance.now();
|
|
15935
|
-
}
|
|
15968
|
+
currentTime.current.time = nowCurrentTime;
|
|
15936
15969
|
}
|
|
15937
|
-
return
|
|
15970
|
+
return currentTime;
|
|
15938
15971
|
};
|
|
15939
15972
|
var seek = ({
|
|
15940
15973
|
mediaRef,
|
|
@@ -16101,8 +16134,7 @@ var useRequestVideoCallbackTime = ({
|
|
|
16101
16134
|
const { current } = mediaRef;
|
|
16102
16135
|
if (current) {
|
|
16103
16136
|
currentTime.current = {
|
|
16104
|
-
time: current.currentTime
|
|
16105
|
-
lastUpdate: performance.now()
|
|
16137
|
+
time: current.currentTime
|
|
16106
16138
|
};
|
|
16107
16139
|
} else {
|
|
16108
16140
|
currentTime.current = null;
|
|
@@ -16132,8 +16164,7 @@ var useRequestVideoCallbackTime = ({
|
|
|
16132
16164
|
}
|
|
16133
16165
|
}
|
|
16134
16166
|
currentTime.current = {
|
|
16135
|
-
time: info.mediaTime
|
|
16136
|
-
lastUpdate: performance.now()
|
|
16167
|
+
time: info.mediaTime
|
|
16137
16168
|
};
|
|
16138
16169
|
request();
|
|
16139
16170
|
});
|
|
@@ -16264,7 +16295,7 @@ var useMediaPlayback = ({
|
|
|
16264
16295
|
lastSeek,
|
|
16265
16296
|
onVariableFpsVideoDetected
|
|
16266
16297
|
});
|
|
16267
|
-
const mediaTagCurrentTime =
|
|
16298
|
+
const mediaTagCurrentTime = useCurrentTimeOfMediaTag(mediaRef);
|
|
16268
16299
|
const desiredUnclampedTime = getMediaTime({
|
|
16269
16300
|
frame,
|
|
16270
16301
|
playbackRate: localPlaybackRate,
|
|
@@ -16345,9 +16376,7 @@ var useMediaPlayback = ({
|
|
|
16345
16376
|
ended: current.ended,
|
|
16346
16377
|
desiredUnclampedTime,
|
|
16347
16378
|
mediaTagTime: mediaTagCurrentTime.current.time,
|
|
16348
|
-
mediaTagLastUpdate: mediaTagCurrentTime.current.lastUpdate,
|
|
16349
16379
|
rvcTime: rvcCurrentTime.current?.time ?? null,
|
|
16350
|
-
rvcLastUpdate: rvcCurrentTime.current?.lastUpdate ?? null,
|
|
16351
16380
|
isVariableFpsVideo: Boolean(isVariableFpsVideoMap.current[src]),
|
|
16352
16381
|
acceptableTimeShift: acceptableTimeShiftButLessThanDuration,
|
|
16353
16382
|
lastSeekDueToShift: lastSeekDueToShift.current,
|
|
@@ -16359,7 +16388,8 @@ var useMediaPlayback = ({
|
|
|
16359
16388
|
onlyWarnForMediaSeekingError,
|
|
16360
16389
|
isPremounting,
|
|
16361
16390
|
isPostmounting,
|
|
16362
|
-
pauseWhenBuffering
|
|
16391
|
+
pauseWhenBuffering,
|
|
16392
|
+
mediaType
|
|
16363
16393
|
});
|
|
16364
16394
|
if (action.type === "none") {
|
|
16365
16395
|
return;
|
|
@@ -17203,7 +17233,8 @@ var SolidInner = ({
|
|
|
17203
17233
|
pixelDensity,
|
|
17204
17234
|
overrideId,
|
|
17205
17235
|
videoConfigValues,
|
|
17206
|
-
reference
|
|
17236
|
+
reference,
|
|
17237
|
+
canvasProps
|
|
17207
17238
|
}) => {
|
|
17208
17239
|
const { delayRender, continueRender, cancelRender } = useDelayRender();
|
|
17209
17240
|
const resolvedPixelDensity = resolveSolidPixelDensity(pixelDensity);
|
|
@@ -17291,6 +17322,7 @@ var SolidInner = ({
|
|
|
17291
17322
|
};
|
|
17292
17323
|
}, [height, style, width]);
|
|
17293
17324
|
return /* @__PURE__ */ jsx31("canvas", {
|
|
17325
|
+
...canvasProps,
|
|
17294
17326
|
ref: canvasRef,
|
|
17295
17327
|
width: canvasWidth,
|
|
17296
17328
|
height: canvasHeight,
|
|
@@ -17387,6 +17419,7 @@ var SolidOuter = forwardRef8(({
|
|
|
17387
17419
|
_remotionInternalIsPostmounting: postmountingActive,
|
|
17388
17420
|
children: /* @__PURE__ */ jsx31(SequenceContent, {
|
|
17389
17421
|
children: /* @__PURE__ */ jsx31(SolidInner, {
|
|
17422
|
+
canvasProps: getCanvasPropsFromSequenceProps(props),
|
|
17390
17423
|
reference: actualRef,
|
|
17391
17424
|
videoConfigValues: controls?.videoConfigValues ?? null,
|
|
17392
17425
|
overrideId: controls?.overrideId ?? null,
|
|
@@ -19797,7 +19830,7 @@ var createElementSourceProxy = (api, sourceArgumentIndex, getSourceFileName) =>
|
|
|
19797
19830
|
fileName: getSourceFileName(source.fileName),
|
|
19798
19831
|
lineNumber: source.lineNumber,
|
|
19799
19832
|
columnNumber: source.columnNumber - 1
|
|
19800
|
-
});
|
|
19833
|
+
}, typeof source.__remotionCompiledSourceHash === "string" ? source.__remotionCompiledSourceHash : null);
|
|
19801
19834
|
} else {
|
|
19802
19835
|
const { stackTraceLimit } = Error;
|
|
19803
19836
|
const canLimitStack = typeof stackTraceLimit === "number" && stackTraceLimit > 2 && Object.getOwnPropertyDescriptor(Error, "stackTraceLimit")?.writable;
|