@remotion/media 4.0.461 → 4.0.462
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/esm/index.mjs +6 -2
- package/dist/index.d.ts +1 -1
- package/dist/video/props.d.ts +2 -2
- package/dist/video/video.d.ts +1 -1
- package/package.json +4 -4
- package/dist/use-media-in-timeline.d.ts +0 -21
package/dist/esm/index.mjs
CHANGED
|
@@ -5435,7 +5435,11 @@ var VideoInner = ({
|
|
|
5435
5435
|
type: "video",
|
|
5436
5436
|
data: basicInfo
|
|
5437
5437
|
}), [basicInfo]);
|
|
5438
|
-
const memoizedEffects = Internals20.useMemoizedEffects(
|
|
5438
|
+
const memoizedEffects = Internals20.useMemoizedEffects({
|
|
5439
|
+
effects: _experimentalEffects ?? [],
|
|
5440
|
+
overrideId: controls?.overrideId ?? null
|
|
5441
|
+
});
|
|
5442
|
+
const memoizedEffectDefinitions = Internals20.useMemoizedEffectDefinitions(_experimentalEffects ?? []);
|
|
5439
5443
|
if (sequenceDurationInFrames === 0) {
|
|
5440
5444
|
return null;
|
|
5441
5445
|
}
|
|
@@ -5448,7 +5452,7 @@ var VideoInner = ({
|
|
|
5448
5452
|
name: name ?? "<Video>",
|
|
5449
5453
|
_experimentalControls: controls,
|
|
5450
5454
|
_remotionInternalLoopDisplay: loopDisplay,
|
|
5451
|
-
_experimentalEffects:
|
|
5455
|
+
_experimentalEffects: memoizedEffectDefinitions,
|
|
5452
5456
|
showInTimeline: showInTimeline ?? true,
|
|
5453
5457
|
children: /* @__PURE__ */ jsx6(InnerVideo, {
|
|
5454
5458
|
audioStreamIndex: audioStreamIndex ?? 0,
|
package/dist/index.d.ts
CHANGED
|
@@ -59,7 +59,7 @@ export declare const experimental_Video: import("react").ComponentType<{
|
|
|
59
59
|
credentials: RequestCredentials | undefined;
|
|
60
60
|
objectFit: import(".").VideoObjectFit;
|
|
61
61
|
_experimentalInitiallyDrawCachedFrame: boolean;
|
|
62
|
-
_experimentalEffects: import("remotion").
|
|
62
|
+
_experimentalEffects: import("remotion").EffectsProp;
|
|
63
63
|
}> & Pick<import("remotion").SequenceProps, "durationInFrames" | "from" | "name">>;
|
|
64
64
|
export { AudioForPreview } from './audio/audio-for-preview';
|
|
65
65
|
export { AudioProps, FallbackHtml5AudioProps } from './audio/props';
|
package/dist/video/props.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { EffectDefinitionAndStack,
|
|
1
|
+
import type { EffectDefinitionAndStack, EffectsProp, LogLevel, LoopVolumeCurveBehavior, OnVideoFrame, SequenceProps, VolumeProp } from 'remotion';
|
|
2
2
|
import type { MediaOnError } from '../on-error';
|
|
3
3
|
export type MediaErrorEvent = {
|
|
4
4
|
error: Error;
|
|
@@ -50,7 +50,7 @@ type OptionalVideoProps = {
|
|
|
50
50
|
credentials: RequestCredentials | undefined;
|
|
51
51
|
objectFit: VideoObjectFit;
|
|
52
52
|
_experimentalInitiallyDrawCachedFrame: boolean;
|
|
53
|
-
_experimentalEffects:
|
|
53
|
+
_experimentalEffects: EffectsProp;
|
|
54
54
|
};
|
|
55
55
|
export type InnerVideoProps = MandatoryVideoProps & OuterVideoProps & Omit<OptionalVideoProps, '_experimentalEffects'> & {
|
|
56
56
|
_experimentalEffects: EffectDefinitionAndStack<unknown>[];
|
package/dist/video/video.d.ts
CHANGED
|
@@ -30,5 +30,5 @@ export declare const Video: React.ComponentType<{
|
|
|
30
30
|
credentials: RequestCredentials | undefined;
|
|
31
31
|
objectFit: import("./props").VideoObjectFit;
|
|
32
32
|
_experimentalInitiallyDrawCachedFrame: boolean;
|
|
33
|
-
_experimentalEffects: import("remotion").
|
|
33
|
+
_experimentalEffects: import("remotion").EffectsProp;
|
|
34
34
|
}> & Pick<import("remotion").SequenceProps, "durationInFrames" | "from" | "name">>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/media",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.462",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"module": "dist/esm/index.mjs",
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"make": "tsgo && bun --env-file=../.env.bundle bundle.ts"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"mediabunny": "1.
|
|
26
|
-
"remotion": "4.0.
|
|
25
|
+
"mediabunny": "1.45.0",
|
|
26
|
+
"remotion": "4.0.462",
|
|
27
27
|
"zod": "4.3.6"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"react-dom": ">=16.8.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
34
|
+
"@remotion/eslint-config-internal": "4.0.462",
|
|
35
35
|
"@vitest/browser-webdriverio": "4.0.9",
|
|
36
36
|
"eslint": "9.19.0",
|
|
37
37
|
"react": "19.2.3",
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { EffectDefinitionAndStack, LoopDisplay, SequenceControls } from 'remotion';
|
|
2
|
-
import { type VolumeProp } from 'remotion';
|
|
3
|
-
export declare const useMediaInTimeline: ({ volume, mediaVolume, src, mediaType, playbackRate, displayName, stack, showInTimeline, premountDisplay, postmountDisplay, loopDisplay, trimBefore, trimAfter, controls, _experimentalEffects, }: {
|
|
4
|
-
volume: VolumeProp | undefined;
|
|
5
|
-
mediaVolume: number;
|
|
6
|
-
src: string | undefined;
|
|
7
|
-
mediaType: "audio" | "video";
|
|
8
|
-
playbackRate: number;
|
|
9
|
-
displayName: string | null;
|
|
10
|
-
stack: string | null;
|
|
11
|
-
showInTimeline: boolean;
|
|
12
|
-
premountDisplay: number | null;
|
|
13
|
-
postmountDisplay: number | null;
|
|
14
|
-
loopDisplay: LoopDisplay | undefined;
|
|
15
|
-
trimBefore: number | undefined;
|
|
16
|
-
trimAfter: number | undefined;
|
|
17
|
-
controls: SequenceControls | undefined;
|
|
18
|
-
_experimentalEffects: EffectDefinitionAndStack<unknown>[];
|
|
19
|
-
}) => {
|
|
20
|
-
id: string;
|
|
21
|
-
};
|