@remotion/media 4.0.475 → 4.0.477

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.
@@ -21,4 +21,4 @@ export declare const Audio: React.ComponentType<{
21
21
  onError?: import("../on-error").MediaOnError | undefined;
22
22
  credentials?: RequestCredentials | undefined;
23
23
  requestInit?: import("..").MediaRequestInit | undefined;
24
- } & Pick<import("remotion").SequenceProps, "durationInFrames" | "from" | "hidden" | "name" | "showInTimeline">>;
24
+ } & Pick<import("remotion").SequenceProps, "durationInFrames" | "freeze" | "from" | "hidden" | "name" | "showInTimeline">>;
@@ -38,4 +38,4 @@ export type AudioProps = {
38
38
  */
39
39
  credentials?: RequestCredentials;
40
40
  requestInit?: MediaRequestInit;
41
- } & Pick<SequenceProps, 'from' | 'durationInFrames' | 'name' | 'showInTimeline' | 'hidden'>;
41
+ } & Pick<SequenceProps, 'from' | 'durationInFrames' | 'freeze' | 'name' | 'showInTimeline' | 'hidden'>;
@@ -2200,7 +2200,7 @@ var AudioForPreviewAssertedShowing = ({
2200
2200
  const parentSequence = useContext2(SequenceContext);
2201
2201
  const isPremounting = Boolean(parentSequence?.premounting);
2202
2202
  const isPostmounting = Boolean(parentSequence?.postmounting);
2203
- const sequenceOffset = ((parentSequence?.cumulatedFrom ?? 0) + (parentSequence?.relativeFrom ?? 0)) / videoConfig.fps;
2203
+ const sequenceOffset = (parentSequence?.absoluteFrom ?? 0) / videoConfig.fps;
2204
2204
  const bufferingContext = useContext2(Internals7.BufferingContextReact);
2205
2205
  if (!bufferingContext) {
2206
2206
  throw new Error("useMediaPlayback must be used inside a <BufferingContext>");
@@ -4601,6 +4601,9 @@ var AudioForRendering = ({
4601
4601
  import { jsx as jsx3 } from "react/jsx-runtime";
4602
4602
  var { validateMediaProps } = Internals16;
4603
4603
  var audioSchema = {
4604
+ durationInFrames: Internals16.durationInFramesField,
4605
+ from: Internals16.fromField,
4606
+ freeze: Internals16.freezeField,
4604
4607
  volume: {
4605
4608
  type: "number",
4606
4609
  min: 0,
@@ -4630,6 +4633,7 @@ var AudioInner = (props) => {
4630
4633
  _experimentalControls: controls,
4631
4634
  from,
4632
4635
  durationInFrames,
4636
+ freeze,
4633
4637
  hidden,
4634
4638
  ...otherProps
4635
4639
  } = props;
@@ -4684,6 +4688,7 @@ var AudioInner = (props) => {
4684
4688
  layout: "none",
4685
4689
  from: from ?? 0,
4686
4690
  durationInFrames: basicInfo.duration,
4691
+ freeze,
4687
4692
  _remotionInternalStack: stack,
4688
4693
  _remotionInternalIsMedia: isMedia,
4689
4694
  name: name ?? "<Audio>",
@@ -4704,6 +4709,7 @@ var AudioInner = (props) => {
4704
4709
  };
4705
4710
  var Audio = Internals16.wrapInSchema({
4706
4711
  Component: AudioInner,
4712
+ componentIdentity: "dev.remotion.media.Audio",
4707
4713
  schema: audioSchema,
4708
4714
  supportsEffects: false
4709
4715
  });
@@ -4866,7 +4872,7 @@ var VideoForPreviewAssertedShowing = ({
4866
4872
  const parentSequence = useContext4(SequenceContext2);
4867
4873
  const isPremounting = Boolean(parentSequence?.premounting);
4868
4874
  const isPostmounting = Boolean(parentSequence?.postmounting);
4869
- const sequenceOffset = ((parentSequence?.cumulatedFrom ?? 0) + (parentSequence?.relativeFrom ?? 0)) / videoConfig.fps;
4875
+ const sequenceOffset = (parentSequence?.absoluteFrom ?? 0) / videoConfig.fps;
4870
4876
  const currentTime = frame / videoConfig.fps;
4871
4877
  const currentTimeRef = useRef2(currentTime);
4872
4878
  currentTimeRef.current = currentTime;
@@ -5527,6 +5533,9 @@ var VideoForRendering = ({
5527
5533
  import { jsx as jsx6 } from "react/jsx-runtime";
5528
5534
  var { validateMediaTrimProps, resolveTrimProps, validateMediaProps: validateMediaProps2 } = Internals20;
5529
5535
  var videoSchema = {
5536
+ durationInFrames: Internals20.durationInFramesField,
5537
+ from: Internals20.fromField,
5538
+ freeze: Internals20.freezeField,
5530
5539
  volume: {
5531
5540
  type: "number",
5532
5541
  min: 0,
@@ -5699,6 +5708,7 @@ var VideoInner = ({
5699
5708
  effects,
5700
5709
  durationInFrames,
5701
5710
  from,
5711
+ freeze,
5702
5712
  hidden,
5703
5713
  ...props
5704
5714
  }) => {
@@ -5755,6 +5765,7 @@ var VideoInner = ({
5755
5765
  layout: "none",
5756
5766
  from: from ?? 0,
5757
5767
  durationInFrames: basicInfo.duration,
5768
+ freeze,
5758
5769
  _remotionInternalStack: stack,
5759
5770
  _remotionInternalIsMedia: isMedia,
5760
5771
  name: name ?? "<Video>",
@@ -5803,6 +5814,7 @@ var VideoInner = ({
5803
5814
  };
5804
5815
  var Video = Internals20.wrapInSchema({
5805
5816
  Component: VideoInner,
5817
+ componentIdentity: "dev.remotion.media.Video",
5806
5818
  schema: videoSchema,
5807
5819
  supportsEffects: true
5808
5820
  });
package/dist/index.d.ts CHANGED
@@ -25,7 +25,7 @@ export declare const experimental_Audio: import("react").ComponentType<{
25
25
  onError?: import("./on-error").MediaOnError | undefined;
26
26
  credentials?: RequestCredentials | undefined;
27
27
  requestInit?: import("./request-init").MediaRequestInit | undefined;
28
- } & Pick<import("remotion").SequenceProps, "durationInFrames" | "from" | "hidden" | "name" | "showInTimeline">>;
28
+ } & Pick<import("remotion").SequenceProps, "durationInFrames" | "freeze" | "from" | "hidden" | "name" | "showInTimeline">>;
29
29
  /**
30
30
  * @deprecated Now just `Video`
31
31
  */
@@ -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> & Pick<import("remotion").SequenceProps, "durationInFrames" | "from" | "hidden" | "name">>;
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> & Pick<import("remotion").SequenceProps, "durationInFrames" | "freeze" | "from" | "hidden" | "name" | "showInTimeline">>;
66
66
  export { AudioForPreview } from './audio/audio-for-preview';
67
67
  export { AudioProps, FallbackHtml5AudioProps } from './audio/props';
68
68
  export { MediaErrorAction } from './on-error';
@@ -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 & Pick<SequenceProps, 'durationInFrames' | 'from' | 'name' | 'hidden'>;
67
+ export type VideoProps = MandatoryVideoProps & Partial<OuterVideoProps> & Partial<OptionalVideoProps> & NativeVideoProps & Pick<SequenceProps, 'durationInFrames' | 'from' | 'freeze' | 'name' | 'showInTimeline' | 'hidden'>;
68
68
  export {};
@@ -32,4 +32,4 @@ export declare const Video: React.ComponentType<{
32
32
  objectFit: import("./props").VideoObjectFit;
33
33
  _experimentalInitiallyDrawCachedFrame: boolean;
34
34
  effects: import("remotion").EffectsProp;
35
- }> & 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> & Pick<import("remotion").SequenceProps, "durationInFrames" | "from" | "hidden" | "name">>;
35
+ }> & 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> & Pick<import("remotion").SequenceProps, "durationInFrames" | "freeze" | "from" | "hidden" | "name" | "showInTimeline">>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/media",
3
- "version": "4.0.475",
3
+ "version": "4.0.477",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "module": "dist/esm/index.mjs",
@@ -23,7 +23,7 @@
23
23
  },
24
24
  "dependencies": {
25
25
  "mediabunny": "1.45.0",
26
- "remotion": "4.0.475",
26
+ "remotion": "4.0.477",
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.475",
34
+ "@remotion/eslint-config-internal": "4.0.477",
35
35
  "@vitest/browser-webdriverio": "4.0.9",
36
36
  "eslint": "9.19.0",
37
37
  "react": "19.2.3",