When using ffmpeg-core, an error is reported to solve Uncaught (in promise) ReferenceError: SharedArrayBuffer is not defined

The above error occurs

The first one: The URL does not start with https , which is easy to solve.

The second type: need to use the following method to solve.

 access

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

 

 

Add it to the header node of index.html in the root directory

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

Just run the program

No more errors SharedArrayBuffer is not defined

Reminder: Remember to go to Google to renew the Token regularly every year, otherwise you will continue to report errors when it expires!

Guess you like

Origin blog.csdn.net/qq_37860634/article/details/132048553
Recommended