@remotion/media-utils
Advanced tools
Comparing version 4.0.165 to 4.0.166
@@ -5,2 +5,3 @@ "use strict"; | ||
/* eslint-disable @typescript-eslint/no-use-before-define */ | ||
const media_tag_error_handling_1 = require("./media-tag-error-handling"); | ||
const p_limit_1 = require("./p-limit"); | ||
@@ -20,4 +21,9 @@ const limit = (0, p_limit_1.pLimit)(3); | ||
const onError = () => { | ||
reject(audio.error); | ||
cleanup(); | ||
(0, media_tag_error_handling_1.onMediaError)({ | ||
error: audio.error, | ||
src, | ||
cleanup, | ||
reject, | ||
api: 'getAudioDurationInSeconds()', | ||
}); | ||
}; | ||
@@ -24,0 +30,0 @@ const onLoadedMetadata = () => { |
@@ -6,2 +6,3 @@ "use strict"; | ||
const is_remote_asset_1 = require("./is-remote-asset"); | ||
const media_tag_error_handling_1 = require("./media-tag-error-handling"); | ||
const p_limit_1 = require("./p-limit"); | ||
@@ -21,4 +22,9 @@ const cache = {}; | ||
const onError = () => { | ||
reject(video.error); | ||
cleanup(); | ||
(0, media_tag_error_handling_1.onMediaError)({ | ||
error: video.error, | ||
src, | ||
cleanup, | ||
reject, | ||
api: 'getVideoMetadata()', | ||
}); | ||
}; | ||
@@ -25,0 +31,0 @@ const onLoadedMetadata = () => { |
{ | ||
"name": "@remotion/media-utils", | ||
"version": "4.0.165", | ||
"version": "4.0.166", | ||
"description": "Utility functions for audio and video", | ||
@@ -16,3 +16,3 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"remotion": "4.0.165" | ||
"remotion": "4.0.166" | ||
}, | ||
@@ -19,0 +19,0 @@ "peerDependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
44090
52
1053
2
+ Addedremotion@4.0.166(transitive)
- Removedremotion@4.0.165(transitive)
Updatedremotion@4.0.166