@remotion/media-utils 4.0.170 → 4.0.172
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.
|
@@ -36,7 +36,7 @@ const checkFor404OrSkip = async ({ suspecting404, sameOrigin, src, }) => {
|
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
38
|
const onMediaError = ({ error, src, reject, cleanup, api, }) => {
|
|
39
|
-
const suspecting404 =
|
|
39
|
+
const suspecting404 = error.MEDIA_ERR_SRC_NOT_SUPPORTED === error.code;
|
|
40
40
|
const isSrcSameOriginAsCurrent = new URL(src, window.location.origin)
|
|
41
41
|
.toString()
|
|
42
42
|
.startsWith(window.location.origin);
|
|
@@ -54,8 +54,11 @@ const onMediaError = ({ error, src, reject, cleanup, api, }) => {
|
|
|
54
54
|
: new Error([
|
|
55
55
|
`Failed to execute ${api}, Received a MediaError loading "${src}".`,
|
|
56
56
|
status === null
|
|
57
|
-
?
|
|
57
|
+
? null
|
|
58
58
|
: `HTTP Status code of the file: ${status}.`,
|
|
59
|
+
error.message
|
|
60
|
+
? `Browser error message: ${error.message}`
|
|
61
|
+
: null,
|
|
59
62
|
'Check the path of the file and if it is a valid video.',
|
|
60
63
|
]
|
|
61
64
|
.filter(Boolean)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/media-utils",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.172",
|
|
4
4
|
"description": "Utility functions for audio and video",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"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.
|
|
16
|
+
"remotion": "4.0.172"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
19
19
|
"react": ">=16.8.0",
|