使用ffmpeg-core的时候报错,解决Uncaught (in promise) ReferenceError: SharedArrayBuffer is not defined

出现以上报错的情况

第一种:网址不是https开头的,这种好解决。

第二种:需要用下面的方法解决。

 访问

https://developer.chrome.com/origintrials/#/trials/activehttps://developer.chrome.com/origintrials/#/trials/active找到SharedArrayBuffers in non-isolated pages on Desktop platforms

 

 

在根目录的index.html的header节点内加入

<meta http-equiv="origin-trial"content="At6nXqd**********RydWV9" >

运行程序就可以了

再也不报错了SharedArrayBuffer is not defined

温馨提示:记得每年都定期去google续期Token哟,否者到期还是会继续报错的!

猜你喜欢

转载自blog.csdn.net/qq_37860634/article/details/132048553