-
Notifications
You must be signed in to change notification settings - Fork 7
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
Unable to connect to WebRTC on the browser after running the code. #3
Comments
Hi! You also need to add the address of your server to: webrtcGameTemplate/public/index.html Line 31 in 81adbc8
|
@AlinaDovbysheva Hi! I did find a typo that shouldn't affect anything, but I went ahead and updated index.html, so definitely try that. Let me know if it works. |
Hmmm, that all looks fine. Is the go program showing that more ICE candidates are being sent? It will look like this in the terminal: |
problem with chrome |
Ohh interesting, yeah it is always tricky to work out bugs between different browsers :D It works for me in chrome version 102.0.5005.115, are you running the same version of chrome? |
The same 102.0.5005.115 |
Hi Will, thank you for sharing the WebRTC Game example code. I was intrigued by what WebRTC can do on gaming after watching your YouTube video, so I've tried out the code. But I've failed to generate the same result as yours in the video, and I hope you could give me a hint on what I may have gone wrong along with the steps.
So, after cloning the project to my PC(Debian Linux), I added the localhost IP (127.0.0.1) to the main.go file as the instruction says and ran the command line
go run .
in the terminal (go version: go 1.17.6). The result showed as below.Listening for WebRTC traffic at [::]:80
Then, when I opened a browser (Chrome) with
http://localhost
, what I was given was a web page with a message input area and a Send button like the pic. There was no game action area and the terminal didn't have any further updates from the terminal either. I'm not sure what had gone wrong, so could you give me any advice, please? Thanks.The text was updated successfully, but these errors were encountered: