@@ -31,8 +31,14 @@ function() {
31
31
// toBlobURL is used to bypass CORS issue, urls with the same
32
32
// domain can be used directly.
33
33
await ffmpeg .load ({
34
- coreURL: await toBlobURL (` ${ baseURL} /ffmpeg-core.js` ),
35
- wasmURL: await toBlobURL (` ${ baseURL} /ffmpeg-core.wasm` ),
34
+ coreURL: await toBlobURL (
35
+ ` ${ baseURL} /ffmpeg-core.js` ,
36
+ " text/javascript" ,
37
+ ),
38
+ wasmURL: await toBlobURL (
39
+ ` ${ baseURL} /ffmpeg-core.wasm` ,
40
+ " application/wasm" ,
41
+ ),
36
42
});
37
43
setLoaded (true );
38
44
}
@@ -89,9 +95,18 @@ function() {
89
95
// toBlobURL is used to bypass CORS issue, urls with the same
90
96
// domain can be used directly.
91
97
await ffmpeg .load ({
92
- coreURL: await toBlobURL (` ${ baseURL} /ffmpeg-core.js` ),
93
- wasmURL: await toBlobURL (` ${ baseURL} /ffmpeg-core.wasm` ),
94
- workerURL: await toBlobURL (` ${ baseURL} /ffmpeg-core.worker.js` ),
98
+ coreURL: await toBlobURL (
99
+ ` ${ baseURL} /ffmpeg-core.js` ,
100
+ " text/javascript" ,
101
+ ),
102
+ wasmURL: await toBlobURL (
103
+ ` ${ baseURL} /ffmpeg-core.wasm` ,
104
+ " application/wasm" ,
105
+ ),
106
+ workerURL: await toBlobURL (
107
+ ` ${ baseURL} /ffmpeg-core.worker.js` ,
108
+ " text/javascript" ,
109
+ ),
95
110
thread: true ,
96
111
});
97
112
setLoaded (true );
@@ -148,8 +163,14 @@ function() {
148
163
// toBlobURL is used to bypass CORS issue, urls with the same
149
164
// domain can be used directly.
150
165
await ffmpeg .load ({
151
- coreURL: await toBlobURL (` ${ baseURL} /ffmpeg-core.js` ),
152
- wasmURL: await toBlobURL (` ${ baseURL} /ffmpeg-core.wasm` ),
166
+ coreURL: await toBlobURL (
167
+ ` ${ baseURL} /ffmpeg-core.js` ,
168
+ " text/javascript" ,
169
+ ),
170
+ wasmURL: await toBlobURL (
171
+ ` ${ baseURL} /ffmpeg-core.wasm` ,
172
+ " application/wasm" ,
173
+ ),
153
174
});
154
175
setLoaded (true );
155
176
}
@@ -203,8 +224,14 @@ function() {
203
224
// toBlobURL is used to bypass CORS issue, urls with the same
204
225
// domain can be used directly.
205
226
await ffmpeg .load ({
206
- coreURL: await toBlobURL (` ${ baseURL} /ffmpeg-core.js` ),
207
- wasmURL: await toBlobURL (` ${ baseURL} /ffmpeg-core.wasm` ),
227
+ coreURL: await toBlobURL (
228
+ ` ${ baseURL} /ffmpeg-core.js` ,
229
+ " text/javascript" ,
230
+ ),
231
+ wasmURL: await toBlobURL (
232
+ ` ${ baseURL} /ffmpeg-core.wasm` ,
233
+ " application/wasm" ,
234
+ ),
208
235
});
209
236
setLoaded (true );
210
237
}
0 commit comments