Add .gitignore to exclude all node packages and lock files

This commit is contained in:
Adolfo Reyna
2026-02-23 21:56:04 -05:00
parent faae96c9ed
commit dcc5c6c044
9747 changed files with 1555105 additions and 2 deletions
@@ -0,0 +1,3 @@
import type { BrowserExecutable } from '@remotion/renderer';
export declare const setBrowserExecutable: (newBrowserExecutablePath: BrowserExecutable) => void;
export declare const getBrowserExecutable: () => BrowserExecutable;
@@ -0,0 +1,12 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getBrowserExecutable = exports.setBrowserExecutable = void 0;
let currentBrowserExecutablePath = null;
const setBrowserExecutable = (newBrowserExecutablePath) => {
currentBrowserExecutablePath = newBrowserExecutablePath;
};
exports.setBrowserExecutable = setBrowserExecutable;
const getBrowserExecutable = () => {
return currentBrowserExecutablePath;
};
exports.getBrowserExecutable = getBrowserExecutable;
@@ -0,0 +1 @@
export declare const getBrowser: () => null;
@@ -0,0 +1,8 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getBrowser = void 0;
const currentBrowser = null;
const getBrowser = () => {
return currentBrowser;
};
exports.getBrowser = getBrowser;
@@ -0,0 +1,2 @@
export declare const getBufferStateDelayInMilliseconds: () => number | null;
export declare const setBufferStateDelayInMilliseconds: (val: number | null) => void;
@@ -0,0 +1,12 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.setBufferStateDelayInMilliseconds = exports.getBufferStateDelayInMilliseconds = void 0;
let value = null;
const getBufferStateDelayInMilliseconds = () => {
return value;
};
exports.getBufferStateDelayInMilliseconds = getBufferStateDelayInMilliseconds;
const setBufferStateDelayInMilliseconds = (val) => {
value = val;
};
exports.setBufferStateDelayInMilliseconds = setBufferStateDelayInMilliseconds;
@@ -0,0 +1,4 @@
export declare const getChromiumDisableWebSecurity: () => boolean;
export declare const setChromiumDisableWebSecurity: (should: boolean) => void;
export declare const getIgnoreCertificateErrors: () => boolean;
export declare const setChromiumIgnoreCertificateErrors: (should: boolean) => void;
@@ -0,0 +1,17 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.setChromiumIgnoreCertificateErrors = exports.getIgnoreCertificateErrors = exports.setChromiumDisableWebSecurity = exports.getChromiumDisableWebSecurity = void 0;
let chromiumDisableWebSecurity = false;
let ignoreCertificateErrors = false;
const getChromiumDisableWebSecurity = () => chromiumDisableWebSecurity;
exports.getChromiumDisableWebSecurity = getChromiumDisableWebSecurity;
const setChromiumDisableWebSecurity = (should) => {
chromiumDisableWebSecurity = should;
};
exports.setChromiumDisableWebSecurity = setChromiumDisableWebSecurity;
const getIgnoreCertificateErrors = () => ignoreCertificateErrors;
exports.getIgnoreCertificateErrors = getIgnoreCertificateErrors;
const setChromiumIgnoreCertificateErrors = (should) => {
ignoreCertificateErrors = should;
};
exports.setChromiumIgnoreCertificateErrors = setChromiumIgnoreCertificateErrors;
@@ -0,0 +1,3 @@
export type Concurrency = number | string | null;
export declare const setConcurrency: (newConcurrency: Concurrency) => void;
export declare const getConcurrency: () => string | number | null;
@@ -0,0 +1,12 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getConcurrency = exports.setConcurrency = void 0;
let currentConcurrency = null;
const setConcurrency = (newConcurrency) => {
currentConcurrency = newConcurrency;
};
exports.setConcurrency = setConcurrency;
const getConcurrency = () => {
return currentConcurrency;
};
exports.getConcurrency = getConcurrency;
@@ -0,0 +1,2 @@
export declare const setEntryPoint: (ep: string) => void;
export declare const getEntryPoint: () => string | null;
@@ -0,0 +1,12 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getEntryPoint = exports.setEntryPoint = void 0;
let entryPoint = null;
const setEntryPoint = (ep) => {
entryPoint = ep;
};
exports.setEntryPoint = setEntryPoint;
const getEntryPoint = () => {
return entryPoint;
};
exports.getEntryPoint = getEntryPoint;
@@ -0,0 +1,2 @@
export declare const setDotEnvLocation: (file: string) => void;
export declare const getDotEnvLocation: () => string | null;
@@ -0,0 +1,10 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getDotEnvLocation = exports.setDotEnvLocation = void 0;
let envFile = null;
const setDotEnvLocation = (file) => {
envFile = file;
};
exports.setDotEnvLocation = setDotEnvLocation;
const getDotEnvLocation = () => envFile;
exports.getDotEnvLocation = getDotEnvLocation;
@@ -0,0 +1,2 @@
export declare const setEveryNthFrame: (frame: number) => void;
export declare const getEveryNthFrame: () => number;
@@ -0,0 +1,12 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getEveryNthFrame = exports.setEveryNthFrame = void 0;
let everyNthFrame = 1;
const setEveryNthFrame = (frame) => {
everyNthFrame = frame;
};
exports.setEveryNthFrame = setEveryNthFrame;
const getEveryNthFrame = () => {
return everyNthFrame;
};
exports.getEveryNthFrame = getEveryNthFrame;
@@ -0,0 +1,3 @@
import type { FfmpegOverrideFn } from '@remotion/renderer';
export declare const setFfmpegOverrideFunction: (fn: FfmpegOverrideFn) => void;
export declare const getFfmpegOverrideFunction: () => FfmpegOverrideFn;
@@ -0,0 +1,12 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getFfmpegOverrideFunction = exports.setFfmpegOverrideFunction = void 0;
let ffmpegOverrideFn = ({ args }) => args;
const setFfmpegOverrideFunction = (fn) => {
ffmpegOverrideFn = fn;
};
exports.setFfmpegOverrideFunction = setFfmpegOverrideFunction;
const getFfmpegOverrideFunction = () => {
return ffmpegOverrideFn;
};
exports.getFfmpegOverrideFunction = getFfmpegOverrideFunction;
@@ -0,0 +1,4 @@
import type { FrameRange } from '@remotion/renderer';
export declare const setFrameRange: (newFrameRange: FrameRange | null) => void;
export declare const setFrameRangeFromCli: (newFrameRange: string | number) => void;
export declare const getRange: () => FrameRange | null;
@@ -0,0 +1,61 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getRange = exports.setFrameRangeFromCli = exports.setFrameRange = void 0;
const renderer_1 = require("@remotion/renderer");
let range = null;
const setFrameRange = (newFrameRange) => {
renderer_1.RenderInternals.validateFrameRange(newFrameRange);
range = newFrameRange;
};
exports.setFrameRange = setFrameRange;
const setFrameRangeFromCli = (newFrameRange) => {
if (typeof newFrameRange === 'number') {
if (newFrameRange < 0) {
(0, exports.setFrameRange)([0, Math.abs(newFrameRange)]);
return;
}
(0, exports.setFrameRange)(newFrameRange);
range = newFrameRange;
return;
}
if (typeof newFrameRange === 'string') {
if (newFrameRange.trim() === '') {
throw new Error('--frames flag must be a single number, or 2 numbers separated by `-`');
}
const parts = newFrameRange.split('-');
if (parts.length > 2 || parts.length <= 0) {
throw new Error(`--frames flag must be a number or 2 numbers separated by '-', instead got ${parts.length} numbers`);
}
if (parts.length === 1) {
const value = Number(parts[0]);
if (isNaN(value)) {
throw new Error('--frames flag must be a single number, or 2 numbers separated by `-`');
}
(0, exports.setFrameRange)(value);
return;
}
const [firstPart, secondPart] = parts;
if (secondPart === '' && firstPart !== '') {
const start = Number(firstPart);
if (isNaN(start)) {
throw new Error('--frames flag must be a single number, or 2 numbers separated by `-`');
}
(0, exports.setFrameRange)([start, null]);
return;
}
const parsed = parts.map((f) => Number(f));
const [first, second] = parsed;
for (const value of parsed) {
if (isNaN(value)) {
throw new Error('--frames flag must be a single number, or 2 numbers separated by `-`');
}
}
if (second < first) {
throw new Error('The second number of the --frames flag number should be greater or equal than first number');
}
(0, exports.setFrameRange)([first, second]);
}
};
exports.setFrameRangeFromCli = setFrameRangeFromCli;
const getRange = () => range;
exports.getRange = getRange;
@@ -0,0 +1,2 @@
export declare const overrideHeight: (newHeight: number) => void;
export declare const getHeight: () => number | null;
@@ -0,0 +1,14 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getHeight = exports.overrideHeight = void 0;
const validate_1 = require("../validate");
let specifiedHeight;
const overrideHeight = (newHeight) => {
(0, validate_1.validateDimension)(newHeight, 'height', 'passed to `overrideHeight()`');
specifiedHeight = newHeight;
};
exports.overrideHeight = overrideHeight;
const getHeight = () => {
return specifiedHeight;
};
exports.getHeight = getHeight;
@@ -0,0 +1,5 @@
import type { StillImageFormat, VideoImageFormat } from '@remotion/renderer';
export declare const setStillImageFormat: (format: StillImageFormat) => void;
export declare const setVideoImageFormat: (format: VideoImageFormat) => void;
export declare const getUserPreferredStillImageFormat: () => "png" | "jpeg" | "pdf" | "webp" | undefined;
export declare const getUserPreferredVideoImageFormat: () => "png" | "jpeg" | "none" | undefined;
@@ -0,0 +1,49 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getUserPreferredVideoImageFormat = exports.getUserPreferredStillImageFormat = exports.setVideoImageFormat = exports.setStillImageFormat = void 0;
const renderer_1 = require("@remotion/renderer");
const truthy_1 = require("../truthy");
let currentStillImageFormat;
let currentVideoImageFormat;
const setStillImageFormat = (format) => {
if (typeof format === 'undefined') {
currentStillImageFormat = undefined;
return;
}
if (!renderer_1.RenderInternals.validStillImageFormats.includes(format)) {
throw new TypeError([
`Value ${format} is not valid as an image format.`,
// @ts-expect-error
format === 'jpg' ? 'Did you mean "jpeg"?' : null,
]
.filter(truthy_1.truthy)
.join(' '));
}
currentStillImageFormat = format;
};
exports.setStillImageFormat = setStillImageFormat;
const setVideoImageFormat = (format) => {
if (typeof format === 'undefined') {
currentVideoImageFormat = undefined;
return;
}
if (!renderer_1.RenderInternals.validVideoImageFormats.includes(format)) {
throw new TypeError([
`Value ${format} is not valid as a video image format.`,
// @ts-expect-error
format === 'jpg' ? 'Did you mean "jpeg"?' : null,
]
.filter(truthy_1.truthy)
.join(' '));
}
currentVideoImageFormat = format;
};
exports.setVideoImageFormat = setVideoImageFormat;
const getUserPreferredStillImageFormat = () => {
return currentStillImageFormat;
};
exports.getUserPreferredStillImageFormat = getUserPreferredStillImageFormat;
const getUserPreferredVideoImageFormat = () => {
return currentVideoImageFormat;
};
exports.getUserPreferredVideoImageFormat = getUserPreferredVideoImageFormat;
@@ -0,0 +1,3 @@
import type { FrameRange } from '@remotion/renderer';
export declare const setImageSequence: (newImageSequence: boolean) => void;
export declare const getShouldOutputImageSequence: (frameRange: FrameRange | null) => boolean;
@@ -0,0 +1,15 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getShouldOutputImageSequence = exports.setImageSequence = void 0;
let imageSequence = false;
const setImageSequence = (newImageSequence) => {
if (typeof newImageSequence !== 'boolean') {
throw new TypeError('setImageSequence accepts a Boolean Value');
}
imageSequence = newImageSequence;
};
exports.setImageSequence = setImageSequence;
const getShouldOutputImageSequence = (frameRange) => {
return imageSequence || typeof frameRange === 'number';
};
exports.getShouldOutputImageSequence = getShouldOutputImageSequence;
@@ -0,0 +1,445 @@
import type { WebpackConfiguration } from '@remotion/bundler';
import type { BrowserExecutable, ChromeMode, CodecOrUndefined, ColorSpace, Crf, DeleteAfter, FrameRange, NumberOfGifLoops, StillImageFormat, VideoImageFormat } from '@remotion/renderer';
import type { HardwareAccelerationOption } from '@remotion/renderer/client';
import type { Concurrency } from './concurrency';
import type { WebpackOverrideFn } from './override-webpack';
export type { Concurrency, WebpackConfiguration, WebpackOverrideFn };
declare global {
interface RemotionBundlingOptions {
/**
* Specify the entry point so you don't have to specify it in the
* CLI command
*/
readonly setEntryPoint: (src: string) => void;
/**
* Whether Webpack bundles should be cached to make
* subsequent renders faster. Default: true
*/
readonly setCachingEnabled: (flag: boolean) => void;
/**
* @deprecated
* Use `setStudioPort()` and `setRendererPort()` instead.
*/
readonly setPort: (port: number | undefined) => void;
/**
* Set the HTTP port used by the Studio.
* By default, Remotion will try to find a free port.
* If you specify a port, but it's not available, Remotion will throw an error.
*/
readonly setStudioPort: (port: number | undefined) => void;
/**
* Set the HTTP port used to host the Webpack bundle.
* By default, Remotion will try to find a free port.
* If you specify a port, but it's not available, Remotion will throw an error.
*/
readonly setRendererPort: (port: number | undefined) => void;
/**
* Define the location of the public/ directory.
* By default it is a folder named "public" inside the current working directory.
* You can set an absolute path or a relative path that will be resolved from the closest package.json location.
*/
readonly setPublicDir: (publicDir: string | null) => void;
readonly overrideWebpackConfig: (f: WebpackOverrideFn) => void;
}
interface RemotionConfigObject {
/**
* Change the maximum amount of tracks that are shown in the timeline.
* @param maxTracks The maximum amount of timeline tracks that you would like to show.
* @default 15
*/
readonly setMaxTimelineTracks: (maxTracks: number) => void;
/**
* Enable Keyboard shortcuts in the Remotion Studio.
* @param enabled Boolean whether to enable the keyboard shortcuts
* @default true
*/
readonly setKeyboardShortcutsEnabled: (enableShortcuts: boolean) => void;
/**
* Enable WIP client-side rendering in the Remotion Studio.
* See https://www.remotion.dev/docs/client-side-rendering/ for notes.
* @param enabled Boolean whether to enable client-side rendering
* @default false
*/
readonly setExperimentalClientSideRenderingEnabled: (enabled: boolean) => void;
/**
* Set number of shared audio tags. https://www.remotion.dev/docs/player/autoplay#using-the-numberofsharedaudiotags-prop
* @param numberOfAudioTags
* @default 0
*/
readonly setNumberOfSharedAudioTags: (numberOfAudioTags: number) => void;
/**
* Enable Webpack polling instead of file system listeners for hot reloading in the Studio.
* This is useful if you are using a remote directory or a virtual machine.
* @param interval
* @default null
*/
readonly setWebpackPollingInMilliseconds: (interval: number | null) => void;
/**
* Whether Remotion should open a browser when starting the Studio.
* @param should
* @default true
*/
readonly setShouldOpenBrowser: (should: boolean) => void;
/**
* Set the log level.
* Acceptable values: 'error' | 'warning' | 'info' | 'verbose' | 'trace'
* Default value: 'info'
*
* Set this to 'verbose' to get browser logs and other IO.
*/
readonly setLevel: (newLogLevel: 'trace' | 'verbose' | 'info' | 'warn' | 'error') => void;
/**
* Specify executable path for the browser to use.
* Default: null, which will make Remotion find or download a version of said browser.
*/
readonly setBrowserExecutable: (newBrowserExecutablePath: BrowserExecutable) => void;
/**
* Set how many milliseconds a frame may take to render before it times out.
* Default: `30000`
*/
readonly setDelayRenderTimeoutInMilliseconds: (newPuppeteerTimeout: number) => void;
/**
* @deprecated Renamed to `setDelayRenderTimeoutInMilliseconds`.
* Set how many milliseconds a frame may take to render before it times out.
* Default: `30000`
*/
readonly setTimeoutInMilliseconds: (newPuppeteerTimeout: number) => void;
/**
* Setting deciding whether to disable CORS and other Chrome security features.
* Default: false
*/
readonly setChromiumDisableWebSecurity: (should: boolean) => void;
/**
* Setting whether to ignore any invalid SSL certificates, such as self-signed ones.
* Default: false
*/
readonly setChromiumIgnoreCertificateErrors: (should: boolean) => void;
/**
* If false, will open an actual browser during rendering to observe progress.
* Default: true
*/
readonly setChromiumHeadlessMode: (should: boolean) => void;
/**
* Set whether to use dark mode for Chrome.
* Default: false
*/
readonly setChromiumDarkMode: (should: boolean) => void;
/**
* Set the OpenGL rendering backend for Chrome. Possible values: 'egl', 'angle', 'swiftshader', 'swangle', 'vulkan' and 'angle-egl'.
* Default: 'swangle' in Lambda, null elsewhere.
*/
readonly setChromiumOpenGlRenderer: (renderer: 'swangle' | 'angle' | 'egl' | 'swiftshader' | 'vulkan' | 'angle-egl') => void;
/**
* Set the user agent for Chrome. Only works during rendering.
* Default is the default user agent for Chrome
*/
readonly setChromiumUserAgent: (userAgent: string | null) => void;
/**
* Set a custom location for a .env file.
* Default: `.env`
*/
readonly setDotEnvLocation: (file: string) => void;
/**
* Sets how many Puppeteer instances will work on rendering your video in parallel.
* Default: `null`, meaning half of the threads available on your CPU.
*/
readonly setConcurrency: (newConcurrency: Concurrency) => void;
/**
* @deprecated Renamed to `setJpegQuality`.
*/
readonly setQuality: (q: never) => void;
/**
* @deprecated Separated into `setStillImageFormat()` and `setVideoImageFormat()`.
*/
readonly setImageFormat: (q: never) => void;
/**
* Set the JPEG quality for the frames.
* Must be between 0 and 100.
* Default: 80
*/
readonly setJpegQuality: (q: number | undefined) => void;
/** Decide the image format for still renders.
*/
readonly setStillImageFormat: (format: StillImageFormat) => void;
/** Decide in which image format to render. Can be either 'jpeg' or 'png'.
* PNG is slower, but supports transparency.
*/
readonly setVideoImageFormat: (format: VideoImageFormat) => void;
/**
* Render only a subset of a video.
* Pass in a tuple [20, 30] to only render frames 20-30 into a video.
* Pass in a single number `20` to only render a single frame as an image.
* The frame count starts at 0.
*/
readonly setFrameRange: (newFrameRange: FrameRange | null) => void;
/**
* Scales the output dimensions by a factor.
* Default: 1.
*/
readonly setScale: (newScale: number) => void;
/**
* Specify which frames should be picked for rendering a GIF
* Default: 1, which means every frame
* https://remotion.dev/docs/render-as-gif
*/
readonly setEveryNthFrame: (frame: number) => void;
/**
* Specify the number of Loop a GIF should have.
* Default: null (means GIF will loop infinite)
*/
readonly setNumberOfGifLoops: (newLoop: NumberOfGifLoops) => void;
/**
* Disable audio output.
* Default: false
*/
readonly setMuted: (muted: boolean) => void;
/**
* Don't render an audio track if it would be silent.
* Default: true
*/
readonly setEnforceAudioTrack: (enforceAudioTrack: boolean) => void;
/**
* Prepare a video for later seamless audio concatenation.
* Default: false
*/
readonly setForSeamlessAacConcatenation: (forSeamlessAacConcatenation: boolean) => void;
/**
* Set the output file location string. Default: `out/{composition}.{codec}`
*/
readonly setOutputLocation: (newOutputLocation: string) => void;
/**
* If the video file already exists, should Remotion overwrite
* the output? Default: true
*/
readonly setOverwriteOutput: (newOverwrite: boolean) => void;
/**
* Sets the pixel format in FFmpeg.
* See https://trac.ffmpeg.org/wiki/Chroma%20Subsampling for an explanation.
* You can override this using the `--pixel-format` Cli flag.
*/
readonly setPixelFormat: (format: 'yuv420p' | 'yuva420p' | 'yuv422p' | 'yuv444p' | 'yuv420p10le' | 'yuv422p10le' | 'yuv444p10le' | 'yuva444p10le') => void;
/**
* Specify the codec for stitching the frames into a video.
* Can be `h264` (default), `h265`, `vp8` or `vp9`
*/
readonly setCodec: (newCodec: CodecOrUndefined) => void;
/**
* Set the Constant Rate Factor to pass to FFmpeg.
* Lower values mean better quality, but be aware that the ranges of
* possible values greatly differs between codecs.
*/
readonly setCrf: (newCrf: Crf) => void;
/**
* Set to true if don't want a video but an image sequence as the output.
*/
readonly setImageSequence: (newImageSequence: boolean) => void;
/**
* Overrides the height of a composition
*/
readonly overrideHeight: (newHeight: number) => void;
/**
* Overrides the width of a composition
*/
readonly overrideWidth: (newWidth: number) => void;
/**
* Set the ProRes profile.
* This method is only valid if the codec has been set to 'prores'.
* Possible values: 4444-xq, 4444, hq, standard, light, proxy. Default: 'hq'
* See https://avpres.net/FFmpeg/im_ProRes.html for meaning of possible values.
*/
readonly setProResProfile: (profile: '4444-xq' | '4444' | 'hq' | 'standard' | 'light' | 'proxy' | undefined) => void;
readonly setX264Preset: (profile: 'ultrafast' | 'superfast' | 'veryfast' | 'faster' | 'fast' | 'medium' | 'slow' | 'slower' | 'veryslow' | 'placebo' | null) => void;
/**
* Override the arguments that Remotion passes to FFmpeg.
* Consult https://remotion.dev/docs/renderer/render-media#ffmpegoverride before using this feature.
*/
readonly overrideFfmpegCommand: (command: (info: {
type: 'pre-stitcher' | 'stitcher';
args: string[];
}) => string[]) => void;
/**
* Set a target audio bitrate to be passed to FFmpeg.
*/
readonly setAudioBitrate: (bitrate: string | null) => void;
/**
* Set a target video bitrate to be passed to FFmpeg.
* Mutually exclusive with setCrf().
*/
readonly setVideoBitrate: (bitrate: string | null) => void;
/**
* Set the audio latency hint that the Studio will
* use when playing back audio
* Default: 'interactive'
*/
readonly setAudioLatencyHint: (audioLatencyHint: AudioContextLatencyCategory | null) => void;
/**
* Set a maximum bitrate to be passed to FFmpeg.
*/
readonly setEncodingMaxRate: (bitrate: string | null) => void;
/**
* Set a buffer size to be passed to FFmpeg.
*/
readonly setEncodingBufferSize: (bitrate: string | null) => void;
/**
* Opt into bt709 rendering.
*/
readonly setColorSpace: (colorSpace: ColorSpace) => void;
/**
* Disallows the renderer from doing rendering frames and encoding at the same time.
* This makes the rendering process more memory-efficient, but possibly slower.
* Default: false
*/
readonly setDisallowParallelEncoding: (disallowParallelEncoding: boolean) => void;
/**
* Enables or disables the Ask AI Modal in Studio
*/
readonly setAskAIEnabled: (askAIEnabled: boolean) => void;
/**
* Removes the --single-process flag that gets passed to
Chromium on Linux by default. This will make the render faster because
multiple processes can be used, but may cause issues with some Linux
distributions or if window server libraries are missing.
*/
readonly setChromiumMultiProcessOnLinux: (multiProcessOnLinux: boolean) => void;
/**
* Whether the Remotion Studio should play a beep sound when a render has finished.
*/
readonly setBeepOnFinish: (beepOnFinish: boolean) => void;
/**
* Enable Cross-Site Isolation in the Studio (Sets Cross-Origin-Opener-Policy and Cross-Origin-Embedder-Policy HTTP headers)
*/
readonly setEnableCrossSiteIsolation: (enableCrossSiteIsolation: boolean) => void;
/**
* Collect information that you can submit to Remotion if asked for a reproduction.
*/
readonly setRepro: (enableRepro: boolean) => void;
/**
* The directory where the platform-specific binaries and libraries needed
for Remotion are located.
*/
readonly setBinariesDirectory: (directory: string | null) => void;
/**
* Prefer lossless audio encoding. Default: false
*/
readonly setPreferLosslessAudio: (lossless: boolean) => void;
/**
* Prefer lossless audio encoding. Default: false
*/
readonly setPublicPath: (publicPath: string | null) => void;
/**
* Set the pattern for naming image sequence files. Supports [frame] and [ext] replacements.
* @param pattern The pattern string, e.g. 'frame_[frame].[ext]'.
*/
readonly setImageSequencePattern: (pattern: string | null) => void;
/**
* Set the public license key for your company license.
* Obtain it from the "Usage" tab on https://remotion.pro
* Pass "free-license" if you are eligible for the free license.
*/
readonly setPublicLicenseKey: (key: string | null) => void;
}
}
type FlatConfig = RemotionConfigObject & RemotionBundlingOptions & {
/**
* Set the audio codec to use for the output video.
* See the Encoding guide in the docs for defaults and available options.
*/
setAudioCodec: (codec: 'pcm-16' | 'aac' | 'mp3' | 'opus') => void;
setOffthreadVideoCacheSizeInBytes: (size: number | null) => void;
/**
* Forces starting a new Studio instance even if one is already running on the same port for the same project.
* Default: false
*/
setForceNewStudioEnabled: (forceNew: boolean) => void;
setDeleteAfter: (day: DeleteAfter | null) => void;
/**
* Set whether S3 buckets should be allowed to expire.
*/
setEnableFolderExpiry: (value: boolean | null) => void;
/**
* Set whether Lambda Insights should be enabled when deploying a function.
*/
setLambdaInsights: (value: boolean) => void;
/**
* Set the amount of milliseconds after which the Player in the Studio will display a buffering UI after the Player has entered a buffer state.
*/
setBufferStateDelayInMilliseconds: (delay: number | null) => void;
/**
* Metadata to be embedded into the output video file.
*/
setMetadata: (metadata: Record<string, string>) => void;
/**
*
*/
setHardwareAcceleration: (hardwareAccelerationOption: HardwareAccelerationOption) => void;
/**
* Forces Remotion to bind to an IPv4 interface for the Studio server.
* Default: false
*/
setIPv4: (ipv4: boolean) => void;
/**
* Choose between using Chrome Headless Shell or Chrome for Testing
*/
setChromeMode: (chromeMode: ChromeMode) => void;
/**
* @deprecated 'The config format has changed. Change `Config.Bundling.*()` calls to `Config.*()` in your config file.'
*/
Bundling: void;
/**
* @deprecated 'The config format has changed. Change `Config.Preview.*()` calls to `Config.*()` in your config file.'
*/
Preview: void;
/**
* @deprecated 'The config format has changed. Change `Config.Log.*()` calls to `Config.*()` in your config file.'
*/
Log: void;
/**
* @deprecated 'The config format has changed. Change `Config.Puppeteer.*()` calls to `Config.*()` in your config file.'
*/
Puppeteer: void;
/**
* @deprecated 'The config format has changed. Change `Config.Rendering.*()` calls to `Config.*()` in your config file.'
*/
Rendering: void;
/**
* @deprecated 'The config format has changed. Change `Config.Output.*()` calls to `Config.*()` in your config file.'
*/
Output: void;
};
export declare const Config: FlatConfig;
export declare const ConfigInternals: {
getRange: () => FrameRange | null;
getBrowser: () => null;
getPixelFormat: () => "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
getProResProfile: () => import("remotion")._InternalTypes["ProResProfile"] | undefined;
getBrowserExecutable: () => BrowserExecutable;
getStudioPort: () => number | undefined;
getRendererPortFromConfigFile: () => number | null;
getRendererPortFromConfigFileAndCliFlag: () => number | null;
getChromiumDisableWebSecurity: () => boolean;
getIgnoreCertificateErrors: () => boolean;
getEveryNthFrame: () => number;
getConcurrency: () => string | number | null;
getStillFrame: () => number;
getShouldOutputImageSequence: (frameRange: FrameRange | null) => boolean;
getDotEnvLocation: () => string | null;
getUserPreferredStillImageFormat: () => "png" | "jpeg" | "pdf" | "webp" | undefined;
getUserPreferredVideoImageFormat: () => "png" | "jpeg" | "none" | undefined;
getWebpackOverrideFn: () => WebpackOverrideFn;
getWebpackCaching: () => boolean;
getOutputLocation: () => string | null;
setFrameRangeFromCli: (newFrameRange: string | number) => void;
setStillFrame: (frame: number) => void;
getMaxTimelineTracks: () => number;
defaultOverrideFunction: WebpackOverrideFn;
getFfmpegOverrideFunction: () => import("@remotion/renderer").FfmpegOverrideFn;
getHeight: () => number | null;
getWidth: () => number | null;
getMetadata: () => Record<string, string>;
getEntryPoint: () => string | null;
getWebpackPolling: () => number | null;
getShouldOpenBrowser: () => boolean;
getChromiumUserAgent: () => string | null;
getBufferStateDelayInMilliseconds: () => number | null;
getOutputCodecOrUndefined: () => import("@remotion/renderer/dist/codec").CodecOrUndefined;
};
@@ -0,0 +1,181 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ConfigInternals = exports.Config = void 0;
const browser_1 = require("./browser");
const browser_executable_1 = require("./browser-executable");
const chromium_flags_1 = require("./chromium-flags");
const concurrency_1 = require("./concurrency");
const env_file_1 = require("./env-file");
const frame_range_1 = require("./frame-range");
const image_format_1 = require("./image-format");
const image_sequence_1 = require("./image-sequence");
const output_location_1 = require("./output-location");
const override_webpack_1 = require("./override-webpack");
const pixel_format_1 = require("./pixel-format");
const preview_server_1 = require("./preview-server");
const prores_profile_1 = require("./prores-profile");
const still_frame_1 = require("./still-frame");
const webpack_caching_1 = require("./webpack-caching");
const client_1 = require("@remotion/renderer/client");
const studio_server_1 = require("@remotion/studio-server");
const browser_executable_2 = require("./browser-executable");
const buffer_state_delay_in_milliseconds_1 = require("./buffer-state-delay-in-milliseconds");
const chromium_flags_2 = require("./chromium-flags");
const concurrency_2 = require("./concurrency");
const entry_point_1 = require("./entry-point");
const env_file_2 = require("./env-file");
const every_nth_frame_1 = require("./every-nth-frame");
const ffmpeg_override_1 = require("./ffmpeg-override");
const frame_range_2 = require("./frame-range");
const height_1 = require("./height");
const image_sequence_2 = require("./image-sequence");
const metadata_1 = require("./metadata");
const open_browser_1 = require("./open-browser");
const output_location_2 = require("./output-location");
const override_webpack_2 = require("./override-webpack");
const pixel_format_2 = require("./pixel-format");
const preview_server_2 = require("./preview-server");
const prores_profile_2 = require("./prores-profile");
const user_agent_1 = require("./user-agent");
const webpack_caching_2 = require("./webpack-caching");
const webpack_poll_1 = require("./webpack-poll");
const width_1 = require("./width");
const { offthreadVideoCacheSizeInBytesOption, x264Option, audioBitrateOption, videoBitrateOption, scaleOption, crfOption, jpegQualityOption, enforceAudioOption, overwriteOption, chromeModeOption, mutedOption, videoCodecOption, colorSpaceOption, disallowParallelEncodingOption, deleteAfterOption, folderExpiryOption, enableMultiprocessOnLinuxOption, glOption, headlessOption, numberOfGifLoopsOption, beepOnFinishOption, encodingMaxRateOption, encodingBufferSizeOption, reproOption, enableLambdaInsights, logLevelOption, delayRenderTimeoutInMillisecondsOption, publicDirOption, binariesDirectoryOption, preferLosslessOption, forSeamlessAacConcatenationOption, audioCodecOption, publicPathOption, hardwareAccelerationOption, audioLatencyHintOption, enableCrossSiteIsolationOption, imageSequencePatternOption, darkModeOption, askAIOption, publicLicenseKeyOption, experimentalClientSideRenderingOption, keyboardShortcutsOption, forceNewStudioOption, numberOfSharedAudioTagsOption, ipv4Option, } = client_1.BrowserSafeApis.options;
exports.Config = {
get Bundling() {
throw new Error('The config format has changed. Change `Config.Bundling.*()` calls to `Config.*()` in your config file.');
},
get Rendering() {
throw new Error('The config format has changed. Change `Config.Rendering.*()` calls to `Config.*()` in your config file.');
},
get Output() {
throw new Error('The config format has changed. Change `Config.Output.*()` calls to `Config.*()` in your config file.');
},
get Log() {
throw new Error('The config format has changed. Change `Config.Log.*()` calls to `Config.*()` in your config file.');
},
get Preview() {
throw new Error('The config format has changed. Change `Config.Preview.*()` calls to `Config.*()` in your config file.');
},
get Puppeteer() {
throw new Error('The config format has changed. Change `Config.Puppeteer.*()` calls to `Config.*()` in your config file.');
},
setMaxTimelineTracks: studio_server_1.StudioServerInternals.setMaxTimelineTracks,
setKeyboardShortcutsEnabled: keyboardShortcutsOption.setConfig,
setExperimentalClientSideRenderingEnabled: experimentalClientSideRenderingOption.setConfig,
setNumberOfSharedAudioTags: numberOfSharedAudioTagsOption.setConfig,
setWebpackPollingInMilliseconds: webpack_poll_1.setWebpackPollingInMilliseconds,
setShouldOpenBrowser: open_browser_1.setShouldOpenBrowser,
setBufferStateDelayInMilliseconds: buffer_state_delay_in_milliseconds_1.setBufferStateDelayInMilliseconds,
overrideWebpackConfig: override_webpack_2.overrideWebpackConfig,
setCachingEnabled: webpack_caching_2.setWebpackCaching,
setPort: preview_server_2.setPort,
setStudioPort: preview_server_2.setStudioPort,
setRendererPort: preview_server_2.setRendererPort,
setPublicDir: publicDirOption.setConfig,
setEntryPoint: entry_point_1.setEntryPoint,
setLevel: logLevelOption.setConfig,
setBrowserExecutable: browser_executable_2.setBrowserExecutable,
setTimeoutInMilliseconds: delayRenderTimeoutInMillisecondsOption.setConfig,
setDelayRenderTimeoutInMilliseconds: delayRenderTimeoutInMillisecondsOption.setConfig,
setChromiumDisableWebSecurity: chromium_flags_2.setChromiumDisableWebSecurity,
setChromiumIgnoreCertificateErrors: chromium_flags_2.setChromiumIgnoreCertificateErrors,
setChromiumHeadlessMode: headlessOption.setConfig,
setChromiumOpenGlRenderer: glOption.setConfig,
setChromiumUserAgent: user_agent_1.setChromiumUserAgent,
setDotEnvLocation: env_file_2.setDotEnvLocation,
setConcurrency: concurrency_2.setConcurrency,
setChromiumMultiProcessOnLinux: enableMultiprocessOnLinuxOption.setConfig,
setChromiumDarkMode: darkModeOption.setConfig,
setQuality: () => {
throw new Error('setQuality() has been renamed - use setJpegQuality() instead.');
},
setImageFormat: () => {
throw new Error('Config.setImageFormat() has been renamed - use Config.setVideoImageFormat() instead (default "jpeg"). For rendering stills, use Config.setStillImageFormat() (default "png")');
},
setJpegQuality: jpegQualityOption.setConfig,
setStillImageFormat: image_format_1.setStillImageFormat,
setVideoImageFormat: image_format_1.setVideoImageFormat,
setMetadata: metadata_1.setMetadata,
setEncodingMaxRate: encodingMaxRateOption.setConfig,
setEncodingBufferSize: encodingBufferSizeOption.setConfig,
setFrameRange: frame_range_2.setFrameRange,
setScale: scaleOption.setConfig,
setEveryNthFrame: every_nth_frame_1.setEveryNthFrame,
setNumberOfGifLoops: numberOfGifLoopsOption.setConfig,
setMuted: mutedOption.setConfig,
setEnforceAudioTrack: enforceAudioOption.setConfig,
setOutputLocation: output_location_2.setOutputLocation,
setOverwriteOutput: overwriteOption.setConfig,
setChromeMode: chromeModeOption.setConfig,
setPixelFormat: pixel_format_2.setPixelFormat,
setCodec: videoCodecOption.setConfig,
setCrf: crfOption.setConfig,
setImageSequence: image_sequence_2.setImageSequence,
setProResProfile: prores_profile_2.setProResProfile,
setX264Preset: x264Option.setConfig,
setAudioBitrate: audioBitrateOption.setConfig,
setVideoBitrate: videoBitrateOption.setConfig,
setAudioLatencyHint: audioLatencyHintOption.setConfig,
setForSeamlessAacConcatenation: forSeamlessAacConcatenationOption.setConfig,
overrideHeight: height_1.overrideHeight,
overrideWidth: width_1.overrideWidth,
overrideFfmpegCommand: ffmpeg_override_1.setFfmpegOverrideFunction,
setAudioCodec: audioCodecOption.setConfig,
setOffthreadVideoCacheSizeInBytes: (size) => {
offthreadVideoCacheSizeInBytesOption.setConfig(size);
},
setDeleteAfter: deleteAfterOption.setConfig,
setColorSpace: colorSpaceOption.setConfig,
setDisallowParallelEncoding: disallowParallelEncodingOption.setConfig,
setBeepOnFinish: beepOnFinishOption.setConfig,
setEnableFolderExpiry: folderExpiryOption.setConfig,
setRepro: reproOption.setConfig,
setLambdaInsights: enableLambdaInsights.setConfig,
setBinariesDirectory: binariesDirectoryOption.setConfig,
setPreferLosslessAudio: preferLosslessOption.setConfig,
setPublicPath: publicPathOption.setConfig,
setImageSequencePattern: imageSequencePatternOption.setConfig,
setHardwareAcceleration: hardwareAccelerationOption.setConfig,
setEnableCrossSiteIsolation: enableCrossSiteIsolationOption.setConfig,
setAskAIEnabled: askAIOption.setConfig,
setPublicLicenseKey: publicLicenseKeyOption.setConfig,
setForceNewStudioEnabled: forceNewStudioOption.setConfig,
setIPv4: ipv4Option.setConfig,
};
exports.ConfigInternals = {
getRange: frame_range_1.getRange,
getBrowser: browser_1.getBrowser,
getPixelFormat: pixel_format_1.getPixelFormat,
getProResProfile: prores_profile_1.getProResProfile,
getBrowserExecutable: browser_executable_1.getBrowserExecutable,
getStudioPort: preview_server_1.getStudioPort,
getRendererPortFromConfigFile: preview_server_1.getRendererPortFromConfigFile,
getRendererPortFromConfigFileAndCliFlag: preview_server_1.getRendererPortFromConfigFileAndCliFlag,
getChromiumDisableWebSecurity: chromium_flags_1.getChromiumDisableWebSecurity,
getIgnoreCertificateErrors: chromium_flags_1.getIgnoreCertificateErrors,
getEveryNthFrame: every_nth_frame_1.getEveryNthFrame,
getConcurrency: concurrency_1.getConcurrency,
getStillFrame: still_frame_1.getStillFrame,
getShouldOutputImageSequence: image_sequence_1.getShouldOutputImageSequence,
getDotEnvLocation: env_file_1.getDotEnvLocation,
getUserPreferredStillImageFormat: image_format_1.getUserPreferredStillImageFormat,
getUserPreferredVideoImageFormat: image_format_1.getUserPreferredVideoImageFormat,
getWebpackOverrideFn: override_webpack_1.getWebpackOverrideFn,
getWebpackCaching: webpack_caching_1.getWebpackCaching,
getOutputLocation: output_location_1.getOutputLocation,
setFrameRangeFromCli: frame_range_1.setFrameRangeFromCli,
setStillFrame: still_frame_1.setStillFrame,
getMaxTimelineTracks: studio_server_1.StudioServerInternals.getMaxTimelineTracks,
defaultOverrideFunction: override_webpack_1.defaultOverrideFunction,
getFfmpegOverrideFunction: ffmpeg_override_1.getFfmpegOverrideFunction,
getHeight: height_1.getHeight,
getWidth: width_1.getWidth,
getMetadata: metadata_1.getMetadata,
getEntryPoint: entry_point_1.getEntryPoint,
getWebpackPolling: webpack_poll_1.getWebpackPolling,
getShouldOpenBrowser: open_browser_1.getShouldOpenBrowser,
getChromiumUserAgent: user_agent_1.getChromiumUserAgent,
getBufferStateDelayInMilliseconds: buffer_state_delay_in_milliseconds_1.getBufferStateDelayInMilliseconds,
getOutputCodecOrUndefined: client_1.BrowserSafeApis.getOutputCodecOrUndefined,
};
@@ -0,0 +1,2 @@
export declare const setMetadata: (metadata: Record<string, string>) => void;
export declare const getMetadata: () => Record<string, string>;
@@ -0,0 +1,12 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getMetadata = exports.setMetadata = void 0;
let specifiedMetadata;
const setMetadata = (metadata) => {
specifiedMetadata = metadata;
};
exports.setMetadata = setMetadata;
const getMetadata = () => {
return specifiedMetadata;
};
exports.getMetadata = getMetadata;
@@ -0,0 +1,2 @@
export declare const getNumberOfSharedAudioTags: () => number;
export declare const setNumberOfSharedAudioTags: (audioTags: number) => void;
@@ -0,0 +1,12 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.setNumberOfSharedAudioTags = exports.getNumberOfSharedAudioTags = void 0;
let numberOfSharedAudioTags = 0;
const getNumberOfSharedAudioTags = () => {
return numberOfSharedAudioTags;
};
exports.getNumberOfSharedAudioTags = getNumberOfSharedAudioTags;
const setNumberOfSharedAudioTags = (audioTags) => {
numberOfSharedAudioTags = audioTags;
};
exports.setNumberOfSharedAudioTags = setNumberOfSharedAudioTags;
@@ -0,0 +1,2 @@
export declare const setShouldOpenBrowser: (_should: boolean) => void;
export declare const getShouldOpenBrowser: () => boolean;
@@ -0,0 +1,15 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getShouldOpenBrowser = exports.setShouldOpenBrowser = void 0;
let should = true;
const setShouldOpenBrowser = (_should) => {
if (typeof _should !== 'boolean') {
throw new TypeError(`Expected a boolean, got ${typeof _should} (${should})`);
}
should = _should;
};
exports.setShouldOpenBrowser = setShouldOpenBrowser;
const getShouldOpenBrowser = () => {
return should;
};
exports.getShouldOpenBrowser = getShouldOpenBrowser;
@@ -0,0 +1,2 @@
export declare const setOutputLocation: (newOutputLocation: string) => void;
export declare const getOutputLocation: () => string | null;
@@ -0,0 +1,16 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getOutputLocation = exports.setOutputLocation = void 0;
let currentOutputLocation = null;
const setOutputLocation = (newOutputLocation) => {
if (typeof newOutputLocation !== 'string') {
throw new Error(`outputLocation must be a string but got ${typeof newOutputLocation} (${JSON.stringify(newOutputLocation)})`);
}
if (newOutputLocation.trim() === '') {
throw new Error(`outputLocation must not be an empty string`);
}
currentOutputLocation = newOutputLocation;
};
exports.setOutputLocation = setOutputLocation;
const getOutputLocation = () => currentOutputLocation;
exports.getOutputLocation = getOutputLocation;
@@ -0,0 +1,5 @@
import type { WebpackConfiguration } from '@remotion/bundler';
export type WebpackOverrideFn = (currentConfiguration: WebpackConfiguration) => WebpackConfiguration | Promise<WebpackConfiguration>;
export declare const defaultOverrideFunction: WebpackOverrideFn;
export declare const getWebpackOverrideFn: () => WebpackOverrideFn;
export declare const overrideWebpackConfig: (fn: WebpackOverrideFn) => void;
@@ -0,0 +1,15 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.overrideWebpackConfig = exports.getWebpackOverrideFn = exports.defaultOverrideFunction = void 0;
const defaultOverrideFunction = (config) => config;
exports.defaultOverrideFunction = defaultOverrideFunction;
let overrideFn = exports.defaultOverrideFunction;
const getWebpackOverrideFn = () => {
return overrideFn;
};
exports.getWebpackOverrideFn = getWebpackOverrideFn;
const overrideWebpackConfig = (fn) => {
const prevOverride = overrideFn;
overrideFn = async (c) => fn(await prevOverride(c));
};
exports.overrideWebpackConfig = overrideWebpackConfig;
@@ -0,0 +1,3 @@
import type { PixelFormat } from '@remotion/renderer';
export declare const setPixelFormat: (format: PixelFormat) => void;
export declare const getPixelFormat: () => "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
@@ -0,0 +1,16 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getPixelFormat = exports.setPixelFormat = void 0;
const renderer_1 = require("@remotion/renderer");
let currentPixelFormat = renderer_1.RenderInternals.DEFAULT_PIXEL_FORMAT;
const setPixelFormat = (format) => {
if (!renderer_1.RenderInternals.validPixelFormats.includes(format)) {
throw new TypeError(`Value ${format} is not valid as a pixel format.`);
}
currentPixelFormat = format;
};
exports.setPixelFormat = setPixelFormat;
const getPixelFormat = () => {
return currentPixelFormat;
};
exports.getPixelFormat = getPixelFormat;
@@ -0,0 +1,12 @@
/**
*
* @param port
* @deprecated Use the `setStudioPort` and `setRendererPort` functions instead
* @returns
*/
export declare const setPort: (port: number | undefined) => void;
export declare const setStudioPort: (port: number | undefined) => void;
export declare const setRendererPort: (port: number | undefined) => void;
export declare const getStudioPort: () => number | undefined;
export declare const getRendererPortFromConfigFile: () => number | null;
export declare const getRendererPortFromConfigFileAndCliFlag: () => number | null;
@@ -0,0 +1,49 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getRendererPortFromConfigFileAndCliFlag = exports.getRendererPortFromConfigFile = exports.getStudioPort = exports.setRendererPort = exports.setStudioPort = exports.setPort = void 0;
const parsed_cli_1 = require("../parsed-cli");
let studioPort;
let rendererPort;
const validatePort = (port) => {
if (!['number', 'undefined'].includes(typeof port)) {
throw new Error(`Studio server port should be a number. Got ${typeof port} (${JSON.stringify(port)})`);
}
if (port === undefined) {
return;
}
if (port < 1 || port > 65535) {
throw new Error(`Studio server port should be a number between 1 and 65535. Got ${port}`);
}
};
/**
*
* @param port
* @deprecated Use the `setStudioPort` and `setRendererPort` functions instead
* @returns
*/
const setPort = (port) => {
(0, exports.setStudioPort)(port);
(0, exports.setRendererPort)(port);
};
exports.setPort = setPort;
const setStudioPort = (port) => {
validatePort(port);
studioPort = port;
};
exports.setStudioPort = setStudioPort;
const setRendererPort = (port) => {
validatePort(port);
rendererPort = port;
};
exports.setRendererPort = setRendererPort;
const getStudioPort = () => studioPort;
exports.getStudioPort = getStudioPort;
const getRendererPortFromConfigFile = () => {
return rendererPort !== null && rendererPort !== void 0 ? rendererPort : null;
};
exports.getRendererPortFromConfigFile = getRendererPortFromConfigFile;
const getRendererPortFromConfigFileAndCliFlag = () => {
var _a, _b;
return (_b = (_a = parsed_cli_1.parsedCli.port) !== null && _a !== void 0 ? _a : rendererPort) !== null && _b !== void 0 ? _b : null;
};
exports.getRendererPortFromConfigFileAndCliFlag = getRendererPortFromConfigFileAndCliFlag;
@@ -0,0 +1,3 @@
import type { _InternalTypes } from 'remotion';
export declare const getProResProfile: () => _InternalTypes["ProResProfile"] | undefined;
export declare const setProResProfile: (profile: _InternalTypes["ProResProfile"] | undefined) => void;
@@ -0,0 +1,12 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.setProResProfile = exports.getProResProfile = void 0;
let proResProfile;
const getProResProfile = () => {
return proResProfile;
};
exports.getProResProfile = getProResProfile;
const setProResProfile = (profile) => {
proResProfile = profile;
};
exports.setProResProfile = setProResProfile;
@@ -0,0 +1,2 @@
export declare const setStillFrame: (frame: number) => void;
export declare const getStillFrame: () => number;
@@ -0,0 +1,16 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getStillFrame = exports.setStillFrame = void 0;
const no_react_1 = require("remotion/no-react");
let stillFrame = 0;
const setStillFrame = (frame) => {
no_react_1.NoReactInternals.validateFrame({
frame,
durationInFrames: Infinity,
allowFloats: false,
});
stillFrame = frame;
};
exports.setStillFrame = setStillFrame;
const getStillFrame = () => stillFrame;
exports.getStillFrame = getStillFrame;
@@ -0,0 +1,4 @@
type UserAgent = string | null;
export declare const setChromiumUserAgent: (newAgent: UserAgent) => void;
export declare const getChromiumUserAgent: () => UserAgent;
export {};
@@ -0,0 +1,12 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getChromiumUserAgent = exports.setChromiumUserAgent = void 0;
let userAgent = null;
const setChromiumUserAgent = (newAgent) => {
userAgent = newAgent;
};
exports.setChromiumUserAgent = setChromiumUserAgent;
const getChromiumUserAgent = () => {
return userAgent;
};
exports.getChromiumUserAgent = getChromiumUserAgent;
@@ -0,0 +1,3 @@
export declare const DEFAULT_WEBPACK_CACHE_ENABLED = true;
export declare const setWebpackCaching: (flag: boolean) => void;
export declare const getWebpackCaching: () => boolean;
@@ -0,0 +1,16 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getWebpackCaching = exports.setWebpackCaching = exports.DEFAULT_WEBPACK_CACHE_ENABLED = void 0;
exports.DEFAULT_WEBPACK_CACHE_ENABLED = true;
let webpackCaching = exports.DEFAULT_WEBPACK_CACHE_ENABLED;
const setWebpackCaching = (flag) => {
if (typeof flag !== 'boolean') {
throw new TypeError('Caching flag must be a boolean.');
}
webpackCaching = flag;
};
exports.setWebpackCaching = setWebpackCaching;
const getWebpackCaching = () => {
return webpackCaching;
};
exports.getWebpackCaching = getWebpackCaching;
@@ -0,0 +1,2 @@
export declare const setWebpackPollingInMilliseconds: (interval: number | null) => void;
export declare const getWebpackPolling: () => number | null;
@@ -0,0 +1,16 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getWebpackPolling = exports.setWebpackPollingInMilliseconds = void 0;
const DEFAULT_WEBPACK_POLL = null;
let webpackPolling = DEFAULT_WEBPACK_POLL;
const setWebpackPollingInMilliseconds = (interval) => {
if (typeof interval !== 'number' && interval !== null) {
throw new TypeError(`Polling must be a number or null, got ${JSON.stringify(interval)} instead.`);
}
webpackPolling = interval;
};
exports.setWebpackPollingInMilliseconds = setWebpackPollingInMilliseconds;
const getWebpackPolling = () => {
return webpackPolling;
};
exports.getWebpackPolling = getWebpackPolling;
@@ -0,0 +1,2 @@
export declare const overrideWidth: (newWidth: number) => void;
export declare const getWidth: () => number | null;
@@ -0,0 +1,16 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getWidth = exports.overrideWidth = void 0;
const validate_1 = require("../validate");
let passedWidth = null;
const overrideWidth = (newWidth) => {
if (typeof newWidth !== 'number') {
(0, validate_1.validateDimension)(newWidth, 'width', 'passed to `setWidth()`');
}
passedWidth = newWidth;
};
exports.overrideWidth = overrideWidth;
const getWidth = () => {
return passedWidth;
};
exports.getWidth = getWidth;