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

errors on export to html5 #80351

Closed
relaxslow opened this issue Aug 6, 2023 · 10 comments
Closed

errors on export to html5 #80351

relaxslow opened this issue Aug 6, 2023 · 10 comments

Comments

@relaxslow
Copy link

Godot version

4.1

System information

macos

Issue description

see screenshot
Screenshot 2023-08-06 at 3 53 19 PM
the engine seems started
but there is something wrong with the audio

Steps to reproduce

This error occurs each time when I connect to my server via https protocol
I have edit the template html and pointed all the resources include .pck and .wasm and .js to the correct path

Minimal reproduction project

minimalProject.zip

please export this little project to Html5
and host on a server

@Calinou
Copy link
Member

Calinou commented Aug 7, 2023

As the warning message says, you aren't allowed to play audio if no matching user input (such as a mouse click or touch input) was performed. This is a browser security measure you can't override.

@relaxslow
Copy link
Author

relaxslow commented Aug 7, 2023

thanks for response,
but I did not play any audio in the project. please check the minimal project . there is only a button there, and I want to test if the application can be safely export to html.
what I got is the graphic looks correct on the browser , but loading progress was very slow. so I check the console and find this error
Is there any way I can config the engine not to use audio or like

if this problem solved, I can use Godot as my frontend develop platform and not bother to learn other framework such as React or Babylon.js

@Calinou
Copy link
Member

Calinou commented Aug 7, 2023

Is there any way I can config the engine not to use audio or like

You can set the audio driver to Dummy in the advanced Project Settings, which will make the engine not initialize any kind of audio playback.

@relaxslow
Copy link
Author

relaxslow commented Aug 7, 2023

I'v find the property and set the value . but new error arised, see attached
and I can not return to the default setting
now the engine even not started

Screenshot 2023-08-07 at 11 08 25 AM Screenshot 2023-08-07 at 11 08 01 AM

here is my template html to export ,in case , I attached here if needed
Screenshot 2023-08-07 at 11 14 17 AM

@Calinou
Copy link
Member

Calinou commented Aug 7, 2023

and I can not return to the default setting

You can click the Revert button, which will remove the modified project setting from project.godot (and therefore revert to the default value for each platform).

@relaxslow
Copy link
Author

I revert back , but still can not get through

@relaxslow
Copy link
Author

relaxslow commented Aug 8, 2023

any update here? the graphic was showing after a long waiting , I still got error on the console
image

Screenshot 2023-08-08 at 9 28 23 AM

@relaxslow
Copy link
Author

relaxslow commented Aug 9, 2023

Hello, I zipped the files and upload the program to itch.io . I want to know if it is worked on there, but I got the following error
any suggestion?
image
The thing is , I can not find a way to set headers on itch.io

@Calinou
Copy link
Member

Calinou commented Aug 9, 2023

If you're using Safari, it's expected not to work currently due to upstream issues: #67949

Chrome will not work either unless you force it to use ANGLE's Metal backend using command line arguments: #70691

@relaxslow
Copy link
Author

thanks for clarify

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

No branches or pull requests

3 participants