Skip to content

🎥 Make videos programmatically with React

polish

Jonny Burger35922d1c3d37
diff --git a/packages/cli/src/benchmark.ts b/packages/cli/src/benchmark.ts
index 97f56e8ffd..3155fdbe12 100644
--- a/packages/cli/src/benchmark.ts
+++ b/packages/cli/src/benchmark.ts
@@ -288,7 +288,7 @@ export const benchmarkCommand = async (
bufferStateDelayInMilliseconds: null,
maxTimelineTracks: null,
publicPath,
- audioLatencyHint: 'interactive',
+ audioLatencyHint: null,
});
registerCleanupJob(`Deleting bundle`, () => cleanupBundle());
diff --git a/packages/cli/src/render-queue/process-still.ts b/packages/cli/src/render-queue/process-still.ts
index 3f9d41a2c8..bcb006f0a9 100644
--- a/packages/cli/src/render-queue/process-still.ts
+++ b/packages/cli/src/render-queue/process-still.ts
@@ -70,6 +70,6 @@ export const processStill = async ({
binariesDirectory: job.binariesDirectory,
publicPath: null,
chromeMode: job.chromeMode,
- audioLatencyHint: 'interactive',
+ audioLatencyHint: null,
});
};
diff --git a/packages/cli/src/render-queue/process-video.ts b/packages/cli/src/render-queue/process-video.ts
index d9d6a302e8..71ec482ee1 100644
--- a/packages/cli/src/render-queue/process-video.ts
+++ b/packages/cli/src/render-queue/process-video.ts
@@ -100,6 +100,6 @@ export const processVideoJob = async ({
job.type === 'video' ? job.hardwareAcceleration : 'disable',
chromeMode: job.chromeMode,
offthreadVideoThreads: job.offthreadVideoThreads,
- audioLatencyHint: 'interactive',
+ audioLatencyHint: null,
});
};
diff --git a/packages/cli/src/setup-cache.ts b/packages/cli/src/setup-cache.ts
index 12aa547f8b..ded2258466 100644
--- a/packages/cli/src/setup-cache.ts
+++ b/packages/cli/src/setup-cache.ts
@@ -253,7 +253,7 @@ export const bundleOnCli = async ({
ignoreRegisterRootWarning: false,
maxTimelineTracks,
bufferStateDelayInMilliseconds,
- audioLatencyHint: audioLatencyHint ?? 'interactive',
+ audioLatencyHint,
});
bundlingState = {
diff --git a/packages/cloudrun/src/api/deploy-site.ts b/packages/cloudrun/src/api/deploy-site.ts
index 783819ac88..8e0ec2b98a 100644
--- a/packages/cloudrun/src/api/deploy-site.ts
+++ b/packages/cloudrun/src/api/deploy-site.ts
@@ -101,7 +101,7 @@ export const internalDeploySiteRaw = async ({
onPublicDirCopyProgress: () => undefined,
onSymlinkDetected: () => undefined,
outDir: null,
- audioLatencyHint: 'interactive',
+ audioLatencyHint: null,
}),
]);
diff --git a/packages/docs/docs/config.mdx b/packages/docs/docs/config.mdx
index 9e1dfabc55..f5c8bd0737 100644
--- a/packages/docs/docs/config.mdx
+++ b/packages/docs/docs/config.mdx
@@ -674,7 +674,7 @@ Config.setAudioBitrate('128K');
The [command line flag](/docs/cli/render#--audio-bitrate) `--audio-bitrate` will take precedence over this option.
-## `setAudioLatencyHint()`<AvailableFrom v="4.0.302" />
+## `setAudioLatencyHint()`<AvailableFrom v="4.0.303" />
<Options id="audio-latency-hint" />
<br />
diff --git a/packages/renderer/src/options/latency-hint.tsx b/packages/renderer/src/options/latency-hint.tsx
index 8ea7895834..1815b9efbd 100644
--- a/packages/renderer/src/options/latency-hint.tsx
+++ b/packages/renderer/src/options/latency-hint.tsx
@@ -9,8 +9,12 @@ export const audioLatencyHintOption = {
cliFlag,
description: () => (
<>
- Sets the audio latency hint for the AudioContext that Remotion uses to
- play audio.
+ Sets the{' '}
+ <a href="https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/AudioContext">
+ audio latency
+ </a>{' '}
+ hint for the global <code>AudioContext</code> context that Remotion uses
+ to play audio.
<br />
Possible values: <code>interactive</code>, <code>balanced</code>,{' '}
<code>playback</code>