ffmpegwasm / ffmpegwasm/ffmpeg.wasm

Uncaught ReferenceError: FFmpeg is not defined

オープン
#256 コメント 3 件 リアクション 3 件 担当者 0 名 GitHub で見る
主要言語
C
スター
17.8k
フォーク
1.1k
PR マージ指標
30日以内にマージされた PR はありません

説明

I was having the [SharedArrayBuffer error as described in this other issue](https://github.com/ffmpegwasm/ffmpeg.wasm/issues/231) and to fix I added the cross origin isolation as suggested by adding the headers

```
Cross-Origin-Opener-Policy: same-origin
Cross-Origin-Embedder-Policy: require-corp
```

After that, now when I try to run the code I just got **Uncaught ReferenceError: FFmpeg is not defined**. The error is happening on Firefox

My code is:
```


const { createFFmpeg, fetchFile } = FFmpeg; //error happens here
const ffmpegInstance = createFFmpeg({
corePath: 'https://unpkg.com/@ffmpeg/core@0.10.0/dist/ffmpeg-core.js',
log: true,
});

```

On Brave browser the process ran ok without having to add the Cross origin headers and also `FFmpeg` variable was defined.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。