@remotion/media 4.0.454 → 4.0.456
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/audio/audio-for-preview.d.ts +3 -4
- package/dist/audio/audio.d.ts +22 -2
- package/dist/audio/props.d.ts +2 -12
- package/dist/debug-overlay/preview-overlay.d.ts +1 -1
- package/dist/esm/index.mjs +370 -358
- package/dist/helpers/resolve-audio-track.d.ts +6 -0
- package/dist/index.d.ts +24 -6
- package/dist/media-player.d.ts +9 -1
- package/dist/show-in-timeline.d.ts +3 -1
- package/dist/use-media-in-timeline.d.ts +3 -2
- package/dist/video/props.d.ts +4 -12
- package/dist/video/video-for-preview.d.ts +3 -2
- package/dist/video/video-for-rendering.d.ts +0 -1
- package/dist/video/video.d.ts +2 -5
- package/dist/video-iterator-manager.d.ts +6 -2
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { LogLevel, LoopVolumeCurveBehavior,
|
|
2
|
+
import type { LogLevel, LoopVolumeCurveBehavior, VolumeProp } from 'remotion';
|
|
3
3
|
import { type MediaOnError } from '../on-error';
|
|
4
4
|
import type { FallbackHtml5AudioProps } from './props';
|
|
5
5
|
type InnerAudioProps = {
|
|
@@ -27,8 +27,7 @@ type InnerAudioProps = {
|
|
|
27
27
|
readonly fallbackHtml5AudioProps?: FallbackHtml5AudioProps;
|
|
28
28
|
readonly onError?: MediaOnError;
|
|
29
29
|
readonly credentials?: RequestCredentials;
|
|
30
|
+
readonly setMediaDurationInSeconds?: (durationInSeconds: number) => void;
|
|
30
31
|
};
|
|
31
|
-
export declare const AudioForPreview: React.FC<InnerAudioProps
|
|
32
|
-
readonly controls: SequenceControls | undefined;
|
|
33
|
-
}>;
|
|
32
|
+
export declare const AudioForPreview: React.FC<InnerAudioProps>;
|
|
34
33
|
export {};
|
package/dist/audio/audio.d.ts
CHANGED
|
@@ -1,3 +1,23 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
export declare const Audio: React.ComponentType<{
|
|
3
|
+
src: string;
|
|
4
|
+
trimBefore?: number | undefined;
|
|
5
|
+
trimAfter?: number | undefined;
|
|
6
|
+
volume?: import("remotion").VolumeProp | undefined;
|
|
7
|
+
loopVolumeCurveBehavior?: import("remotion").LoopVolumeCurveBehavior | undefined;
|
|
8
|
+
playbackRate?: number | undefined;
|
|
9
|
+
muted?: boolean | undefined;
|
|
10
|
+
style?: React.CSSProperties | undefined;
|
|
11
|
+
stack?: string | undefined;
|
|
12
|
+
logLevel?: "error" | "info" | "trace" | "verbose" | "warn" | undefined;
|
|
13
|
+
loop?: boolean | undefined;
|
|
14
|
+
audioStreamIndex?: number | undefined;
|
|
15
|
+
_remotionInternalNativeLoopPassed?: boolean | undefined;
|
|
16
|
+
fallbackHtml5AudioProps?: import("./props").FallbackHtml5AudioProps | undefined;
|
|
17
|
+
disallowFallbackToHtml5Audio?: boolean | undefined;
|
|
18
|
+
toneFrequency?: number | undefined;
|
|
19
|
+
delayRenderRetries?: number | undefined;
|
|
20
|
+
delayRenderTimeoutInMilliseconds?: number | undefined;
|
|
21
|
+
onError?: import("../on-error").MediaOnError | undefined;
|
|
22
|
+
credentials?: RequestCredentials | undefined;
|
|
23
|
+
} & Pick<import("remotion").SequenceProps, "durationInFrames" | "from" | "name" | "showInTimeline">>;
|
package/dist/audio/props.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { LogLevel, LoopVolumeCurveBehavior, VolumeProp } from 'remotion';
|
|
1
|
+
import type { LogLevel, LoopVolumeCurveBehavior, SequenceProps, VolumeProp } from 'remotion';
|
|
2
2
|
import type { MediaOnError } from '../on-error';
|
|
3
3
|
export type FallbackHtml5AudioProps = {
|
|
4
4
|
crossOrigin?: '' | 'anonymous' | 'use-credentials' | undefined;
|
|
@@ -9,20 +9,10 @@ export type FallbackHtml5AudioProps = {
|
|
|
9
9
|
};
|
|
10
10
|
export type AudioProps = {
|
|
11
11
|
src: string;
|
|
12
|
-
/**
|
|
13
|
-
* When set, `<Audio>` applies timing via an inner `<Sequence layout="none">` that is hidden from the timeline (`showInTimeline={false}`) so the clip still appears once as media.
|
|
14
|
-
*/
|
|
15
|
-
from?: number;
|
|
16
|
-
/**
|
|
17
|
-
* When set with `from`, bounds the clip in frames. Defaults to `Infinity` like `<Sequence>`.
|
|
18
|
-
*/
|
|
19
|
-
durationInFrames?: number;
|
|
20
12
|
trimBefore?: number;
|
|
21
13
|
trimAfter?: number;
|
|
22
14
|
volume?: VolumeProp;
|
|
23
15
|
loopVolumeCurveBehavior?: LoopVolumeCurveBehavior;
|
|
24
|
-
name?: string;
|
|
25
|
-
showInTimeline?: boolean;
|
|
26
16
|
playbackRate?: number;
|
|
27
17
|
muted?: boolean;
|
|
28
18
|
style?: React.CSSProperties;
|
|
@@ -41,4 +31,4 @@ export type AudioProps = {
|
|
|
41
31
|
delayRenderTimeoutInMilliseconds?: number;
|
|
42
32
|
onError?: MediaOnError;
|
|
43
33
|
credentials?: RequestCredentials;
|
|
44
|
-
}
|
|
34
|
+
} & Pick<SequenceProps, 'from' | 'durationInFrames' | 'name' | 'showInTimeline'>;
|
|
@@ -86,7 +86,7 @@ export declare const drawPreviewOverlay: ({ context, audioTime, audioContextStat
|
|
|
86
86
|
frame: import("mediabunny").WrappedCanvas;
|
|
87
87
|
};
|
|
88
88
|
} | null;
|
|
89
|
-
drawFrame: (frame: import("mediabunny").WrappedCanvas) => void
|
|
89
|
+
drawFrame: (frame: import("mediabunny").WrappedCanvas) => Promise<void>;
|
|
90
90
|
getFramesRendered: () => number;
|
|
91
91
|
} | null;
|
|
92
92
|
playbackRate: number;
|