ffmpeg.wasm icon indicating copy to clipboard operation
ffmpeg.wasm copied to clipboard

Does ffmpeg. wasm not support Chinese?

Open syjf opened this issue 1 year ago • 6 comments

Why did I add garbled Chinese characters to my text Does anyone know

syjf avatar Apr 13 '24 02:04 syjf

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

3261564019 avatar Apr 19 '24 08:04 3261564019

也许你应该先通过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

syjf avatar Apr 19 '24 08:04 syjf

也许你应该先通过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

syjf avatar Apr 19 '24 08:04 syjf

也许你应该先通过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.

syczuan avatar Apr 27 '24 16:04 syczuan

也许你应该先通过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

syjf avatar Apr 28 '24 00:04 syjf

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

能加个V或者QQ请教下吗,我这有些字体可以正常显示,有些不能

syjf avatar Jun 11 '24 05:06 syjf