Skip to content

🎥 Make videos programmatically with React

Clarify that getAudioData() also allows a video source

Jonny Burger4afc25a1af32
diff --git a/packages/ai-improvements/.jsdoc/get-audio-data b/packages/ai-improvements/.jsdoc/get-audio-data
index 3237eac99b..ad9fdabd96 100644
--- a/packages/ai-improvements/.jsdoc/get-audio-data
+++ b/packages/ai-improvements/.jsdoc/get-audio-data
@@ -1,4 +1,4 @@
/**
- * @description Takes an audio src, loads it and returns data and metadata for the specified source.
+ * @description Takes an audio or video src, loads it and returns data and metadata for the specified source.
* @see [Documentation](https://remotion.dev/docs/get-audio-data)
- */
\ No newline at end of file
+ */
diff --git a/packages/docs/docs/get-audio-data.mdx b/packages/docs/docs/get-audio-data.mdx
index 78ab13f0db..51ccaf9ddd 100644
--- a/packages/docs/docs/get-audio-data.mdx
+++ b/packages/docs/docs/get-audio-data.mdx
@@ -7,7 +7,7 @@ crumb: '@remotion/media-utils'
_Part of the `@remotion/media-utils` package of helper functions._
-Takes an audio `src`, loads it and returns data and metadata for the specified source.
+Takes an audio or video `src`, loads it and returns data and metadata for the specified source.
:::info
Remote audio files need to support [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS).
diff --git a/packages/media-utils/src/get-audio-data.ts b/packages/media-utils/src/get-audio-data.ts
index 36c85c21ee..ae414ec818 100644
--- a/packages/media-utils/src/get-audio-data.ts
+++ b/packages/media-utils/src/get-audio-data.ts
@@ -48,7 +48,7 @@ const fn = async (src: string, options?: Options): Promise<AudioData> => {
};
/*
- * @description Takes an audio src, loads it and returns data and metadata for the specified source.
+ * @description Takes an audio or video src, loads it and returns data and metadata for the specified source.
* @see [Documentation](https://remotion.dev/docs/get-audio-data)
*/
export const getAudioData = (src: string, options?: Options) => {