Playground throws DataCloneError on Safari
Describe the bug
Ran playground (https://ffmpegwasm.netlify.app/playground/) on Safari 15.6.1 and it halts after loading the wasm bundle. A DataCloneError is thrown in console.
To Reproduce Steps to reproduce the behavior:
- Go to playground on Safari
- Wait until the error throws in console.
Expected behavior The wasm bundle should load on Safari.
Desktop (please complete the following information):
- OS: macOS Monterey
- Browser: Safari
- Version: 15.6.1
Hmm, it is tricky that I have no MacOS machine to test this one.
Ran a local build and put several BP's to trace execution, the underlying error is: message: "Aborted(CompileError: WebAssembly.Module doesn't parse at byte 3: can't get Function local's type in group 0, in function at index 11)…" which happens when the worker receives a message with type=LOAD. My wasm / emscripten knowledge is fairly limited but this points to the following issue: https://github.com/emscripten-core/emscripten/issues/18043
@jeromewu does this sound familiar? Might make it compatible by modifying compile params. I'd be happy to test as I have macOS.