@remotion/media-utils 4.0.523 → 4.0.525

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.
@@ -718,7 +718,12 @@ var useWindowedAudioData = ({
718
718
  signal.addEventListener("abort", cont, { once: true });
719
719
  const input = new Input({
720
720
  formats: ALL_FORMATS,
721
- source: new UrlSource(src, initialRequestInit ? { requestInit: initialRequestInit } : undefined)
721
+ source: new UrlSource(src, {
722
+ handleUnhandledError: (error) => {
723
+ Internals.Log.warn({ logLevel: "info", tag: "@remotion/media-utils" }, `A speculative fetch for "${src}" failed:`, error);
724
+ },
725
+ ...initialRequestInit ? { requestInit: initialRequestInit } : undefined
726
+ })
722
727
  });
723
728
  const onAbort = () => {
724
729
  input.dispose();
@@ -43,7 +43,14 @@ const useWindowedAudioData = ({ src, frame, fps, windowInSeconds, channelIndex =
43
43
  signal.addEventListener('abort', cont, { once: true });
44
44
  const input = new mediabunny_1.Input({
45
45
  formats: mediabunny_1.ALL_FORMATS,
46
- source: new mediabunny_1.UrlSource(src, initialRequestInit ? { requestInit: initialRequestInit } : undefined),
46
+ source: new mediabunny_1.UrlSource(src, {
47
+ handleUnhandledError: (error) => {
48
+ remotion_1.Internals.Log.warn({ logLevel: 'info', tag: '@remotion/media-utils' }, `A speculative fetch for "${src}" failed:`, error);
49
+ },
50
+ ...(initialRequestInit
51
+ ? { requestInit: initialRequestInit }
52
+ : undefined),
53
+ }),
47
54
  });
48
55
  const onAbort = () => {
49
56
  input.dispose();
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.523",
6
+ "version": "4.0.525",
7
7
  "description": "Utilities for working with media files",
8
8
  "main": "dist/index.js",
9
9
  "scripts": {
@@ -20,15 +20,15 @@
20
20
  "url": "https://github.com/remotion-dev/remotion/issues"
21
21
  },
22
22
  "dependencies": {
23
- "remotion": "4.0.523",
24
- "mediabunny": "1.55.5"
23
+ "remotion": "4.0.525",
24
+ "mediabunny": "1.56.1"
25
25
  },
26
26
  "peerDependencies": {
27
27
  "react": ">=16.8.0",
28
28
  "react-dom": ">=16.8.0"
29
29
  },
30
30
  "devDependencies": {
31
- "@remotion/eslint-config-internal": "4.0.523",
31
+ "@remotion/eslint-config-internal": "4.0.525",
32
32
  "eslint": "9.19.0",
33
33
  "@typescript/native-preview": "7.0.0-dev.20260217.1"
34
34
  },