Skip to content

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

Open
@bestycw

Description

@bestycw

` 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/[email protected]/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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions