@remotion/renderer 4.0.513 → 4.0.514
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/client.d.ts +62 -0
- package/dist/compositor/compositor.d.ts +7 -0
- package/dist/compositor/compositor.js +45 -1
- package/dist/ensure-browser.d.ts +2 -0
- package/dist/esm/client.mjs +939 -839
- package/dist/esm/index.mjs +52 -8
- package/dist/index.d.ts +12 -0
- package/dist/offthread-video-server.js +3 -8
- package/dist/options/ask-ai.d.ts +2 -0
- package/dist/options/ask-ai.js +7 -0
- package/dist/options/beep-on-finish.d.ts +2 -0
- package/dist/options/beep-on-finish.js +7 -0
- package/dist/options/cross-site-isolation.d.ts +2 -0
- package/dist/options/cross-site-isolation.js +7 -0
- package/dist/options/index.d.ts +34 -0
- package/dist/options/index.js +2 -0
- package/dist/options/interactivity.d.ts +2 -0
- package/dist/options/interactivity.js +7 -0
- package/dist/options/keyboard-shortcuts.d.ts +2 -0
- package/dist/options/keyboard-shortcuts.js +7 -0
- package/dist/options/latency-hint.d.ts +2 -0
- package/dist/options/latency-hint.js +4 -0
- package/dist/options/log-level.d.ts +2 -0
- package/dist/options/log-level.js +7 -0
- package/dist/options/number-of-shared-audio-tags.d.ts +2 -0
- package/dist/options/number-of-shared-audio-tags.js +7 -0
- package/dist/options/option.d.ts +1 -0
- package/dist/options/options-map.d.ts +28 -0
- package/dist/options/rspack.d.ts +2 -0
- package/dist/options/rspack.js +7 -0
- package/dist/render-frames.js +8 -2
- package/package.json +13 -13
package/dist/client.d.ts
CHANGED
|
@@ -250,6 +250,22 @@ export declare const BrowserSafeApis: {
|
|
|
250
250
|
separateAudioTo: string | null;
|
|
251
251
|
}) => void;
|
|
252
252
|
options: {
|
|
253
|
+
allowHtmlInCanvasOption: {
|
|
254
|
+
name: string;
|
|
255
|
+
cliFlag: "allow-html-in-canvas";
|
|
256
|
+
description: () => import("react/jsx-runtime").JSX.Element;
|
|
257
|
+
ssrName: null;
|
|
258
|
+
docLink: string;
|
|
259
|
+
type: boolean;
|
|
260
|
+
getValue: ({ commandLine }: {
|
|
261
|
+
commandLine: Record<string, unknown>;
|
|
262
|
+
}) => {
|
|
263
|
+
value: boolean;
|
|
264
|
+
source: string;
|
|
265
|
+
};
|
|
266
|
+
setConfig(value: boolean): void;
|
|
267
|
+
id: "allow-html-in-canvas";
|
|
268
|
+
};
|
|
253
269
|
audioCodecOption: {
|
|
254
270
|
cliFlag: "audio-codec";
|
|
255
271
|
setConfig: (audioCodec: "aac" | "mp3" | "opus" | "pcm-16" | null) => void;
|
|
@@ -726,6 +742,8 @@ export declare const BrowserSafeApis: {
|
|
|
726
742
|
source: string;
|
|
727
743
|
};
|
|
728
744
|
setConfig(value: boolean): void;
|
|
745
|
+
getConfigValue: () => boolean | null;
|
|
746
|
+
reset: () => void;
|
|
729
747
|
id: "beep-on-finish";
|
|
730
748
|
};
|
|
731
749
|
numberOfGifLoopsOption: {
|
|
@@ -910,6 +928,8 @@ export declare const BrowserSafeApis: {
|
|
|
910
928
|
source: string;
|
|
911
929
|
};
|
|
912
930
|
setConfig: (newLogLevel: "error" | "info" | "trace" | "verbose" | "warn") => void;
|
|
931
|
+
getConfigValue: () => "error" | "info" | "trace" | "verbose" | "warn" | null;
|
|
932
|
+
reset: () => void;
|
|
913
933
|
type: "error" | "info" | "trace" | "verbose" | "warn";
|
|
914
934
|
id: "log";
|
|
915
935
|
};
|
|
@@ -1196,6 +1216,8 @@ export declare const BrowserSafeApis: {
|
|
|
1196
1216
|
source: string;
|
|
1197
1217
|
};
|
|
1198
1218
|
setConfig: (profile: AudioContextLatencyCategory | null) => void;
|
|
1219
|
+
getConfigValue: () => AudioContextLatencyCategory | null;
|
|
1220
|
+
reset: () => void;
|
|
1199
1221
|
id: "audio-latency-hint";
|
|
1200
1222
|
};
|
|
1201
1223
|
enableCrossSiteIsolationOption: {
|
|
@@ -1212,6 +1234,8 @@ export declare const BrowserSafeApis: {
|
|
|
1212
1234
|
source: string;
|
|
1213
1235
|
};
|
|
1214
1236
|
setConfig(value: boolean): void;
|
|
1237
|
+
getConfigValue: () => boolean | null;
|
|
1238
|
+
reset: () => void;
|
|
1215
1239
|
id: "cross-site-isolation";
|
|
1216
1240
|
};
|
|
1217
1241
|
ignoreCertificateErrorsOption: {
|
|
@@ -1360,6 +1384,8 @@ export declare const BrowserSafeApis: {
|
|
|
1360
1384
|
source: string;
|
|
1361
1385
|
};
|
|
1362
1386
|
setConfig(value: boolean): void;
|
|
1387
|
+
getConfigValue: () => boolean | null;
|
|
1388
|
+
reset: () => void;
|
|
1363
1389
|
id: "disable-ask-ai";
|
|
1364
1390
|
};
|
|
1365
1391
|
interactivityOption: {
|
|
@@ -1376,6 +1402,8 @@ export declare const BrowserSafeApis: {
|
|
|
1376
1402
|
source: string;
|
|
1377
1403
|
};
|
|
1378
1404
|
setConfig(value: boolean): void;
|
|
1405
|
+
getConfigValue: () => boolean | null;
|
|
1406
|
+
reset: () => void;
|
|
1379
1407
|
id: "disable-interactivity";
|
|
1380
1408
|
};
|
|
1381
1409
|
keyboardShortcutsOption: {
|
|
@@ -1392,6 +1420,8 @@ export declare const BrowserSafeApis: {
|
|
|
1392
1420
|
source: string;
|
|
1393
1421
|
};
|
|
1394
1422
|
setConfig(value: boolean): void;
|
|
1423
|
+
getConfigValue: () => boolean | null;
|
|
1424
|
+
reset: () => void;
|
|
1395
1425
|
id: "disable-keyboard-shortcuts";
|
|
1396
1426
|
};
|
|
1397
1427
|
framesOption: {
|
|
@@ -1456,6 +1486,8 @@ export declare const BrowserSafeApis: {
|
|
|
1456
1486
|
source: string;
|
|
1457
1487
|
};
|
|
1458
1488
|
setConfig(value: number): void;
|
|
1489
|
+
getConfigValue: () => number | null;
|
|
1490
|
+
reset: () => void;
|
|
1459
1491
|
id: "number-of-shared-audio-tags";
|
|
1460
1492
|
};
|
|
1461
1493
|
ipv4Option: {
|
|
@@ -1629,6 +1661,8 @@ export declare const BrowserSafeApis: {
|
|
|
1629
1661
|
source: string;
|
|
1630
1662
|
};
|
|
1631
1663
|
setConfig(value: boolean): void;
|
|
1664
|
+
getConfigValue: () => boolean | null;
|
|
1665
|
+
reset: () => void;
|
|
1632
1666
|
id: "rspack";
|
|
1633
1667
|
};
|
|
1634
1668
|
outDirOption: {
|
|
@@ -2193,6 +2227,8 @@ export declare const BrowserSafeApis: {
|
|
|
2193
2227
|
source: string;
|
|
2194
2228
|
};
|
|
2195
2229
|
setConfig: (newLogLevel: "error" | "info" | "trace" | "verbose" | "warn") => void;
|
|
2230
|
+
getConfigValue: () => "error" | "info" | "trace" | "verbose" | "warn" | null;
|
|
2231
|
+
reset: () => void;
|
|
2196
2232
|
type: "error" | "info" | "trace" | "verbose" | "warn";
|
|
2197
2233
|
id: "log";
|
|
2198
2234
|
};
|
|
@@ -2485,6 +2521,8 @@ export declare const BrowserSafeApis: {
|
|
|
2485
2521
|
source: string;
|
|
2486
2522
|
};
|
|
2487
2523
|
setConfig: (newLogLevel: "error" | "info" | "trace" | "verbose" | "warn") => void;
|
|
2524
|
+
getConfigValue: () => "error" | "info" | "trace" | "verbose" | "warn" | null;
|
|
2525
|
+
reset: () => void;
|
|
2488
2526
|
type: "error" | "info" | "trace" | "verbose" | "warn";
|
|
2489
2527
|
id: "log";
|
|
2490
2528
|
};
|
|
@@ -2651,6 +2689,8 @@ export declare const BrowserSafeApis: {
|
|
|
2651
2689
|
source: string;
|
|
2652
2690
|
};
|
|
2653
2691
|
setConfig: (newLogLevel: "error" | "info" | "trace" | "verbose" | "warn") => void;
|
|
2692
|
+
getConfigValue: () => "error" | "info" | "trace" | "verbose" | "warn" | null;
|
|
2693
|
+
reset: () => void;
|
|
2654
2694
|
type: "error" | "info" | "trace" | "verbose" | "warn";
|
|
2655
2695
|
id: "log";
|
|
2656
2696
|
};
|
|
@@ -2785,6 +2825,8 @@ export declare const BrowserSafeApis: {
|
|
|
2785
2825
|
source: string;
|
|
2786
2826
|
};
|
|
2787
2827
|
setConfig: (newLogLevel: "error" | "info" | "trace" | "verbose" | "warn") => void;
|
|
2828
|
+
getConfigValue: () => "error" | "info" | "trace" | "verbose" | "warn" | null;
|
|
2829
|
+
reset: () => void;
|
|
2788
2830
|
type: "error" | "info" | "trace" | "verbose" | "warn";
|
|
2789
2831
|
id: "log";
|
|
2790
2832
|
};
|
|
@@ -2954,6 +2996,8 @@ export declare const BrowserSafeApis: {
|
|
|
2954
2996
|
source: string;
|
|
2955
2997
|
};
|
|
2956
2998
|
setConfig: (newLogLevel: "error" | "info" | "trace" | "verbose" | "warn") => void;
|
|
2999
|
+
getConfigValue: () => "error" | "info" | "trace" | "verbose" | "warn" | null;
|
|
3000
|
+
reset: () => void;
|
|
2957
3001
|
type: "error" | "info" | "trace" | "verbose" | "warn";
|
|
2958
3002
|
id: "log";
|
|
2959
3003
|
};
|
|
@@ -3319,6 +3363,8 @@ export declare const BrowserSafeApis: {
|
|
|
3319
3363
|
source: string;
|
|
3320
3364
|
};
|
|
3321
3365
|
setConfig: (newLogLevel: "error" | "info" | "trace" | "verbose" | "warn") => void;
|
|
3366
|
+
getConfigValue: () => "error" | "info" | "trace" | "verbose" | "warn" | null;
|
|
3367
|
+
reset: () => void;
|
|
3322
3368
|
type: "error" | "info" | "trace" | "verbose" | "warn";
|
|
3323
3369
|
id: "log";
|
|
3324
3370
|
};
|
|
@@ -3474,6 +3520,8 @@ export declare const BrowserSafeApis: {
|
|
|
3474
3520
|
source: string;
|
|
3475
3521
|
};
|
|
3476
3522
|
setConfig: (newLogLevel: "error" | "info" | "trace" | "verbose" | "warn") => void;
|
|
3523
|
+
getConfigValue: () => "error" | "info" | "trace" | "verbose" | "warn" | null;
|
|
3524
|
+
reset: () => void;
|
|
3477
3525
|
type: "error" | "info" | "trace" | "verbose" | "warn";
|
|
3478
3526
|
id: "log";
|
|
3479
3527
|
};
|
|
@@ -3613,6 +3661,8 @@ export declare const BrowserSafeApis: {
|
|
|
3613
3661
|
source: string;
|
|
3614
3662
|
};
|
|
3615
3663
|
setConfig: (newLogLevel: "error" | "info" | "trace" | "verbose" | "warn") => void;
|
|
3664
|
+
getConfigValue: () => "error" | "info" | "trace" | "verbose" | "warn" | null;
|
|
3665
|
+
reset: () => void;
|
|
3616
3666
|
type: "error" | "info" | "trace" | "verbose" | "warn";
|
|
3617
3667
|
id: "log";
|
|
3618
3668
|
};
|
|
@@ -3883,6 +3933,8 @@ export declare const BrowserSafeApis: {
|
|
|
3883
3933
|
source: string;
|
|
3884
3934
|
};
|
|
3885
3935
|
setConfig: (newLogLevel: "error" | "info" | "trace" | "verbose" | "warn") => void;
|
|
3936
|
+
getConfigValue: () => "error" | "info" | "trace" | "verbose" | "warn" | null;
|
|
3937
|
+
reset: () => void;
|
|
3886
3938
|
type: "error" | "info" | "trace" | "verbose" | "warn";
|
|
3887
3939
|
id: "log";
|
|
3888
3940
|
};
|
|
@@ -4057,6 +4109,8 @@ export declare const BrowserSafeApis: {
|
|
|
4057
4109
|
source: string;
|
|
4058
4110
|
};
|
|
4059
4111
|
setConfig: (newLogLevel: "error" | "info" | "trace" | "verbose" | "warn") => void;
|
|
4112
|
+
getConfigValue: () => "error" | "info" | "trace" | "verbose" | "warn" | null;
|
|
4113
|
+
reset: () => void;
|
|
4060
4114
|
type: "error" | "info" | "trace" | "verbose" | "warn";
|
|
4061
4115
|
id: "log";
|
|
4062
4116
|
};
|
|
@@ -4123,6 +4177,8 @@ export declare const BrowserSafeApis: {
|
|
|
4123
4177
|
source: string;
|
|
4124
4178
|
};
|
|
4125
4179
|
setConfig: (newLogLevel: "error" | "info" | "trace" | "verbose" | "warn") => void;
|
|
4180
|
+
getConfigValue: () => "error" | "info" | "trace" | "verbose" | "warn" | null;
|
|
4181
|
+
reset: () => void;
|
|
4126
4182
|
type: "error" | "info" | "trace" | "verbose" | "warn";
|
|
4127
4183
|
id: "log";
|
|
4128
4184
|
};
|
|
@@ -4168,6 +4224,8 @@ export declare const BrowserSafeApis: {
|
|
|
4168
4224
|
source: string;
|
|
4169
4225
|
};
|
|
4170
4226
|
setConfig: (newLogLevel: "error" | "info" | "trace" | "verbose" | "warn") => void;
|
|
4227
|
+
getConfigValue: () => "error" | "info" | "trace" | "verbose" | "warn" | null;
|
|
4228
|
+
reset: () => void;
|
|
4171
4229
|
type: "error" | "info" | "trace" | "verbose" | "warn";
|
|
4172
4230
|
id: "log";
|
|
4173
4231
|
};
|
|
@@ -4213,6 +4271,8 @@ export declare const BrowserSafeApis: {
|
|
|
4213
4271
|
source: string;
|
|
4214
4272
|
};
|
|
4215
4273
|
setConfig: (newLogLevel: "error" | "info" | "trace" | "verbose" | "warn") => void;
|
|
4274
|
+
getConfigValue: () => "error" | "info" | "trace" | "verbose" | "warn" | null;
|
|
4275
|
+
reset: () => void;
|
|
4216
4276
|
type: "error" | "info" | "trace" | "verbose" | "warn";
|
|
4217
4277
|
id: "log";
|
|
4218
4278
|
};
|
|
@@ -4247,6 +4307,8 @@ export declare const BrowserSafeApis: {
|
|
|
4247
4307
|
source: string;
|
|
4248
4308
|
};
|
|
4249
4309
|
setConfig: (newLogLevel: "error" | "info" | "trace" | "verbose" | "warn") => void;
|
|
4310
|
+
getConfigValue: () => "error" | "info" | "trace" | "verbose" | "warn" | null;
|
|
4311
|
+
reset: () => void;
|
|
4250
4312
|
type: "error" | "info" | "trace" | "verbose" | "warn";
|
|
4251
4313
|
id: "log";
|
|
4252
4314
|
};
|
|
@@ -13,6 +13,13 @@ export declare const startLongRunningCompositor: ({ maximumFrameCacheItemsInByte
|
|
|
13
13
|
binariesDirectory: string | null;
|
|
14
14
|
extraThreads: number;
|
|
15
15
|
}) => Compositor;
|
|
16
|
+
export declare const makeLazyCompositor: ({ maximumFrameCacheItemsInBytes, logLevel, indent, binariesDirectory, extraThreads, }: {
|
|
17
|
+
maximumFrameCacheItemsInBytes: number | null;
|
|
18
|
+
logLevel: "error" | "info" | "trace" | "verbose" | "warn";
|
|
19
|
+
indent: boolean;
|
|
20
|
+
binariesDirectory: string | null;
|
|
21
|
+
extraThreads: number;
|
|
22
|
+
}) => Compositor;
|
|
16
23
|
export declare const startCompositor: <T extends keyof CompositorCommand>({ type, payload, logLevel, indent, binariesDirectory, }: {
|
|
17
24
|
type: T;
|
|
18
25
|
payload: CompositorCommand[T];
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.startCompositor = exports.startLongRunningCompositor = void 0;
|
|
6
|
+
exports.startCompositor = exports.makeLazyCompositor = exports.startLongRunningCompositor = void 0;
|
|
7
7
|
const node_child_process_1 = require("node:child_process");
|
|
8
8
|
const node_path_1 = __importDefault(require("node:path"));
|
|
9
9
|
const streaming_1 = require("@remotion/streaming");
|
|
@@ -28,6 +28,50 @@ const startLongRunningCompositor = ({ maximumFrameCacheItemsInBytes, logLevel, i
|
|
|
28
28
|
});
|
|
29
29
|
};
|
|
30
30
|
exports.startLongRunningCompositor = startLongRunningCompositor;
|
|
31
|
+
const makeLazyCompositor = ({ maximumFrameCacheItemsInBytes, logLevel, indent, binariesDirectory, extraThreads, }) => {
|
|
32
|
+
let compositor = null;
|
|
33
|
+
let shutDown = false;
|
|
34
|
+
const getCompositor = () => {
|
|
35
|
+
if (shutDown) {
|
|
36
|
+
throw new Error('Compositor has already been shut down');
|
|
37
|
+
}
|
|
38
|
+
if (!compositor) {
|
|
39
|
+
compositor = (0, exports.startLongRunningCompositor)({
|
|
40
|
+
maximumFrameCacheItemsInBytes,
|
|
41
|
+
logLevel,
|
|
42
|
+
indent,
|
|
43
|
+
binariesDirectory,
|
|
44
|
+
extraThreads,
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
return compositor;
|
|
48
|
+
};
|
|
49
|
+
return {
|
|
50
|
+
executeCommand: (type, payload) => {
|
|
51
|
+
return Promise.resolve().then(() => {
|
|
52
|
+
return getCompositor().executeCommand(type, payload);
|
|
53
|
+
});
|
|
54
|
+
},
|
|
55
|
+
finishCommands: () => {
|
|
56
|
+
var _a;
|
|
57
|
+
return (_a = compositor === null || compositor === void 0 ? void 0 : compositor.finishCommands()) !== null && _a !== void 0 ? _a : Promise.resolve();
|
|
58
|
+
},
|
|
59
|
+
waitForDone: () => {
|
|
60
|
+
var _a;
|
|
61
|
+
return (_a = compositor === null || compositor === void 0 ? void 0 : compositor.waitForDone()) !== null && _a !== void 0 ? _a : Promise.resolve();
|
|
62
|
+
},
|
|
63
|
+
shutDownOrKill: () => {
|
|
64
|
+
var _a;
|
|
65
|
+
shutDown = true;
|
|
66
|
+
return (_a = compositor === null || compositor === void 0 ? void 0 : compositor.shutDownOrKill()) !== null && _a !== void 0 ? _a : Promise.resolve();
|
|
67
|
+
},
|
|
68
|
+
get pid() {
|
|
69
|
+
var _a;
|
|
70
|
+
return (_a = compositor === null || compositor === void 0 ? void 0 : compositor.pid) !== null && _a !== void 0 ? _a : null;
|
|
71
|
+
},
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
exports.makeLazyCompositor = makeLazyCompositor;
|
|
31
75
|
const startCompositor = ({ type, payload, logLevel, indent, binariesDirectory = null, }) => {
|
|
32
76
|
var _a;
|
|
33
77
|
const bin = (0, get_executable_path_1.getExecutablePath)({
|
package/dist/ensure-browser.d.ts
CHANGED
|
@@ -39,6 +39,8 @@ export declare const ensureBrowser: (options?: Partial<{
|
|
|
39
39
|
source: string;
|
|
40
40
|
};
|
|
41
41
|
setConfig: (newLogLevel: "error" | "info" | "trace" | "verbose" | "warn") => void;
|
|
42
|
+
getConfigValue: () => "error" | "info" | "trace" | "verbose" | "warn" | null;
|
|
43
|
+
reset: () => void;
|
|
42
44
|
type: "error" | "info" | "trace" | "verbose" | "warn";
|
|
43
45
|
id: "log";
|
|
44
46
|
};
|