fraunhoferhhi/vvdec

wasm SharedArrayBuffer is not defined

Closed this issue · 6 comments

wasm SharedArrayBuffer is not defined
K-os commented

I have no idea what you want to tell us. Please give enough information to reproduce the issue, otherwise I will close it.

I have no idea what you want to tell us. Please give enough information to reproduce the issue, otherwise I will close it.

image

Browser prohibits the use of SharedArrayBuffer

A proper bug report will require:

  • OS version
  • browser version
  • cross-check on another browser
  • any additional info

Are you using a company PC browser that might have some custom restrictions? Like, there's a screen-shot that I cannot even read and no info on how to reproduce....

All that said, the most probable resolution to your issue is that the decoder is incompatible with your browser. It's all standard WASM technology as far as I know. That's why we also don't support Safari.

Also, you are using a custom application. Did you try 1:1 to use our setup provided in https://github.com/fraunhoferhhi/vvdecWebPlayer? That did work for me last I time tried.

K-os commented

You probably did not set the correct HTTP-headers in the webserver to use SharedArrayBuffer. You need to set Cross-Origin-Opener-Policy: same-origin and Cross-Origin-Embedder-Policy: require-corp.
See here: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer

K-os commented

I guess the problem has been solved.