@remotion/media 4.0.397 → 4.0.398
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.
|
@@ -73,6 +73,10 @@ export const AudioForRendering = ({ volume: volumeProp, playbackRate, src, muted
|
|
|
73
73
|
})
|
|
74
74
|
.then((result) => {
|
|
75
75
|
if (result.type === 'unknown-container-format') {
|
|
76
|
+
if (environment.isClientSideRendering) {
|
|
77
|
+
cancelRender(new Error(`Cannot render audio "${src}": Unknown container format. See supported formats: https://www.remotion.dev/docs/mediabunny/formats`));
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
76
80
|
if (disallowFallbackToHtml5Audio) {
|
|
77
81
|
cancelRender(new Error(`Unknown container format ${src}, and 'disallowFallbackToHtml5Audio' was set. Failing the render.`));
|
|
78
82
|
}
|
|
@@ -84,6 +88,10 @@ export const AudioForRendering = ({ volume: volumeProp, playbackRate, src, muted
|
|
|
84
88
|
return;
|
|
85
89
|
}
|
|
86
90
|
if (result.type === 'cannot-decode') {
|
|
91
|
+
if (environment.isClientSideRendering) {
|
|
92
|
+
cancelRender(new Error(`Cannot render audio "${src}": The audio could not be decoded by the browser.`));
|
|
93
|
+
return;
|
|
94
|
+
}
|
|
87
95
|
if (disallowFallbackToHtml5Audio) {
|
|
88
96
|
cancelRender(new Error(`Cannot decode ${src}, and 'disallowFallbackToHtml5Audio' was set. Failing the render.`));
|
|
89
97
|
}
|
|
@@ -98,6 +106,10 @@ export const AudioForRendering = ({ volume: volumeProp, playbackRate, src, muted
|
|
|
98
106
|
throw new Error(`Cannot decode alpha component for ${src}, and 'disallowFallbackToHtml5Audio' was set. But this should never happen, since you used the <Audio> tag. Please report this as a bug.`);
|
|
99
107
|
}
|
|
100
108
|
if (result.type === 'network-error') {
|
|
109
|
+
if (environment.isClientSideRendering) {
|
|
110
|
+
cancelRender(new Error(`Cannot render audio "${src}": Network error while fetching the audio (possibly CORS).`));
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
101
113
|
if (disallowFallbackToHtml5Audio) {
|
|
102
114
|
cancelRender(new Error(`Cannot decode ${src}, and 'disallowFallbackToHtml5Audio' was set. Failing the render.`));
|
|
103
115
|
}
|
package/dist/esm/index.mjs
CHANGED
|
@@ -3716,6 +3716,10 @@ var AudioForRendering = ({
|
|
|
3716
3716
|
maxCacheSize
|
|
3717
3717
|
}).then((result) => {
|
|
3718
3718
|
if (result.type === "unknown-container-format") {
|
|
3719
|
+
if (environment.isClientSideRendering) {
|
|
3720
|
+
cancelRender2(new Error(`Cannot render audio "${src}": Unknown container format. See supported formats: https://www.remotion.dev/docs/mediabunny/formats`));
|
|
3721
|
+
return;
|
|
3722
|
+
}
|
|
3719
3723
|
if (disallowFallbackToHtml5Audio) {
|
|
3720
3724
|
cancelRender2(new Error(`Unknown container format ${src}, and 'disallowFallbackToHtml5Audio' was set. Failing the render.`));
|
|
3721
3725
|
}
|
|
@@ -3727,6 +3731,10 @@ var AudioForRendering = ({
|
|
|
3727
3731
|
return;
|
|
3728
3732
|
}
|
|
3729
3733
|
if (result.type === "cannot-decode") {
|
|
3734
|
+
if (environment.isClientSideRendering) {
|
|
3735
|
+
cancelRender2(new Error(`Cannot render audio "${src}": The audio could not be decoded by the browser.`));
|
|
3736
|
+
return;
|
|
3737
|
+
}
|
|
3730
3738
|
if (disallowFallbackToHtml5Audio) {
|
|
3731
3739
|
cancelRender2(new Error(`Cannot decode ${src}, and 'disallowFallbackToHtml5Audio' was set. Failing the render.`));
|
|
3732
3740
|
}
|
|
@@ -3741,6 +3749,10 @@ var AudioForRendering = ({
|
|
|
3741
3749
|
throw new Error(`Cannot decode alpha component for ${src}, and 'disallowFallbackToHtml5Audio' was set. But this should never happen, since you used the <Audio> tag. Please report this as a bug.`);
|
|
3742
3750
|
}
|
|
3743
3751
|
if (result.type === "network-error") {
|
|
3752
|
+
if (environment.isClientSideRendering) {
|
|
3753
|
+
cancelRender2(new Error(`Cannot render audio "${src}": Network error while fetching the audio (possibly CORS).`));
|
|
3754
|
+
return;
|
|
3755
|
+
}
|
|
3744
3756
|
if (disallowFallbackToHtml5Audio) {
|
|
3745
3757
|
cancelRender2(new Error(`Cannot decode ${src}, and 'disallowFallbackToHtml5Audio' was set. Failing the render.`));
|
|
3746
3758
|
}
|
|
@@ -4360,6 +4372,10 @@ var VideoForRendering = ({
|
|
|
4360
4372
|
maxCacheSize
|
|
4361
4373
|
}).then((result) => {
|
|
4362
4374
|
if (result.type === "unknown-container-format") {
|
|
4375
|
+
if (environment.isClientSideRendering) {
|
|
4376
|
+
cancelRender3(new Error(`Cannot render video "${src}": Unknown container format. See supported formats: https://www.remotion.dev/docs/mediabunny/formats`));
|
|
4377
|
+
return;
|
|
4378
|
+
}
|
|
4363
4379
|
if (disallowFallbackToOffthreadVideo) {
|
|
4364
4380
|
cancelRender3(new Error(`Unknown container format ${src}, and 'disallowFallbackToOffthreadVideo' was set. Failing the render.`));
|
|
4365
4381
|
}
|
|
@@ -4370,6 +4386,10 @@ var VideoForRendering = ({
|
|
|
4370
4386
|
return;
|
|
4371
4387
|
}
|
|
4372
4388
|
if (result.type === "cannot-decode") {
|
|
4389
|
+
if (environment.isClientSideRendering) {
|
|
4390
|
+
cancelRender3(new Error(`Cannot render video "${src}": The video could not be decoded by the browser.`));
|
|
4391
|
+
return;
|
|
4392
|
+
}
|
|
4373
4393
|
if (disallowFallbackToOffthreadVideo) {
|
|
4374
4394
|
cancelRender3(new Error(`Cannot decode ${src}, and 'disallowFallbackToOffthreadVideo' was set. Failing the render.`));
|
|
4375
4395
|
}
|
|
@@ -4382,6 +4402,10 @@ var VideoForRendering = ({
|
|
|
4382
4402
|
return;
|
|
4383
4403
|
}
|
|
4384
4404
|
if (result.type === "cannot-decode-alpha") {
|
|
4405
|
+
if (environment.isClientSideRendering) {
|
|
4406
|
+
cancelRender3(new Error(`Cannot render video "${src}": The alpha channel could not be decoded by the browser.`));
|
|
4407
|
+
return;
|
|
4408
|
+
}
|
|
4385
4409
|
if (disallowFallbackToOffthreadVideo) {
|
|
4386
4410
|
cancelRender3(new Error(`Cannot decode alpha component for ${src}, and 'disallowFallbackToOffthreadVideo' was set. Failing the render.`));
|
|
4387
4411
|
}
|
|
@@ -4394,6 +4418,10 @@ var VideoForRendering = ({
|
|
|
4394
4418
|
return;
|
|
4395
4419
|
}
|
|
4396
4420
|
if (result.type === "network-error") {
|
|
4421
|
+
if (environment.isClientSideRendering) {
|
|
4422
|
+
cancelRender3(new Error(`Cannot render video "${src}": Network error while fetching the video (possibly CORS).`));
|
|
4423
|
+
return;
|
|
4424
|
+
}
|
|
4397
4425
|
if (disallowFallbackToOffthreadVideo) {
|
|
4398
4426
|
cancelRender3(new Error(`Cannot decode ${src}, and 'disallowFallbackToOffthreadVideo' was set. Failing the render.`));
|
|
4399
4427
|
}
|
|
@@ -78,6 +78,10 @@ export const VideoForRendering = ({ volume: volumeProp, playbackRate, src, muted
|
|
|
78
78
|
})
|
|
79
79
|
.then((result) => {
|
|
80
80
|
if (result.type === 'unknown-container-format') {
|
|
81
|
+
if (environment.isClientSideRendering) {
|
|
82
|
+
cancelRender(new Error(`Cannot render video "${src}": Unknown container format. See supported formats: https://www.remotion.dev/docs/mediabunny/formats`));
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
81
85
|
if (disallowFallbackToOffthreadVideo) {
|
|
82
86
|
cancelRender(new Error(`Unknown container format ${src}, and 'disallowFallbackToOffthreadVideo' was set. Failing the render.`));
|
|
83
87
|
}
|
|
@@ -88,6 +92,10 @@ export const VideoForRendering = ({ volume: volumeProp, playbackRate, src, muted
|
|
|
88
92
|
return;
|
|
89
93
|
}
|
|
90
94
|
if (result.type === 'cannot-decode') {
|
|
95
|
+
if (environment.isClientSideRendering) {
|
|
96
|
+
cancelRender(new Error(`Cannot render video "${src}": The video could not be decoded by the browser.`));
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
91
99
|
if (disallowFallbackToOffthreadVideo) {
|
|
92
100
|
cancelRender(new Error(`Cannot decode ${src}, and 'disallowFallbackToOffthreadVideo' was set. Failing the render.`));
|
|
93
101
|
}
|
|
@@ -100,6 +108,10 @@ export const VideoForRendering = ({ volume: volumeProp, playbackRate, src, muted
|
|
|
100
108
|
return;
|
|
101
109
|
}
|
|
102
110
|
if (result.type === 'cannot-decode-alpha') {
|
|
111
|
+
if (environment.isClientSideRendering) {
|
|
112
|
+
cancelRender(new Error(`Cannot render video "${src}": The alpha channel could not be decoded by the browser.`));
|
|
113
|
+
return;
|
|
114
|
+
}
|
|
103
115
|
if (disallowFallbackToOffthreadVideo) {
|
|
104
116
|
cancelRender(new Error(`Cannot decode alpha component for ${src}, and 'disallowFallbackToOffthreadVideo' was set. Failing the render.`));
|
|
105
117
|
}
|
|
@@ -112,6 +124,10 @@ export const VideoForRendering = ({ volume: volumeProp, playbackRate, src, muted
|
|
|
112
124
|
return;
|
|
113
125
|
}
|
|
114
126
|
if (result.type === 'network-error') {
|
|
127
|
+
if (environment.isClientSideRendering) {
|
|
128
|
+
cancelRender(new Error(`Cannot render video "${src}": Network error while fetching the video (possibly CORS).`));
|
|
129
|
+
return;
|
|
130
|
+
}
|
|
115
131
|
if (disallowFallbackToOffthreadVideo) {
|
|
116
132
|
cancelRender(new Error(`Cannot decode ${src}, and 'disallowFallbackToOffthreadVideo' was set. Failing the render.`));
|
|
117
133
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/media",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.398",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"module": "dist/esm/index.mjs",
|
|
@@ -22,14 +22,14 @@
|
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"mediabunny": "1.27.2",
|
|
25
|
-
"remotion": "4.0.
|
|
25
|
+
"remotion": "4.0.398"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"react": ">=16.8.0",
|
|
29
29
|
"react-dom": ">=16.8.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
32
|
+
"@remotion/eslint-config-internal": "4.0.398",
|
|
33
33
|
"@vitest/browser-webdriverio": "4.0.9",
|
|
34
34
|
"eslint": "9.19.0",
|
|
35
35
|
"react": "19.2.3",
|