Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lessons/wasm-video-to-gif/ #856

Open
utterances-bot opened this issue Jul 18, 2022 · 2 comments
Open

lessons/wasm-video-to-gif/ #856

utterances-bot opened this issue Jul 18, 2022 · 2 comments

Comments

@utterances-bot
Copy link

Video to GIF with WASM

Build a web app the converts video to animated GIF with Web Assembly.

https://fireship.io/lessons/wasm-video-to-gif/

Copy link

filmo commented Jul 18, 2022

I'm getting:

bc9651b6-278f-46fe-aca1-dd69fabd74fe:22 Uncaught (in promise) ReferenceError: SharedArrayBuffer is not defined
at bc9651b6-278f-46fe-aca1-dd69fabd74fe:22:175
at Object.load (@FFmpeg.ffmpeg.v0.10.1.js:385:20)
at async load (App.js:37:5)

when following along on this tutorial. Not sure how to fix. I reviewed this issue on github but adding a setupProxy.js file in src/ containing the following didn't seem to fix. Any thoughts on getting this example to work? Thank you in advance for your time and the tutorial.

module.exports = function (app) {
    app.use(function (req, res, next) {
        res.setHeader("Cross-Origin-Opener-Policy", "same-origin");
        res.setHeader("Cross-Origin-Embedder-Policy", "require-corp");
        next();
    });
};

@anweshandev
Copy link
Contributor

anweshandev commented Jul 20, 2022

Hey @filmo
This issue is the same issue I faced and solved the same. Check out the comment here.
fireship-io/react-wasm-gif-maker#2 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants