File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import type { LogEvent } from '@ffmpeg/ffmpeg/dist/esm/types'
1111import { fetchFile , toBlobURL } from ' @ffmpeg/util'
1212import { defineComponent , ref } from ' vue'
1313
14- const baseURL = ' https://unpkg.com/@ffmpeg/core@0.12.1 /dist/esm'
14+ const baseURL = ' https://unpkg.com/@ffmpeg/core-mt @0.12.2 /dist/esm'
1515const videoURL = ' https://ffmpegwasm.netlify.app/video/video-15s.avi'
1616
1717export default defineComponent ({
@@ -28,7 +28,8 @@ export default defineComponent({
2828 })
2929 await ffmpeg .load ({
3030 coreURL: await toBlobURL (` ${baseURL }/ffmpeg-core.js ` , ' text/javascript' ),
31- wasmURL: await toBlobURL (` ${baseURL }/ffmpeg-core.wasm ` , ' applicaiton/wasm' )
31+ wasmURL: await toBlobURL (` ${baseURL }/ffmpeg-core.wasm ` , ' applicaiton/wasm' ),
32+ workerURL: await toBlobURL (` ${baseURL }/ffmpeg-core.worker.js ` , ' text/javascript' )
3233 })
3334 message .value = ' Start transcoding'
3435 await ffmpeg .writeFile (' test.avi' , await fetchFile (videoURL ))
Original file line number Diff line number Diff line change @@ -11,5 +11,11 @@ export default defineConfig({
1111 alias : {
1212 '@' : fileURLToPath ( new URL ( './src' , import . meta. url ) )
1313 }
14+ } ,
15+ server : {
16+ headers : {
17+ 'Cross-Origin-Opener-Policy' : 'same-origin' ,
18+ 'Cross-Origin-Embedder-Policy' : 'require-corp'
19+ }
1420 }
1521} )
You can’t perform that action at this time.
0 commit comments