Git Product home page Git Product logo

Comments (5)

3261564019 avatar 3261564019 commented on June 8, 2024

也许你应该先通过writeFile写入字体

from ffmpeg.wasm.

syjf avatar syjf commented on June 8, 2024

也许你应该先通过writeFile写入字体

Good brother, I have solved this problem with my statement. Thank you for your reply, but now I have encountered a new problem. After adding 'Cross Origin Opener Policy': 'same origin' and 'Cross Origin Embeder Policy': 'credentials', I am unable to access other resources. Is there any solution

from ffmpeg.wasm.

syjf avatar syjf commented on June 8, 2024

也许你应该先通过writeFile写入字体

Good brother, I have solved this problem with my statement. Thank you for your reply, but now I have encountered a new problem. After adding 'Cross Origin Opener Policy': 'same origin' and 'Cross Origin Embeder Policy': 'credentials', I am unable to access other resources. Is there any solution

from ffmpeg.wasm.

syczuan avatar syczuan commented on June 8, 2024

也许你应该先通过writeFile写入字体

Good brother, I have solved this problem with my statement. Thank you for your reply, but now I have encountered a new problem. After adding 'Cross Origin Opener Policy': 'same origin' and 'Cross Origin Embeder Policy': 'credentials', I am unable to access other resources. Is there any solution

If you want to access other cross-origin resources after setting COOP and COEP, image resources can be resolved by setting crossorigin attribute in the img tag. It is recommended to separate the module using ffmpeg.wasm into its own page and set COOP and COEP specifically for this page. Refresh the page to reset the response headers each time you enter and exit this page.

from ffmpeg.wasm.

syjf avatar syjf commented on June 8, 2024

也许你应该先通过writeFile写入字体

好兄弟,我已经用我的陈述解决了这个问题。谢谢你的回复,但现在我遇到了一个新问题。添加“跨域打开程序策略”:“同源”和“跨域嵌入器策略”:“凭据”后,我无法访问其他资源。有什么解决办法吗

如果在设置 COOP 和 COEP 后想要访问其他跨域资源,可以通过在 img 标签中设置跨域属性来解析镜像资源。建议使用 ffmpeg.wasm 将模块分离到自己的页面中,并专门为此页面设置 COOP 和 COEP。刷新页面以在每次进入和退出此页面时重置响应标头。

Do you mean to only set COOP and COEP when entering pages with ffmpeg. wasm? Do you have any reference materials

from ffmpeg.wasm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.