ffmpegwasm / ffmpegwasm/ffmpeg.wasm

When executing await ffmpeg.load({...url}), the code doesn't continue to execute further.

Open
#815 11 comments 1 reaction 0 assignees View on GitHub
Dominant language
C
Stars
17.8k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

` if (!crossOriginIsolated) {
throw new Error('SharedArrayBuffer is not available. Please enable cross-origin isolation.')
}
this.ffmpeg.on('log', e => {
console.log(e.message)
})
this.ffmpeg.on('progress', e => {
console.log(e.progress)
})
const baseURL = 'https://unpkg.com/@ffmpeg/core@0.12.4/dist/esm'

await this.ffmpeg.load({
coreURL: await toBlobURL(`${baseURL}/ffmpeg-core.js`, 'text/javascript'),
wasmURL: await toBlobURL(`${baseURL}/ffmpeg-core.wasm`, 'application.wasm'),
// workerURL: await toBlobURL(`${baseURL}/ffmpeg-core.worker.js`, 'text/javascript')
})
this.isLoaded = true
console.log('FFmpeg loaded successfully')
}`

`console.log('FFmpeg loaded successfully')` does not exec。

THE version ffmpeg
` "@ffmpeg/ffmpeg": "^0.12.7",
"@ffmpeg/util": "^0.12.1",
"@ffmpeg/core": "^0.12.4"`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.