-
Notifications
You must be signed in to change notification settings - Fork 30
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
crash createFFmpeg.js:64 #15
Comments
What browser are you using? https://caniuse.com/sharedarraybuffer |
Firefox – which has disabled |
I just tried the demo on https://ffmpegwasm.github.io/vue-app/ Using Chrome Version 92.0.4515.107 64 bits |
@jaronwanderley Is is still not working ? I have no issue and I can't reproduce the bug. |
Yep, still there on https://ffmpegwasm.github.io/vue-app/ :
Windows Chrome Version 92.0.4515.131 32 bits:
|
You can try that on Linux :
source (with mac & windows instructions as well) : https://web.dev/cross-origin-isolation-guide/ Ideally you'd have to set HTTP headers for cross origin isolation, my solution is just a fix for local development. |
Adding cross origin headers to the vue.config.js fixed this for me locally const path = require('path');
const express = require('express');
module.exports = {
publicPath: process.env.NODE_ENV === 'production'
? '/vue-app/'
: '/',
configureWebpack: {
devServer: {
before: app => {
app.use('/node_modules/', express.static(path.resolve(__dirname, 'node_modules')))
},
headers: { "Cross-Origin-Embedder-Policy" : "require-corp",
"Cross-Origin-Opener-Policy" : "same-origin" }
}
}
}; |
Is it only possible to make that work by setting the require-corp and same-origin headers? |
Uncaught (in promise) ReferenceError: SharedArrayBuffer is not defined
createFFmpegCore 5aa0d9cb-82b7-b843-95f8-5e7cf39ad9f7:22
load createFFmpeg.js:64
The text was updated successfully, but these errors were encountered: