@remotion/renderer 4.0.427 → 4.0.429
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/README.md +7 -7
- package/dist/browser/BrowserFetcher.js +1 -1
- package/dist/browser/BrowserPage.d.ts +1 -1
- package/dist/browser/BrowserPage.js +1 -1
- package/dist/browser/BrowserRunner.js +1 -1
- package/dist/browser/FrameManager.d.ts +1 -1
- package/dist/browser/FrameManager.js +2 -2
- package/dist/browser/handle-failed-resource.d.ts +1 -1
- package/dist/call-ffmpeg.d.ts +1 -1
- package/dist/call-ffmpeg.js +1 -1
- package/dist/client.d.ts +16 -0
- package/dist/compositor/compositor.js +1 -1
- package/dist/ensure-browser.js +1 -1
- package/dist/esm/client.mjs +546 -514
- package/dist/esm/index.mjs +13 -13
- package/dist/get-compositions.js +1 -1
- package/dist/options/{private-license-key.d.ts → browser-args.d.ts} +7 -6
- package/dist/options/browser-args.js +25 -0
- package/dist/options/concurrencies.d.ts +16 -0
- package/dist/options/concurrencies.js +37 -0
- package/dist/options/experimental-visual-mode.d.ts +16 -0
- package/dist/options/experimental-visual-mode.js +30 -0
- package/dist/options/force.d.ts +16 -0
- package/dist/options/force.js +24 -0
- package/dist/options/help.d.ts +16 -0
- package/dist/options/help.js +26 -0
- package/dist/options/image-format.d.ts +11 -0
- package/dist/options/image-format.js +18 -0
- package/dist/options/index.d.ts +16 -0
- package/dist/options/index.js +2 -0
- package/dist/options/{image-format-option.d.ts → output.d.ts} +7 -6
- package/dist/options/output.js +38 -0
- package/dist/options/png.d.ts +11 -0
- package/dist/options/png.js +18 -0
- package/dist/options/q.d.ts +19 -0
- package/dist/options/q.js +26 -0
- package/dist/options/quality.d.ts +11 -0
- package/dist/options/quality.js +20 -0
- package/dist/options/quiet.d.ts +19 -0
- package/dist/options/quiet.js +26 -0
- package/dist/render-frames.js +1 -1
- package/dist/render-media.js +2 -2
- package/dist/render-still.js +2 -2
- package/dist/select-composition.js +1 -1
- package/package.json +14 -14
- package/types/ws/index.d.ts +76 -64
- package/dist/options/image-format-option.js +0 -33
- package/dist/options/private-license-key.js +0 -35
package/dist/render-media.js
CHANGED
|
@@ -4,13 +4,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.renderMedia = exports.internalRenderMedia = void 0;
|
|
7
|
-
const licensing_1 = require("@remotion/licensing");
|
|
8
7
|
const node_fs_1 = __importDefault(require("node:fs"));
|
|
9
8
|
const node_os_1 = __importDefault(require("node:os"));
|
|
10
9
|
const node_path_1 = __importDefault(require("node:path"));
|
|
10
|
+
const licensing_1 = require("@remotion/licensing");
|
|
11
11
|
const no_react_1 = require("remotion/no-react");
|
|
12
|
-
const TimeoutSettings_1 = require("./browser/TimeoutSettings");
|
|
13
12
|
const browser_download_progress_bar_1 = require("./browser/browser-download-progress-bar");
|
|
13
|
+
const TimeoutSettings_1 = require("./browser/TimeoutSettings");
|
|
14
14
|
const can_use_parallel_encoding_1 = require("./can-use-parallel-encoding");
|
|
15
15
|
const codec_supports_media_1 = require("./codec-supports-media");
|
|
16
16
|
const crf_1 = require("./crf");
|
package/dist/render-still.js
CHANGED
|
@@ -37,13 +37,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.renderStill = exports.internalRenderStill = void 0;
|
|
40
|
-
const licensing_1 = require("@remotion/licensing");
|
|
41
40
|
const node_fs_1 = __importStar(require("node:fs"));
|
|
42
41
|
const node_path_1 = __importDefault(require("node:path"));
|
|
42
|
+
const licensing_1 = require("@remotion/licensing");
|
|
43
43
|
const no_react_1 = require("remotion/no-react");
|
|
44
44
|
const browser_1 = require("./browser");
|
|
45
|
-
const TimeoutSettings_1 = require("./browser/TimeoutSettings");
|
|
46
45
|
const browser_download_progress_bar_1 = require("./browser/browser-download-progress-bar");
|
|
46
|
+
const TimeoutSettings_1 = require("./browser/TimeoutSettings");
|
|
47
47
|
const collect_assets_1 = require("./collect-assets");
|
|
48
48
|
const convert_to_positive_frame_index_1 = require("./convert-to-positive-frame-index");
|
|
49
49
|
const default_on_log_1 = require("./default-on-log");
|
|
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.selectComposition = exports.internalSelectComposition = exports.internalSelectCompositionRaw = void 0;
|
|
4
4
|
const no_react_1 = require("remotion/no-react");
|
|
5
5
|
const _1 = require(".");
|
|
6
|
-
const TimeoutSettings_1 = require("./browser/TimeoutSettings");
|
|
7
6
|
const browser_download_progress_bar_1 = require("./browser/browser-download-progress-bar");
|
|
7
|
+
const TimeoutSettings_1 = require("./browser/TimeoutSettings");
|
|
8
8
|
const handle_javascript_exception_1 = require("./error-handling/handle-javascript-exception");
|
|
9
9
|
const find_closest_package_json_1 = require("./find-closest-package-json");
|
|
10
10
|
const get_browser_instance_1 = require("./get-browser-instance");
|
package/package.json
CHANGED
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/renderer"
|
|
4
4
|
},
|
|
5
5
|
"name": "@remotion/renderer",
|
|
6
|
-
"version": "4.0.
|
|
6
|
+
"version": "4.0.429",
|
|
7
7
|
"description": "Render Remotion videos using Node.js or Bun",
|
|
8
8
|
"main": "dist/index.js",
|
|
9
9
|
"types": "dist/index.d.ts",
|
|
10
10
|
"sideEffects": false,
|
|
11
11
|
"scripts": {
|
|
12
|
-
"formatting": "
|
|
12
|
+
"formatting": "oxfmt src --check",
|
|
13
13
|
"lint": "eslint src",
|
|
14
14
|
"test": "bun test src",
|
|
15
15
|
"watch": "tsgo -w",
|
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"execa": "5.1.1",
|
|
25
25
|
"extract-zip": "2.0.1",
|
|
26
|
-
"remotion": "4.0.
|
|
27
|
-
"@remotion/streaming": "4.0.
|
|
26
|
+
"remotion": "4.0.429",
|
|
27
|
+
"@remotion/streaming": "4.0.429",
|
|
28
28
|
"source-map": "^0.8.0-beta.0",
|
|
29
29
|
"ws": "8.17.1",
|
|
30
|
-
"@remotion/licensing": "4.0.
|
|
30
|
+
"@remotion/licensing": "4.0.429"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"react": ">=16.8.0",
|
|
@@ -41,19 +41,19 @@
|
|
|
41
41
|
"react-dom": "19.2.3",
|
|
42
42
|
"@typescript/native-preview": "7.0.0-dev.20260217.1",
|
|
43
43
|
"@types/ws": "8.5.10",
|
|
44
|
-
"@remotion/example-videos": "4.0.
|
|
45
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
44
|
+
"@remotion/example-videos": "4.0.429",
|
|
45
|
+
"@remotion/eslint-config-internal": "4.0.429",
|
|
46
46
|
"eslint": "9.19.0",
|
|
47
47
|
"@types/node": "20.12.14"
|
|
48
48
|
},
|
|
49
49
|
"optionalDependencies": {
|
|
50
|
-
"@remotion/compositor-darwin-arm64": "4.0.
|
|
51
|
-
"@remotion/compositor-darwin-x64": "4.0.
|
|
52
|
-
"@remotion/compositor-linux-arm64-gnu": "4.0.
|
|
53
|
-
"@remotion/compositor-linux-arm64-musl": "4.0.
|
|
54
|
-
"@remotion/compositor-linux-x64-gnu": "4.0.
|
|
55
|
-
"@remotion/compositor-linux-x64-musl": "4.0.
|
|
56
|
-
"@remotion/compositor-win32-x64-msvc": "4.0.
|
|
50
|
+
"@remotion/compositor-darwin-arm64": "4.0.429",
|
|
51
|
+
"@remotion/compositor-darwin-x64": "4.0.429",
|
|
52
|
+
"@remotion/compositor-linux-arm64-gnu": "4.0.429",
|
|
53
|
+
"@remotion/compositor-linux-arm64-musl": "4.0.429",
|
|
54
|
+
"@remotion/compositor-linux-x64-gnu": "4.0.429",
|
|
55
|
+
"@remotion/compositor-linux-x64-musl": "4.0.429",
|
|
56
|
+
"@remotion/compositor-win32-x64-msvc": "4.0.429"
|
|
57
57
|
},
|
|
58
58
|
"keywords": [
|
|
59
59
|
"remotion",
|
package/types/ws/index.d.ts
CHANGED
|
@@ -57,12 +57,12 @@ declare class WebSocket extends EventEmitter {
|
|
|
57
57
|
constructor(address: null);
|
|
58
58
|
constructor(
|
|
59
59
|
address: string | URL,
|
|
60
|
-
options?: WebSocket.ClientOptions | ClientRequestArgs
|
|
60
|
+
options?: WebSocket.ClientOptions | ClientRequestArgs,
|
|
61
61
|
);
|
|
62
62
|
constructor(
|
|
63
63
|
address: string | URL,
|
|
64
64
|
protocols?: string | string[],
|
|
65
|
-
options?: WebSocket.ClientOptions | ClientRequestArgs
|
|
65
|
+
options?: WebSocket.ClientOptions | ClientRequestArgs,
|
|
66
66
|
);
|
|
67
67
|
close(code?: number, data?: string | Buffer): void;
|
|
68
68
|
ping(data?: any, mask?: boolean, cb?: (err: Error) => void): void;
|
|
@@ -76,7 +76,7 @@ declare class WebSocket extends EventEmitter {
|
|
|
76
76
|
compress?: boolean | undefined;
|
|
77
77
|
fin?: boolean | undefined;
|
|
78
78
|
},
|
|
79
|
-
cb?: (err?: Error) => void
|
|
79
|
+
cb?: (err?: Error) => void,
|
|
80
80
|
): void;
|
|
81
81
|
terminate(): void;
|
|
82
82
|
/**
|
|
@@ -93,186 +93,186 @@ declare class WebSocket extends EventEmitter {
|
|
|
93
93
|
addEventListener(
|
|
94
94
|
method: 'message',
|
|
95
95
|
cb: (event: WebSocket.MessageEvent) => void,
|
|
96
|
-
options?: WebSocket.EventListenerOptions
|
|
96
|
+
options?: WebSocket.EventListenerOptions,
|
|
97
97
|
): void;
|
|
98
98
|
addEventListener(
|
|
99
99
|
method: 'close',
|
|
100
100
|
cb: (event: WebSocket.CloseEvent) => void,
|
|
101
|
-
options?: WebSocket.EventListenerOptions
|
|
101
|
+
options?: WebSocket.EventListenerOptions,
|
|
102
102
|
): void;
|
|
103
103
|
addEventListener(
|
|
104
104
|
method: 'error',
|
|
105
105
|
cb: (event: WebSocket.ErrorEvent) => void,
|
|
106
|
-
options?: WebSocket.EventListenerOptions
|
|
106
|
+
options?: WebSocket.EventListenerOptions,
|
|
107
107
|
): void;
|
|
108
108
|
addEventListener(
|
|
109
109
|
method: 'open',
|
|
110
110
|
cb: (event: WebSocket.Event) => void,
|
|
111
|
-
options?: WebSocket.EventListenerOptions
|
|
111
|
+
options?: WebSocket.EventListenerOptions,
|
|
112
112
|
): void;
|
|
113
113
|
removeEventListener(
|
|
114
114
|
method: 'message',
|
|
115
|
-
cb: (event: WebSocket.MessageEvent) => void
|
|
115
|
+
cb: (event: WebSocket.MessageEvent) => void,
|
|
116
116
|
): void;
|
|
117
117
|
removeEventListener(
|
|
118
118
|
method: 'close',
|
|
119
|
-
cb: (event: WebSocket.CloseEvent) => void
|
|
119
|
+
cb: (event: WebSocket.CloseEvent) => void,
|
|
120
120
|
): void;
|
|
121
121
|
removeEventListener(
|
|
122
122
|
method: 'error',
|
|
123
|
-
cb: (event: WebSocket.ErrorEvent) => void
|
|
123
|
+
cb: (event: WebSocket.ErrorEvent) => void,
|
|
124
124
|
): void;
|
|
125
125
|
removeEventListener(
|
|
126
126
|
method: 'open',
|
|
127
|
-
cb: (event: WebSocket.Event) => void
|
|
127
|
+
cb: (event: WebSocket.Event) => void,
|
|
128
128
|
): void;
|
|
129
129
|
on(
|
|
130
130
|
event: 'close',
|
|
131
|
-
listener: (this: WebSocket, code: number, reason: Buffer) => void
|
|
131
|
+
listener: (this: WebSocket, code: number, reason: Buffer) => void,
|
|
132
132
|
): this;
|
|
133
133
|
on(event: 'error', listener: (this: WebSocket, err: Error) => void): this;
|
|
134
134
|
on(
|
|
135
135
|
event: 'upgrade',
|
|
136
|
-
listener: (this: WebSocket, request: IncomingMessage) => void
|
|
136
|
+
listener: (this: WebSocket, request: IncomingMessage) => void,
|
|
137
137
|
): this;
|
|
138
138
|
on(
|
|
139
139
|
event: 'message',
|
|
140
140
|
listener: (
|
|
141
141
|
this: WebSocket,
|
|
142
142
|
data: WebSocket.RawData,
|
|
143
|
-
isBinary: boolean
|
|
144
|
-
) => void
|
|
143
|
+
isBinary: boolean,
|
|
144
|
+
) => void,
|
|
145
145
|
): this;
|
|
146
146
|
on(event: 'open', listener: (this: WebSocket) => void): this;
|
|
147
147
|
on(
|
|
148
148
|
event: 'ping' | 'pong',
|
|
149
|
-
listener: (this: WebSocket, data: Buffer) => void
|
|
149
|
+
listener: (this: WebSocket, data: Buffer) => void,
|
|
150
150
|
): this;
|
|
151
151
|
on(
|
|
152
152
|
event: 'unexpected-response',
|
|
153
153
|
listener: (
|
|
154
154
|
this: WebSocket,
|
|
155
155
|
request: ClientRequest,
|
|
156
|
-
response: IncomingMessage
|
|
157
|
-
) => void
|
|
156
|
+
response: IncomingMessage,
|
|
157
|
+
) => void,
|
|
158
158
|
): this;
|
|
159
159
|
on(
|
|
160
160
|
event: string | symbol,
|
|
161
|
-
listener: (this: WebSocket, ...args: any[]) => void
|
|
161
|
+
listener: (this: WebSocket, ...args: any[]) => void,
|
|
162
162
|
): this;
|
|
163
163
|
once(
|
|
164
164
|
event: 'close',
|
|
165
|
-
listener: (this: WebSocket, code: number, reason: Buffer) => void
|
|
165
|
+
listener: (this: WebSocket, code: number, reason: Buffer) => void,
|
|
166
166
|
): this;
|
|
167
167
|
once(event: 'error', listener: (this: WebSocket, err: Error) => void): this;
|
|
168
168
|
once(
|
|
169
169
|
event: 'upgrade',
|
|
170
|
-
listener: (this: WebSocket, request: IncomingMessage) => void
|
|
170
|
+
listener: (this: WebSocket, request: IncomingMessage) => void,
|
|
171
171
|
): this;
|
|
172
172
|
once(
|
|
173
173
|
event: 'message',
|
|
174
174
|
listener: (
|
|
175
175
|
this: WebSocket,
|
|
176
176
|
data: WebSocket.RawData,
|
|
177
|
-
isBinary: boolean
|
|
178
|
-
) => void
|
|
177
|
+
isBinary: boolean,
|
|
178
|
+
) => void,
|
|
179
179
|
): this;
|
|
180
180
|
once(event: 'open', listener: (this: WebSocket) => void): this;
|
|
181
181
|
once(
|
|
182
182
|
event: 'ping' | 'pong',
|
|
183
|
-
listener: (this: WebSocket, data: Buffer) => void
|
|
183
|
+
listener: (this: WebSocket, data: Buffer) => void,
|
|
184
184
|
): this;
|
|
185
185
|
once(
|
|
186
186
|
event: 'unexpected-response',
|
|
187
187
|
listener: (
|
|
188
188
|
this: WebSocket,
|
|
189
189
|
request: ClientRequest,
|
|
190
|
-
response: IncomingMessage
|
|
191
|
-
) => void
|
|
190
|
+
response: IncomingMessage,
|
|
191
|
+
) => void,
|
|
192
192
|
): this;
|
|
193
193
|
once(
|
|
194
194
|
event: string | symbol,
|
|
195
|
-
listener: (this: WebSocket, ...args: any[]) => void
|
|
195
|
+
listener: (this: WebSocket, ...args: any[]) => void,
|
|
196
196
|
): this;
|
|
197
197
|
off(
|
|
198
198
|
event: 'close',
|
|
199
|
-
listener: (this: WebSocket, code: number, reason: Buffer) => void
|
|
199
|
+
listener: (this: WebSocket, code: number, reason: Buffer) => void,
|
|
200
200
|
): this;
|
|
201
201
|
off(event: 'error', listener: (this: WebSocket, err: Error) => void): this;
|
|
202
202
|
off(
|
|
203
203
|
event: 'upgrade',
|
|
204
|
-
listener: (this: WebSocket, request: IncomingMessage) => void
|
|
204
|
+
listener: (this: WebSocket, request: IncomingMessage) => void,
|
|
205
205
|
): this;
|
|
206
206
|
off(
|
|
207
207
|
event: 'message',
|
|
208
208
|
listener: (
|
|
209
209
|
this: WebSocket,
|
|
210
210
|
data: WebSocket.RawData,
|
|
211
|
-
isBinary: boolean
|
|
212
|
-
) => void
|
|
211
|
+
isBinary: boolean,
|
|
212
|
+
) => void,
|
|
213
213
|
): this;
|
|
214
214
|
off(event: 'open', listener: (this: WebSocket) => void): this;
|
|
215
215
|
off(
|
|
216
216
|
event: 'ping' | 'pong',
|
|
217
|
-
listener: (this: WebSocket, data: Buffer) => void
|
|
217
|
+
listener: (this: WebSocket, data: Buffer) => void,
|
|
218
218
|
): this;
|
|
219
219
|
off(
|
|
220
220
|
event: 'unexpected-response',
|
|
221
221
|
listener: (
|
|
222
222
|
this: WebSocket,
|
|
223
223
|
request: ClientRequest,
|
|
224
|
-
response: IncomingMessage
|
|
225
|
-
) => void
|
|
224
|
+
response: IncomingMessage,
|
|
225
|
+
) => void,
|
|
226
226
|
): this;
|
|
227
227
|
off(
|
|
228
228
|
event: string | symbol,
|
|
229
|
-
listener: (this: WebSocket, ...args: any[]) => void
|
|
229
|
+
listener: (this: WebSocket, ...args: any[]) => void,
|
|
230
230
|
): this;
|
|
231
231
|
addListener(
|
|
232
232
|
event: 'close',
|
|
233
|
-
listener: (code: number, reason: Buffer) => void
|
|
233
|
+
listener: (code: number, reason: Buffer) => void,
|
|
234
234
|
): this;
|
|
235
235
|
addListener(event: 'error', listener: (err: Error) => void): this;
|
|
236
236
|
addListener(
|
|
237
237
|
event: 'upgrade',
|
|
238
|
-
listener: (request: IncomingMessage) => void
|
|
238
|
+
listener: (request: IncomingMessage) => void,
|
|
239
239
|
): this;
|
|
240
240
|
addListener(
|
|
241
241
|
event: 'message',
|
|
242
|
-
listener: (data: WebSocket.RawData, isBinary: boolean) => void
|
|
242
|
+
listener: (data: WebSocket.RawData, isBinary: boolean) => void,
|
|
243
243
|
): this;
|
|
244
244
|
addListener(event: 'open', listener: () => void): this;
|
|
245
245
|
addListener(event: 'ping' | 'pong', listener: (data: Buffer) => void): this;
|
|
246
246
|
addListener(
|
|
247
247
|
event: 'unexpected-response',
|
|
248
|
-
listener: (request: ClientRequest, response: IncomingMessage) => void
|
|
248
|
+
listener: (request: ClientRequest, response: IncomingMessage) => void,
|
|
249
249
|
): this;
|
|
250
250
|
addListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
251
251
|
removeListener(
|
|
252
252
|
event: 'close',
|
|
253
|
-
listener: (code: number, reason: Buffer) => void
|
|
253
|
+
listener: (code: number, reason: Buffer) => void,
|
|
254
254
|
): this;
|
|
255
255
|
removeListener(event: 'error', listener: (err: Error) => void): this;
|
|
256
256
|
removeListener(
|
|
257
257
|
event: 'upgrade',
|
|
258
|
-
listener: (request: IncomingMessage) => void
|
|
258
|
+
listener: (request: IncomingMessage) => void,
|
|
259
259
|
): this;
|
|
260
260
|
removeListener(
|
|
261
261
|
event: 'message',
|
|
262
|
-
listener: (data: WebSocket.RawData, isBinary: boolean) => void
|
|
262
|
+
listener: (data: WebSocket.RawData, isBinary: boolean) => void,
|
|
263
263
|
): this;
|
|
264
264
|
removeListener(event: 'open', listener: () => void): this;
|
|
265
265
|
removeListener(
|
|
266
266
|
event: 'ping' | 'pong',
|
|
267
|
-
listener: (data: Buffer) => void
|
|
267
|
+
listener: (data: Buffer) => void,
|
|
268
268
|
): this;
|
|
269
269
|
removeListener(
|
|
270
270
|
event: 'unexpected-response',
|
|
271
|
-
listener: (request: ClientRequest, response: IncomingMessage) => void
|
|
271
|
+
listener: (request: ClientRequest, response: IncomingMessage) => void,
|
|
272
272
|
): this;
|
|
273
273
|
removeListener(
|
|
274
274
|
event: string | symbol,
|
|
275
|
-
listener: (...args: any[]) => void
|
|
275
|
+
listener: (...args: any[]) => void,
|
|
276
276
|
): this;
|
|
277
277
|
}
|
|
278
278
|
declare const WebSocketAlias: typeof WebSocket;
|
|
@@ -315,8 +315,8 @@ declare namespace WebSocket {
|
|
|
315
315
|
res: boolean,
|
|
316
316
|
code?: number,
|
|
317
317
|
message?: string,
|
|
318
|
-
headers?: OutgoingHttpHeaders
|
|
319
|
-
) => void
|
|
318
|
+
headers?: OutgoingHttpHeaders,
|
|
319
|
+
) => void,
|
|
320
320
|
) => void;
|
|
321
321
|
interface ClientOptions extends SecureContextOptions {
|
|
322
322
|
protocol?: string | undefined;
|
|
@@ -399,7 +399,7 @@ declare namespace WebSocket {
|
|
|
399
399
|
| undefined;
|
|
400
400
|
handleProtocols?: (
|
|
401
401
|
protocols: Set<string>,
|
|
402
|
-
request: IncomingMessage
|
|
402
|
+
request: IncomingMessage,
|
|
403
403
|
) => string | false;
|
|
404
404
|
path?: string | undefined;
|
|
405
405
|
noServer?: boolean | undefined;
|
|
@@ -425,75 +425,87 @@ declare namespace WebSocket {
|
|
|
425
425
|
request: IncomingMessage,
|
|
426
426
|
socket: Duplex,
|
|
427
427
|
upgradeHead: Buffer,
|
|
428
|
-
callback: (client: T, request: IncomingMessage) => void
|
|
428
|
+
callback: (client: T, request: IncomingMessage) => void,
|
|
429
429
|
): void;
|
|
430
430
|
shouldHandle(request: IncomingMessage): boolean | Promise<boolean>;
|
|
431
431
|
on(
|
|
432
432
|
event: 'connection',
|
|
433
|
-
cb: (this: Server<T>, socket: T, request: IncomingMessage) => void
|
|
433
|
+
cb: (this: Server<T>, socket: T, request: IncomingMessage) => void,
|
|
434
434
|
): this;
|
|
435
435
|
on(event: 'error', cb: (this: Server<T>, error: Error) => void): this;
|
|
436
436
|
on(
|
|
437
437
|
event: 'headers',
|
|
438
|
-
cb: (
|
|
438
|
+
cb: (
|
|
439
|
+
this: Server<T>,
|
|
440
|
+
headers: string[],
|
|
441
|
+
request: IncomingMessage,
|
|
442
|
+
) => void,
|
|
439
443
|
): this;
|
|
440
444
|
on(event: 'close' | 'listening', cb: (this: Server<T>) => void): this;
|
|
441
445
|
on(
|
|
442
446
|
event: string | symbol,
|
|
443
|
-
listener: (this: Server<T>, ...args: any[]) => void
|
|
447
|
+
listener: (this: Server<T>, ...args: any[]) => void,
|
|
444
448
|
): this;
|
|
445
449
|
once(
|
|
446
450
|
event: 'connection',
|
|
447
|
-
cb: (this: Server<T>, socket: T, request: IncomingMessage) => void
|
|
451
|
+
cb: (this: Server<T>, socket: T, request: IncomingMessage) => void,
|
|
448
452
|
): this;
|
|
449
453
|
once(event: 'error', cb: (this: Server<T>, error: Error) => void): this;
|
|
450
454
|
once(
|
|
451
455
|
event: 'headers',
|
|
452
|
-
cb: (
|
|
456
|
+
cb: (
|
|
457
|
+
this: Server<T>,
|
|
458
|
+
headers: string[],
|
|
459
|
+
request: IncomingMessage,
|
|
460
|
+
) => void,
|
|
453
461
|
): this;
|
|
454
462
|
once(event: 'close' | 'listening', cb: (this: Server<T>) => void): this;
|
|
455
463
|
once(
|
|
456
464
|
event: string | symbol,
|
|
457
|
-
listener: (this: Server<T>, ...args: any[]) => void
|
|
465
|
+
listener: (this: Server<T>, ...args: any[]) => void,
|
|
458
466
|
): this;
|
|
459
467
|
off(
|
|
460
468
|
event: 'connection',
|
|
461
|
-
cb: (this: Server<T>, socket: T, request: IncomingMessage) => void
|
|
469
|
+
cb: (this: Server<T>, socket: T, request: IncomingMessage) => void,
|
|
462
470
|
): this;
|
|
463
471
|
off(event: 'error', cb: (this: Server<T>, error: Error) => void): this;
|
|
464
472
|
off(
|
|
465
473
|
event: 'headers',
|
|
466
|
-
cb: (
|
|
474
|
+
cb: (
|
|
475
|
+
this: Server<T>,
|
|
476
|
+
headers: string[],
|
|
477
|
+
request: IncomingMessage,
|
|
478
|
+
) => void,
|
|
467
479
|
): this;
|
|
468
480
|
off(event: 'close' | 'listening', cb: (this: Server<T>) => void): this;
|
|
469
481
|
off(
|
|
470
482
|
event: string | symbol,
|
|
471
|
-
listener: (this: Server<T>, ...args: any[]) => void
|
|
483
|
+
listener: (this: Server<T>, ...args: any[]) => void,
|
|
472
484
|
): this;
|
|
473
485
|
addListener(
|
|
474
486
|
event: 'connection',
|
|
475
|
-
cb: (client: T, request: IncomingMessage) => void
|
|
487
|
+
cb: (client: T, request: IncomingMessage) => void,
|
|
476
488
|
): this;
|
|
477
489
|
addListener(event: 'error', cb: (err: Error) => void): this;
|
|
478
490
|
addListener(
|
|
479
491
|
event: 'headers',
|
|
480
|
-
cb: (headers: string[], request: IncomingMessage) => void
|
|
492
|
+
cb: (headers: string[], request: IncomingMessage) => void,
|
|
481
493
|
): this;
|
|
482
494
|
addListener(event: 'close' | 'listening', cb: () => void): this;
|
|
483
495
|
addListener(
|
|
484
496
|
event: string | symbol,
|
|
485
|
-
listener: (...args: any[]) => void
|
|
497
|
+
listener: (...args: any[]) => void,
|
|
486
498
|
): this;
|
|
487
499
|
removeListener(event: 'connection', cb: (client: T) => void): this;
|
|
488
500
|
removeListener(event: 'error', cb: (err: Error) => void): this;
|
|
489
501
|
removeListener(
|
|
490
502
|
event: 'headers',
|
|
491
|
-
cb: (headers: string[], request: IncomingMessage) => void
|
|
503
|
+
cb: (headers: string[], request: IncomingMessage) => void,
|
|
492
504
|
): this;
|
|
493
505
|
removeListener(event: 'close' | 'listening', cb: () => void): this;
|
|
494
506
|
removeListener(
|
|
495
507
|
event: string | symbol,
|
|
496
|
-
listener: (...args: any[]) => void
|
|
508
|
+
listener: (...args: any[]) => void,
|
|
497
509
|
): this;
|
|
498
510
|
}
|
|
499
511
|
const WebSocketServer: typeof Server;
|
|
@@ -502,7 +514,7 @@ declare namespace WebSocket {
|
|
|
502
514
|
interface WebSocket extends WebSocketAlias {}
|
|
503
515
|
function createWebSocketStream(
|
|
504
516
|
websocket: WebSocket,
|
|
505
|
-
options?: DuplexOptions
|
|
517
|
+
options?: DuplexOptions,
|
|
506
518
|
): Duplex;
|
|
507
519
|
}
|
|
508
520
|
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.imageFormatOption = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
let imageFormat = null;
|
|
6
|
-
const cliFlag = 'image-format';
|
|
7
|
-
exports.imageFormatOption = {
|
|
8
|
-
name: 'Image Format',
|
|
9
|
-
cliFlag,
|
|
10
|
-
description: () => (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: ["Determines which in which image format to render. Can be either", ' ', jsx_runtime_1.jsx("code", { children: "\"jpeg\"" }),
|
|
11
|
-
", ",
|
|
12
|
-
jsx_runtime_1.jsx("code", { children: "\"png\"" }),
|
|
13
|
-
",", ' ', jsx_runtime_1.jsx("code", { children: "\"webp\"" }),
|
|
14
|
-
", ",
|
|
15
|
-
jsx_runtime_1.jsx("code", { children: "\"pdf\"" }),
|
|
16
|
-
", or", ' ', jsx_runtime_1.jsx("code", { children: "\"none\"" }),
|
|
17
|
-
" depending on the render type."] })),
|
|
18
|
-
ssrName: 'imageFormat',
|
|
19
|
-
docLink: 'https://www.remotion.dev/docs/config#setvideoimageformat',
|
|
20
|
-
type: null,
|
|
21
|
-
getValue: ({ commandLine }) => {
|
|
22
|
-
if (commandLine[cliFlag] !== undefined) {
|
|
23
|
-
return { value: commandLine[cliFlag], source: 'cli' };
|
|
24
|
-
}
|
|
25
|
-
if (imageFormat !== null) {
|
|
26
|
-
return { value: imageFormat, source: 'config' };
|
|
27
|
-
}
|
|
28
|
-
return { value: null, source: 'default' };
|
|
29
|
-
},
|
|
30
|
-
setConfig(value) {
|
|
31
|
-
imageFormat = value;
|
|
32
|
-
},
|
|
33
|
-
};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.privateLicenseKeyOption = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const cliFlag = 'private-license-key';
|
|
6
|
-
let currentPrivateLicenseKey = null;
|
|
7
|
-
exports.privateLicenseKeyOption = {
|
|
8
|
-
name: 'Private License Key',
|
|
9
|
-
cliFlag,
|
|
10
|
-
description: () => ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["The private license key for your company license, obtained from the \"Usage\" tab on ", (0, jsx_runtime_1.jsx)("a", { href: "https://remotion.pro/dashboard", children: "remotion.pro" }), ". If you are eligible for the free license, pass \"free-license\"."] })),
|
|
11
|
-
ssrName: 'privateLicenseKey',
|
|
12
|
-
docLink: 'https://www.remotion.dev/docs/licensing',
|
|
13
|
-
getValue: ({ commandLine }) => {
|
|
14
|
-
if (commandLine[cliFlag] !== undefined) {
|
|
15
|
-
return {
|
|
16
|
-
source: 'cli',
|
|
17
|
-
value: commandLine[cliFlag],
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
if (currentPrivateLicenseKey !== null) {
|
|
21
|
-
return {
|
|
22
|
-
source: 'config',
|
|
23
|
-
value: currentPrivateLicenseKey,
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
return {
|
|
27
|
-
source: 'default',
|
|
28
|
-
value: null,
|
|
29
|
-
};
|
|
30
|
-
},
|
|
31
|
-
setConfig: (value) => {
|
|
32
|
-
currentPrivateLicenseKey = value;
|
|
33
|
-
},
|
|
34
|
-
type: null,
|
|
35
|
-
};
|