Skip to content
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

Does ffmpeg. wasm not support Chinese? #727

Open
syjf opened this issue Apr 13, 2024 · 6 comments
Open

Does ffmpeg. wasm not support Chinese? #727

syjf opened this issue Apr 13, 2024 · 6 comments

Comments

@syjf
Copy link

syjf commented Apr 13, 2024

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

@3261564019
Copy link

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

@syjf
Copy link
Author

syjf commented Apr 19, 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

1 similar comment
@syjf
Copy link
Author

syjf commented Apr 19, 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

@syczuan
Copy link

syczuan commented Apr 27, 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.

@syjf
Copy link
Author

syjf commented Apr 28, 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

@syjf
Copy link
Author

syjf commented Jun 11, 2024

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants