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

WebRTC is not working on HTML5 export of Godot 4.2 Dev #80056

Open
GizGaze opened this issue Jul 30, 2023 · 6 comments
Open

WebRTC is not working on HTML5 export of Godot 4.2 Dev #80056

GizGaze opened this issue Jul 30, 2023 · 6 comments

Comments

@GizGaze
Copy link

GizGaze commented Jul 30, 2023

Godot version

4.2.dev

System information

Windows 10 - NVIDIA GeForce RTX 2080 SUPER [Version 531.29] - Godot 4.2.dev

Issue description

WebRTC is not working on HTML5 export of Godot 4.2 dev. In testing the Nakama-WebRTC demo project, I face a problem with Web export. Users get stuck in the connecting state.

Steps to reproduce

1- export the project in this link for HTML5. ( Test can be done by running the exported project locally or on a web host like itch.io.
2- configure a Nakama server with an SSL certificate and use port forwarding to secure the Nakama port
3- try to authenticate on the exported app.
4- create a room with one client and joint with another one.
5- It stucks in the connecting state.

Minimal reproduction project

NA (I didn't manipulate the original project except for port and server address)

@clayjohn
Copy link
Member

Is this the same as #80022?

@GizGaze
Copy link
Author

GizGaze commented Jul 31, 2023

Is this the same as #80022?

No, the previous one was related to HttpRequest this one is about making peer-to-peer connections using WebRTC.
The problem rises after authentication is done by HttpRequest.
The first user connects without a problem. But the other users who join the room are stuck in the connecting state.
I guess something goes wrong when add_peer wants to add the other users' players to the room.

@clayjohn
Copy link
Member

CC @dsnopek

@dsnopek
Copy link
Contributor

dsnopek commented Jul 31, 2023

I need some more time to investigate, but I strongly suspect this is a bug in my addon rather than Godot itself. On my Discord, another user has been having some trouble with the Godot 4 version of the addon - I was able to fix one of their bugs, but some still remain. I'll try to find some time this week to dig deeper into it.

@GizGaze
Copy link
Author

GizGaze commented Aug 1, 2023

I need some more time to investigate, but I strongly suspect this is a bug in my addon rather than Godot itself. On my Discord, another user has been having some trouble with the Godot 4 version of the addon - I was able to fix one of their bugs, but some remain. I'll try to find some time this week to dig deeper into it.

Actually I made some more tests and it works properly in Chrome browser. But in Mozilla, joining a room stucks in the connecting state. I'm trying to understand what is wrong with Mozilla.
Thanks for your awesome project anyway. I'm looking forward new modifications of the project.

@Faless
Copy link
Collaborator

Faless commented Nov 16, 2023

I can't seem to be able to reproduce using the webrtc_signaling demo, tested with both Chromium and Firefox

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

5 participants