@remotion/media-utils 3.0.15 → 3.0.16

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.
@@ -19,12 +19,12 @@ const fn = (src) => {
19
19
  reject(video.error);
20
20
  cleanup();
21
21
  };
22
- const pixels = video.videoHeight * video.videoWidth;
23
- if (pixels === 0) {
24
- reject(new Error('Unable to determine video metadata'));
25
- return;
26
- }
27
22
  const onLoadedMetadata = () => {
23
+ const pixels = video.videoHeight * video.videoWidth;
24
+ if (pixels === 0) {
25
+ reject(new Error('Unable to determine video metadata'));
26
+ return;
27
+ }
28
28
  const metadata = {
29
29
  durationInSeconds: video.duration,
30
30
  width: video.videoWidth,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/media-utils",
3
- "version": "3.0.15",
3
+ "version": "3.0.16",
4
4
  "description": "Utility functions for audio and video",
5
5
  "main": "dist/index.js",
6
6
  "sideEffects": false,
@@ -18,7 +18,7 @@
18
18
  "url": "https://github.com/remotion-dev/remotion/issues"
19
19
  },
20
20
  "dependencies": {
21
- "remotion": "3.0.15"
21
+ "remotion": "3.0.16"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "react": ">=16.8.0",
@@ -44,5 +44,5 @@
44
44
  "publishConfig": {
45
45
  "access": "public"
46
46
  },
47
- "gitHead": "955b43714a53713963f862d3e9aec86de85f1ebd"
47
+ "gitHead": "9f09f61ae8fb65674d7dfbfc526a8f909d426519"
48
48
  }