fraunhoferhhi / vvdec

VVdeC, the Fraunhofer Versatile Video Decoder
https://www.hhi.fraunhofer.de/en/departments/vca/technologies-and-solutions/h266-vvc.html
BSD 3-Clause Clear License
454 stars 91 forks source link

wasm SharedArrayBuffer is not defined #172

Closed duanyuanyuan01 closed 4 months ago

K-os commented 6 months ago

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

duanyuanyuan01 commented 5 months ago

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

adamjw24 commented 5 months ago

A proper bug report will require:

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.

adamjw24 commented 5 months ago

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 5 months ago

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 4 months ago

I guess the problem has been solved.