@remotion/renderer 4.0.468 → 4.0.470

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.
@@ -3722,7 +3722,7 @@ class Page extends EventEmitter {
3722
3722
  await this.#client.send("Page.bringToFront");
3723
3723
  }
3724
3724
  async setAutoDarkModeOverride() {
3725
- const result = await this.#client.send("Emulation.setEmulatedMedia", {
3725
+ await this.#client.send("Emulation.setEmulatedMedia", {
3726
3726
  media: "screen",
3727
3727
  features: [
3728
3728
  {
@@ -3731,7 +3731,6 @@ class Page extends EventEmitter {
3731
3731
  }
3732
3732
  ]
3733
3733
  });
3734
- console.log(result);
3735
3734
  }
3736
3735
  evaluate(pageFunction, ...args) {
3737
3736
  return this.#frameManager.mainFrame().evaluate(pageFunction, ...args);
@@ -12,7 +12,7 @@ exports.beepOnFinishOption = {
12
12
  docLink: 'https://www.remotion.dev/docs/config#setbeeponfinish',
13
13
  type: false,
14
14
  getValue: ({ commandLine }) => {
15
- if (commandLine[cliFlag] !== undefined) {
15
+ if (commandLine[cliFlag] !== undefined && commandLine[cliFlag] !== null) {
16
16
  return {
17
17
  value: commandLine[cliFlag],
18
18
  source: 'cli',
@@ -14,7 +14,7 @@ exports.darkModeOption = {
14
14
  docLink: 'https://www.remotion.dev/docs/chromium-flags#--dark-mode',
15
15
  type: false,
16
16
  getValue: ({ commandLine }) => {
17
- if (commandLine[cliFlag] !== undefined) {
17
+ if (commandLine[cliFlag] !== undefined && commandLine[cliFlag] !== null) {
18
18
  return {
19
19
  source: 'cli',
20
20
  value: commandLine[cliFlag],
@@ -12,7 +12,7 @@ exports.disableWebSecurityOption = {
12
12
  docLink: 'https://www.remotion.dev/docs/chromium-flags#--disable-web-security',
13
13
  type: false,
14
14
  getValue: ({ commandLine }) => {
15
- if (commandLine[cliFlag] !== undefined) {
15
+ if (commandLine[cliFlag] !== undefined && commandLine[cliFlag] !== null) {
16
16
  return {
17
17
  source: 'cli',
18
18
  value: Boolean(commandLine[cliFlag]),
@@ -12,7 +12,7 @@ exports.disallowParallelEncodingOption = {
12
12
  docLink: 'https://www.remotion.dev/docs/config#setdisallowparallelencoding',
13
13
  type: false,
14
14
  getValue: ({ commandLine }) => {
15
- if (commandLine[cliFlag] !== undefined) {
15
+ if (commandLine[cliFlag] !== undefined && commandLine[cliFlag] !== null) {
16
16
  return {
17
17
  value: commandLine[cliFlag],
18
18
  source: 'cli',
@@ -12,7 +12,7 @@ exports.forceNewStudioOption = {
12
12
  docLink: 'https://www.remotion.dev/docs/config#setforcenewstudioenabled',
13
13
  type: false,
14
14
  getValue: ({ commandLine }) => {
15
- if (commandLine[cliFlag] !== undefined) {
15
+ if (commandLine[cliFlag] !== undefined && commandLine[cliFlag] !== null) {
16
16
  return {
17
17
  value: commandLine[cliFlag],
18
18
  source: 'cli',
@@ -16,7 +16,7 @@ exports.headlessOption = {
16
16
  docLink: 'https://www.remotion.dev/docs/chromium-flags#--disable-headless',
17
17
  type: false,
18
18
  getValue: ({ commandLine }) => {
19
- if (commandLine[cliFlag] !== undefined) {
19
+ if (commandLine[cliFlag] !== undefined && commandLine[cliFlag] !== null) {
20
20
  return {
21
21
  source: 'cli',
22
22
  value: !commandLine[cliFlag],
@@ -12,7 +12,7 @@ exports.ignoreCertificateErrorsOption = {
12
12
  docLink: 'https://www.remotion.dev/docs/chromium-flags#--ignore-certificate-errors',
13
13
  type: false,
14
14
  getValue: ({ commandLine }) => {
15
- if (commandLine[cliFlag] !== undefined) {
15
+ if (commandLine[cliFlag] !== undefined && commandLine[cliFlag] !== null) {
16
16
  return {
17
17
  source: 'cli',
18
18
  value: Boolean(commandLine[cliFlag]),
@@ -11,7 +11,7 @@ exports.imageSequenceOption = {
11
11
  ssrName: null,
12
12
  docLink: 'https://www.remotion.dev/docs/config#setimagesequence',
13
13
  getValue: ({ commandLine }) => {
14
- if (commandLine[cliFlag] !== undefined) {
14
+ if (commandLine[cliFlag] !== undefined && commandLine[cliFlag] !== null) {
15
15
  return {
16
16
  source: 'cli',
17
17
  value: Boolean(commandLine[cliFlag]),
@@ -600,6 +600,25 @@ export declare const allOptions: {
600
600
  setConfig: (val: boolean) => void;
601
601
  id: "prefer-lossless";
602
602
  };
603
+ previewSampleRateOption: {
604
+ name: string;
605
+ cliFlag: "preview-sample-rate";
606
+ description: () => import("react/jsx-runtime").JSX.Element;
607
+ ssrName: null;
608
+ docLink: string;
609
+ type: number | null;
610
+ getValue: ({ commandLine }: {
611
+ commandLine: Record<string, unknown>;
612
+ }) => {
613
+ value: number;
614
+ source: string;
615
+ } | {
616
+ value: null;
617
+ source: string;
618
+ };
619
+ setConfig: (value: number | null) => void;
620
+ id: "preview-sample-rate";
621
+ };
603
622
  proResProfileOption: {
604
623
  name: string;
605
624
  cliFlag: "prores-profile";
@@ -67,6 +67,7 @@ const package_manager_1 = require("./package-manager");
67
67
  const pixel_format_1 = require("./pixel-format");
68
68
  const port_1 = require("./port");
69
69
  const prefer_lossless_1 = require("./prefer-lossless");
70
+ const preview_sample_rate_1 = require("./preview-sample-rate");
70
71
  const props_1 = require("./props");
71
72
  const prores_profile_1 = require("./prores-profile");
72
73
  const public_dir_1 = require("./public-dir");
@@ -127,6 +128,7 @@ exports.allOptions = {
127
128
  noOpenOption: no_open_1.noOpenOption,
128
129
  pixelFormatOption: pixel_format_1.pixelFormatOption,
129
130
  preferLosslessOption: prefer_lossless_1.preferLosslessAudioOption,
131
+ previewSampleRateOption: preview_sample_rate_1.previewSampleRateOption,
130
132
  proResProfileOption: prores_profile_1.proResProfileOption,
131
133
  x264Option: x264_preset_1.x264Option,
132
134
  logLevelOption: log_level_1.logLevelOption,
@@ -12,7 +12,7 @@ exports.ipv4Option = {
12
12
  docLink: 'https://www.remotion.dev/docs/cli/studio',
13
13
  type: false,
14
14
  getValue: ({ commandLine }) => {
15
- if (commandLine[cliFlag] !== undefined) {
15
+ if (commandLine[cliFlag] !== undefined && commandLine[cliFlag] !== null) {
16
16
  return {
17
17
  value: commandLine[cliFlag],
18
18
  source: 'cli',
@@ -14,7 +14,7 @@ exports.isProductionOption = {
14
14
  ssrName: 'isProduction',
15
15
  docLink: 'https://www.remotion.dev/docs/licensing',
16
16
  getValue: ({ commandLine }) => {
17
- if (commandLine[cliFlag] !== undefined) {
17
+ if (commandLine[cliFlag] !== undefined && commandLine[cliFlag] !== null) {
18
18
  return {
19
19
  source: 'cli',
20
20
  value: commandLine[cliFlag],
@@ -12,7 +12,7 @@ exports.keyboardShortcutsOption = {
12
12
  docLink: 'https://www.remotion.dev/docs/config#setkeyboardshortcutsenabled',
13
13
  type: false,
14
14
  getValue: ({ commandLine }) => {
15
- if (commandLine[cliFlag] !== undefined) {
15
+ if (commandLine[cliFlag] !== undefined && commandLine[cliFlag] !== null) {
16
16
  keyboardShortcutsEnabled = commandLine[cliFlag] === false;
17
17
  return {
18
18
  value: keyboardShortcutsEnabled,
@@ -21,7 +21,7 @@ exports.overwriteOption = {
21
21
  docLink: 'https://www.remotion.dev/docs/config#setoverwriteoutput',
22
22
  type: false,
23
23
  getValue: ({ commandLine }, defaultValue) => {
24
- if (commandLine[cliFlag] !== undefined) {
24
+ if (commandLine[cliFlag] !== undefined && commandLine[cliFlag] !== null) {
25
25
  validate(commandLine[cliFlag]);
26
26
  return {
27
27
  source: 'cli',
@@ -0,0 +1,19 @@
1
+ export declare const previewSampleRateOption: {
2
+ name: string;
3
+ cliFlag: "preview-sample-rate";
4
+ description: () => import("react/jsx-runtime").JSX.Element;
5
+ ssrName: null;
6
+ docLink: string;
7
+ type: number | null;
8
+ getValue: ({ commandLine }: {
9
+ commandLine: Record<string, unknown>;
10
+ }) => {
11
+ value: number;
12
+ source: string;
13
+ } | {
14
+ value: null;
15
+ source: string;
16
+ };
17
+ setConfig: (value: number | null) => void;
18
+ id: "preview-sample-rate";
19
+ };
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.previewSampleRateOption = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const cliFlag = 'preview-sample-rate';
6
+ let currentPreviewSampleRate = null;
7
+ exports.previewSampleRateOption = {
8
+ name: 'Preview Sample Rate',
9
+ cliFlag,
10
+ description: () => (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: ["Controls the sample rate used for audio playback during preview. When unset, Remotion uses ",
11
+ jsx_runtime_1.jsx("code", { children: "48000" }),
12
+ " Hz."] })),
13
+ ssrName: null,
14
+ docLink: 'https://www.remotion.dev/docs/config#setpreviewsamplerate',
15
+ type: null,
16
+ getValue: ({ commandLine }) => {
17
+ if (commandLine[cliFlag] !== undefined) {
18
+ return { value: commandLine[cliFlag], source: 'cli' };
19
+ }
20
+ if (currentPreviewSampleRate !== null) {
21
+ return { value: currentPreviewSampleRate, source: 'config file' };
22
+ }
23
+ return { value: null, source: 'default' };
24
+ },
25
+ setConfig: (value) => {
26
+ currentPreviewSampleRate = value;
27
+ },
28
+ id: cliFlag,
29
+ };
@@ -15,7 +15,7 @@ exports.reproOption = {
15
15
  docLink: 'https://www.remotion.dev/docs/render-media#repro',
16
16
  type: false,
17
17
  getValue: ({ commandLine }) => {
18
- if (commandLine[cliFlag] !== undefined) {
18
+ if (commandLine[cliFlag] !== undefined && commandLine[cliFlag] !== null) {
19
19
  return {
20
20
  value: commandLine[cliFlag],
21
21
  source: 'cli',
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "url": "https://github.com/remotion-dev/remotion/tree/main/packages/renderer"
4
4
  },
5
5
  "name": "@remotion/renderer",
6
- "version": "4.0.468",
6
+ "version": "4.0.470",
7
7
  "description": "Render Remotion videos using Node.js or Bun",
8
8
  "main": "dist/index.js",
9
9
  "types": "dist/index.d.ts",
@@ -22,11 +22,11 @@
22
22
  },
23
23
  "dependencies": {
24
24
  "execa": "5.1.1",
25
- "remotion": "4.0.468",
26
- "@remotion/streaming": "4.0.468",
25
+ "remotion": "4.0.470",
26
+ "@remotion/streaming": "4.0.470",
27
27
  "source-map": "0.8.0-beta.0",
28
28
  "ws": "8.20.1",
29
- "@remotion/licensing": "4.0.468"
29
+ "@remotion/licensing": "4.0.470"
30
30
  },
31
31
  "peerDependencies": {
32
32
  "react": ">=16.8.0",
@@ -40,19 +40,19 @@
40
40
  "react-dom": "19.2.3",
41
41
  "@typescript/native-preview": "7.0.0-dev.20260217.1",
42
42
  "@types/ws": "8.5.10",
43
- "@remotion/example-videos": "4.0.468",
44
- "@remotion/eslint-config-internal": "4.0.468",
43
+ "@remotion/example-videos": "4.0.470",
44
+ "@remotion/eslint-config-internal": "4.0.470",
45
45
  "eslint": "9.19.0",
46
46
  "@types/node": "20.12.14"
47
47
  },
48
48
  "optionalDependencies": {
49
- "@remotion/compositor-darwin-arm64": "4.0.468",
50
- "@remotion/compositor-darwin-x64": "4.0.468",
51
- "@remotion/compositor-linux-arm64-gnu": "4.0.468",
52
- "@remotion/compositor-linux-arm64-musl": "4.0.468",
53
- "@remotion/compositor-linux-x64-gnu": "4.0.468",
54
- "@remotion/compositor-linux-x64-musl": "4.0.468",
55
- "@remotion/compositor-win32-x64-msvc": "4.0.468"
49
+ "@remotion/compositor-darwin-arm64": "4.0.470",
50
+ "@remotion/compositor-darwin-x64": "4.0.470",
51
+ "@remotion/compositor-linux-arm64-gnu": "4.0.470",
52
+ "@remotion/compositor-linux-arm64-musl": "4.0.470",
53
+ "@remotion/compositor-linux-x64-gnu": "4.0.470",
54
+ "@remotion/compositor-linux-x64-musl": "4.0.470",
55
+ "@remotion/compositor-win32-x64-msvc": "4.0.470"
56
56
  },
57
57
  "keywords": [
58
58
  "remotion",