@remotion/media 4.0.456 → 4.0.457
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.
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare class AudioDecodeScheduler {
|
|
2
|
+
private activeTurns;
|
|
3
|
+
private nextId;
|
|
4
|
+
private queue;
|
|
5
|
+
private pendingBatch;
|
|
6
|
+
private batchTimer;
|
|
7
|
+
requestTurn(priority: number): Promise<number>;
|
|
8
|
+
releaseTurn(id: number): void;
|
|
9
|
+
private processBatch;
|
|
10
|
+
private grant;
|
|
11
|
+
private getMinActivePriority;
|
|
12
|
+
private grantEligibleWaiters;
|
|
13
|
+
}
|
|
14
|
+
export declare const getAudioDecodeScheduler: (audioContext: AudioContext) => AudioDecodeScheduler;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type ObjectFitValue = 'fill' | 'contain' | 'cover' | 'none' | 'scale-down';
|
|
2
|
+
/**
|
|
3
|
+
* Draws a source image onto a canvas context with the specified object-fit behavior.
|
|
4
|
+
* This implements object-fit at the canvas drawing level, which is more reliable
|
|
5
|
+
* than CSS object-fit on canvas elements.
|
|
6
|
+
*/
|
|
7
|
+
export declare const drawWithObjectFit: (ctx: CanvasRenderingContext2D | OffscreenCanvasRenderingContext2D, source: CanvasImageSource, options: {
|
|
8
|
+
sourceWidth: number;
|
|
9
|
+
sourceHeight: number;
|
|
10
|
+
destWidth: number;
|
|
11
|
+
destHeight: number;
|
|
12
|
+
fit: ObjectFitValue;
|
|
13
|
+
}) => void;
|
|
14
|
+
export declare const parseObjectFit: (value: string | undefined) => ObjectFitValue | null;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const ALLOWED_GLOBAL_TIME_ANCHOR_SHIFT = 0.1;
|
|
2
|
+
export declare const setGlobalTimeAnchor: ({ audioContext, audioSyncAnchor, absoluteTimeInSeconds, globalPlaybackRate, debugAudioScheduling, logLevel, }: {
|
|
3
|
+
audioContext: AudioContext;
|
|
4
|
+
audioSyncAnchor: {
|
|
5
|
+
value: number;
|
|
6
|
+
};
|
|
7
|
+
absoluteTimeInSeconds: number;
|
|
8
|
+
globalPlaybackRate: number;
|
|
9
|
+
debugAudioScheduling: boolean;
|
|
10
|
+
logLevel: "error" | "info" | "trace" | "verbose" | "warn";
|
|
11
|
+
}) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type EffectDefinitionAndStack, type LoopDisplay, type SequenceControls } from 'remotion';
|
|
2
2
|
import { type VolumeProp } from 'remotion';
|
|
3
3
|
export declare const useMediaInTimeline: ({ volume, mediaVolume, src, mediaType, playbackRate, displayName, stack, showInTimeline, premountDisplay, postmountDisplay, loopDisplay, trimBefore, trimAfter, controls, _experimentalEffects, }: {
|
|
4
4
|
volume: VolumeProp | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/media",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.457",
|
|
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.42.0",
|
|
26
|
-
"remotion": "4.0.
|
|
26
|
+
"remotion": "4.0.457",
|
|
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.457",
|
|
35
35
|
"@vitest/browser-webdriverio": "4.0.9",
|
|
36
36
|
"eslint": "9.19.0",
|
|
37
37
|
"react": "19.2.3",
|