@remotion/media 4.0.498 → 4.0.500
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 +21 -3
- 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 +5 -5
package/dist/esm/index.mjs
CHANGED
|
@@ -5956,7 +5956,12 @@ var VideoForRendering = ({
|
|
|
5956
5956
|
|
|
5957
5957
|
// src/video/video.tsx
|
|
5958
5958
|
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
5959
|
-
var {
|
|
5959
|
+
var {
|
|
5960
|
+
validateMediaTrimProps,
|
|
5961
|
+
resolveTrimProps,
|
|
5962
|
+
validateMediaProps: validateMediaProps2,
|
|
5963
|
+
useCropStyle
|
|
5964
|
+
} = Internals22;
|
|
5960
5965
|
var videoSchema = {
|
|
5961
5966
|
src: {
|
|
5962
5967
|
type: "asset",
|
|
@@ -5988,7 +5993,8 @@ var videoSchema = {
|
|
|
5988
5993
|
loop: { type: "boolean", default: false, description: "Loop" },
|
|
5989
5994
|
...Internals22.transformSchema,
|
|
5990
5995
|
...Interactive2.backgroundSchema,
|
|
5991
|
-
...Interactive2.borderSchema
|
|
5996
|
+
...Interactive2.borderSchema,
|
|
5997
|
+
...Interactive2.cropSchema
|
|
5992
5998
|
};
|
|
5993
5999
|
var InnerVideo = ({
|
|
5994
6000
|
src,
|
|
@@ -6142,6 +6148,10 @@ var VideoInner = ({
|
|
|
6142
6148
|
postmountFor,
|
|
6143
6149
|
styleWhilePremounted,
|
|
6144
6150
|
styleWhilePostmounted,
|
|
6151
|
+
cropLeft,
|
|
6152
|
+
cropRight,
|
|
6153
|
+
cropTop,
|
|
6154
|
+
cropBottom,
|
|
6145
6155
|
...props
|
|
6146
6156
|
}) => {
|
|
6147
6157
|
const fallbackLogLevel = Internals22.useLogLevel();
|
|
@@ -6215,6 +6225,14 @@ var VideoInner = ({
|
|
|
6215
6225
|
styleWhilePostmounted: styleWhilePostmounted ?? null,
|
|
6216
6226
|
hideWhilePremounted: "display-none"
|
|
6217
6227
|
});
|
|
6228
|
+
const croppedStyle = useCropStyle({
|
|
6229
|
+
cropLeft,
|
|
6230
|
+
cropRight,
|
|
6231
|
+
cropTop,
|
|
6232
|
+
cropBottom,
|
|
6233
|
+
style: premountingStyle,
|
|
6234
|
+
componentName: "<Video />"
|
|
6235
|
+
});
|
|
6218
6236
|
if (sequenceDurationInFrames === 0) {
|
|
6219
6237
|
return null;
|
|
6220
6238
|
}
|
|
@@ -6256,7 +6274,7 @@ var VideoInner = ({
|
|
|
6256
6274
|
playbackRate: playbackRate ?? 1,
|
|
6257
6275
|
showInTimeline: showInTimeline ?? true,
|
|
6258
6276
|
src,
|
|
6259
|
-
style:
|
|
6277
|
+
style: croppedStyle ?? {},
|
|
6260
6278
|
trimAfter,
|
|
6261
6279
|
trimBefore,
|
|
6262
6280
|
volume: volume ?? 1,
|
package/dist/index.d.ts
CHANGED
|
@@ -62,7 +62,7 @@ export declare const experimental_Video: import("react").ComponentType<{
|
|
|
62
62
|
objectFit: import(".").VideoObjectFit;
|
|
63
63
|
_experimentalInitiallyDrawCachedFrame: boolean;
|
|
64
64
|
effects: import("remotion").EffectsProp;
|
|
65
|
-
}> & Omit<import("react").HTMLAttributes<HTMLElement>, "_experimentalInitiallyDrawCachedFrame" | "audioStreamIndex" | "className" | "credentials" | "debugOverlay" | "delayRenderRetries" | "delayRenderTimeoutInMilliseconds" | "disallowFallbackToOffthreadVideo" | "effects" | "fallbackOffthreadVideoProps" | "headless" | "logLevel" | "loop" | "loopVolumeCurveBehavior" | "muted" | "objectFit" | "onError" | "onVideoFrame" | "playbackRate" | "requestInit" | "showInTimeline" | "src" | "stack" | "style" | "toneFrequency" | "trimAfter" | "trimBefore" | "volume"> & Record<`data-${string}`, string | undefined> & import("remotion").InteractiveBaseProps & import("remotion").InteractivePremountProps>;
|
|
65
|
+
}> & Omit<import("react").HTMLAttributes<HTMLElement>, "_experimentalInitiallyDrawCachedFrame" | "audioStreamIndex" | "className" | "credentials" | "debugOverlay" | "delayRenderRetries" | "delayRenderTimeoutInMilliseconds" | "disallowFallbackToOffthreadVideo" | "effects" | "fallbackOffthreadVideoProps" | "headless" | "logLevel" | "loop" | "loopVolumeCurveBehavior" | "muted" | "objectFit" | "onError" | "onVideoFrame" | "playbackRate" | "requestInit" | "showInTimeline" | "src" | "stack" | "style" | "toneFrequency" | "trimAfter" | "trimBefore" | "volume"> & Record<`data-${string}`, string | undefined> & import("remotion").InteractiveBaseProps & import("remotion").InteractiveCropProps & import("remotion").InteractivePremountProps>;
|
|
66
66
|
export { AudioForPreview } from './audio/audio-for-preview';
|
|
67
67
|
export { AudioProps, FallbackHtml5AudioProps } from './audio/props';
|
|
68
68
|
export { MediaErrorAction } from './on-error';
|
package/dist/video/props.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
|
-
import type { EffectDefinitionAndStack, EffectsProp, InteractiveBaseProps, InteractivePremountProps, LogLevel, LoopVolumeCurveBehavior, OnVideoFrame, VolumeProp } from 'remotion';
|
|
2
|
+
import type { EffectDefinitionAndStack, EffectsProp, InteractiveBaseProps, InteractiveCropProps, InteractivePremountProps, LogLevel, LoopVolumeCurveBehavior, OnVideoFrame, VolumeProp } from 'remotion';
|
|
3
3
|
import type { MediaOnError } from '../on-error';
|
|
4
4
|
import type { MediaRequestInit } from '../request-init';
|
|
5
5
|
export type MediaErrorEvent = {
|
|
@@ -64,5 +64,5 @@ export type NativeVideoProps = Omit<React.HTMLAttributes<HTMLElement>, keyof Man
|
|
|
64
64
|
export type InnerVideoProps = MandatoryVideoProps & OuterVideoProps & Omit<OptionalVideoProps, 'effects'> & NativeVideoProps & {
|
|
65
65
|
effects: EffectDefinitionAndStack<unknown>[];
|
|
66
66
|
};
|
|
67
|
-
export type VideoProps = MandatoryVideoProps & Partial<OuterVideoProps> & Partial<OptionalVideoProps> & NativeVideoProps & InteractiveBaseProps & InteractivePremountProps;
|
|
67
|
+
export type VideoProps = MandatoryVideoProps & Partial<OuterVideoProps> & Partial<OptionalVideoProps> & NativeVideoProps & InteractiveBaseProps & InteractiveCropProps & InteractivePremountProps;
|
|
68
68
|
export {};
|
package/dist/video/video.d.ts
CHANGED
|
@@ -34,4 +34,4 @@ export declare const Video: React.ComponentType<{
|
|
|
34
34
|
objectFit: import("./props").VideoObjectFit;
|
|
35
35
|
_experimentalInitiallyDrawCachedFrame: boolean;
|
|
36
36
|
effects: import("remotion").EffectsProp;
|
|
37
|
-
}> & Omit<React.HTMLAttributes<HTMLElement>, "_experimentalInitiallyDrawCachedFrame" | "audioStreamIndex" | "className" | "credentials" | "debugOverlay" | "delayRenderRetries" | "delayRenderTimeoutInMilliseconds" | "disallowFallbackToOffthreadVideo" | "effects" | "fallbackOffthreadVideoProps" | "headless" | "logLevel" | "loop" | "loopVolumeCurveBehavior" | "muted" | "objectFit" | "onError" | "onVideoFrame" | "playbackRate" | "requestInit" | "showInTimeline" | "src" | "stack" | "style" | "toneFrequency" | "trimAfter" | "trimBefore" | "volume"> & Record<`data-${string}`, string | undefined> & import("remotion").InteractiveBaseProps & import("remotion").InteractivePremountProps>;
|
|
37
|
+
}> & Omit<React.HTMLAttributes<HTMLElement>, "_experimentalInitiallyDrawCachedFrame" | "audioStreamIndex" | "className" | "credentials" | "debugOverlay" | "delayRenderRetries" | "delayRenderTimeoutInMilliseconds" | "disallowFallbackToOffthreadVideo" | "effects" | "fallbackOffthreadVideoProps" | "headless" | "logLevel" | "loop" | "loopVolumeCurveBehavior" | "muted" | "objectFit" | "onError" | "onVideoFrame" | "playbackRate" | "requestInit" | "showInTimeline" | "src" | "stack" | "style" | "toneFrequency" | "trimAfter" | "trimBefore" | "volume"> & Record<`data-${string}`, string | undefined> & import("remotion").InteractiveBaseProps & import("remotion").InteractiveCropProps & import("remotion").InteractivePremountProps>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/media",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.500",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"module": "dist/esm/index.mjs",
|
|
@@ -23,16 +23,16 @@
|
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"mediabunny": "1.50.8",
|
|
26
|
-
"remotion": "4.0.
|
|
27
|
-
"zod": "4.3
|
|
26
|
+
"remotion": "4.0.500",
|
|
27
|
+
"zod": "4.4.3"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"react": ">=16.8.0",
|
|
31
31
|
"react-dom": ">=16.8.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
35
|
-
"@remotion/player": "4.0.
|
|
34
|
+
"@remotion/eslint-config-internal": "4.0.500",
|
|
35
|
+
"@remotion/player": "4.0.500",
|
|
36
36
|
"@vitest/browser-webdriverio": "4.0.9",
|
|
37
37
|
"eslint": "9.19.0",
|
|
38
38
|
"react": "19.2.3",
|