@remotion/media-utils 4.0.313 → 4.0.315

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.
@@ -1,3 +1,8 @@
1
+ /**
2
+ * @description Gets the duration in seconds of an audio source by creating an invisible `<audio>` tag, loading the audio, and returning the duration.
3
+ * @see [Documentation](https://remotion.dev/docs/get-audio-duration-in-seconds)
4
+ * @deprecated Use `parseMedia()` instead: https://www.remotion.dev/docs/media-parser/parse-media
5
+ */
1
6
  export declare const getAudioDurationInSeconds: (src: string) => Promise<number>;
2
7
  /**
3
8
  * @deprecated Renamed to `getAudioDurationInSeconds`
@@ -39,9 +39,10 @@ const fn = (src) => {
39
39
  audio.addEventListener('error', onError, { once: true });
40
40
  });
41
41
  };
42
- /*
42
+ /**
43
43
  * @description Gets the duration in seconds of an audio source by creating an invisible `<audio>` tag, loading the audio, and returning the duration.
44
44
  * @see [Documentation](https://remotion.dev/docs/get-audio-duration-in-seconds)
45
+ * @deprecated Use `parseMedia()` instead: https://www.remotion.dev/docs/media-parser/parse-media
45
46
  */
46
47
  const getAudioDurationInSeconds = (src) => {
47
48
  return limit(fn, src);
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "url": "https://github.com/remotion-dev/remotion/tree/main/packages/media-utils"
4
4
  },
5
5
  "name": "@remotion/media-utils",
6
- "version": "4.0.313",
6
+ "version": "4.0.315",
7
7
  "description": "Utilities for working with media files",
8
8
  "main": "dist/index.js",
9
9
  "sideEffects": false,
@@ -13,7 +13,7 @@
13
13
  "url": "https://github.com/remotion-dev/remotion/issues"
14
14
  },
15
15
  "dependencies": {
16
- "remotion": "4.0.313"
16
+ "remotion": "4.0.315"
17
17
  },
18
18
  "peerDependencies": {
19
19
  "react": ">=16.8.0",
@@ -21,7 +21,7 @@
21
21
  },
22
22
  "devDependencies": {
23
23
  "eslint": "9.19.0",
24
- "@remotion/eslint-config-internal": "4.0.313"
24
+ "@remotion/eslint-config-internal": "4.0.315"
25
25
  },
26
26
  "keywords": [
27
27
  "remotion",