Comments (13)
Update: running the above project in Godot 3.2 Alpha 2 has no issues as expected.
from webrtc-native.
from webrtc-native.
it is strange. I started up a nodejs instance on a mac.
https://github.com/godotengine/godot-demo-projects/tree/master/networking/webrtc_signaling/server_node
Then on Windows I connected to it with Godot 3.2 for the webrtc_signaling demo using the address of the mac. Without adding this GDNative plugin to the webrtc_signaling demo project folder.
But after adding this plug as required. The webrtc_signaling demo cannot make a connection to the Mac that is running the nodejs server code.
ERROR: _get_socket_error: Socket error: 10022
At: drivers/unix/net_socket_posix.cpp:198
ERROR: connect_to_host: Connection to remote host failed!
At: drivers/unix/net_socket_posix.cpp:425
Signaling server disconnected: 1000 - Unknown
Disconnected: 1000: Unknown
Update:
However if I go into Project Settings -> GDNative, and disable both webrtc.tres and webrtc_debug.tres I am then able to connect to the remote nodejs server.
Signaling server connected with ID: 1
Joined lobby HceN79Uj26F820i3
from webrtc-native.
from webrtc-native.
from webrtc-native.
from webrtc-native.
from webrtc-native.
Sorry just wanted to note I had used the 64bit build of Windows with the 0.3 Plugin release.
https://downloads.tuxfamily.org/godotengine/3.2/alpha2/Godot_v3.2-alpha2_win64.exe.zip
from webrtc-native.
Sorry if this appears as a duplicate msg as my last post was lost somehow. Just wanted to point out I had used the Win64 binary of Godot 3.2 Alpha 2 with the prebuilt v0.3 WebRTC plugin.
from webrtc-native.
Note I had only tested Signaling in that example. I just checked out your bomber-rtc demo to gain some more clarity on what works...
When I:
Enable the webrtc-native plugin:
- Local Signaling and WebRTC works
- Remote Signaling fails, doesn't make it to WebRTC step
Disable the webrtc-native plugin:
- Remote Signaling works but WebRTC fails
from webrtc-native.
I can confirm the above behaviour both in 3.2 Alpha 1 and Alpha 2. bomber-rtc works as expected in linux but on windows I get the following errors when using a remote signalling server:
webrtc-native plugin disabled:
- Windows client connects to signalling server and receives a lobby ID.
- Throws an ERR_UNCONFIGURED error when an RPC is made (to be expected)
- Even just building and then deleting the copied-over webRTC dll will get you to this state.
webrtc-native plugin enabled:
- Socket error 10022 (drivers/unix/net_socket_posix.cpp:197 @ _get_socket_error())
- Signalling server does not even see the request
Changing the port to a lower value, such as 567 eliminates the socket error but then produces:
thirdparty\mbedtls\library\ssl_tls.c:4064: unknown record type thirdparty\mbedtls\library\ssl_tls.c:4344: ssl_get_next_record() returned -29184 (-0x7200) thirdparty\mbedtls\library\ssl_cli.c:1506: mbedtls_ssl_read_record() returned -29184 (-0x7200) ERROR: StreamPeerMbedTLS::_do_handshake: TLS handshake error: -29184 At: modules\mbedtls\stream_peer_mbedtls.cpp:91 mbedtls error: returned -0x7200
This seems to be the case for both 32/64 bit windows.
If I connect to a local signalling server, everything appears to work.
Will look into rebuilding the plugin against the latest headers. Let me know if there's any specific debugging information that would be helpful!
from webrtc-native.
@dryw Thank you for testing my Windows case as well. It's good to know Linux is ok. I was trying to build the plugin for MacOS but the native code reference for the webrtc_ios target was pushing over 10GB to download on my machine and I ran out of disk space. They say you need under 6GB but my sync grew much larger.
Btw I tested a different port when trying the bomber example on Heroku which might work on linux,
e.g.: ws://bomber-rtc.herokuapp.com
Heroku sets it's own ports so you must update line 6 in server.js to load by ENV:
const PORT = process.env.PORT || 9080;
Note: @Faless it may be ideal to create an external bomber-rtc app on free Heroku to test remote Signaling code changes for godot. The URL given above isn't set up as I reserved a different name to test so not to take over ownership.
from webrtc-native.
Discussion moved to a separate issue (#6).
Clsoing.
from webrtc-native.
Related Issues (20)
- NixOS error: libstdc++.so.6: cannot open shared object file: No such file or directory
- Can't establish a communication in NakamaWebRTC project HOT 1
- WebRtcPeerConnection is failing half the time on C# HOT 5
- Can't load WebRTC native plugin on the Mac HOT 2
- Plugin is available in the AssetLib but installs wrongly. HOT 3
- Exporting .ipa to appstore fails HOT 2
- Extension crashes on startup HOT 6
- MacOS, The developer cannot be verified HOT 10
- ICE exchange does not work properly when a native client creates an offer to a browser HOT 5
- Can't build with Godot 4.2-rc1 and MSVC HOT 2
- Crash when using along other GDExtensions HOT 32
- `Invalid candidate format` When adding an ice candidate generated from browser WebRTC HOT 3
- Error when exporting for Web: No suitable library found for GDExtension HOT 3
- Installing from asset library doesnt put everything in a addons/ folder HOT 1
- Enable logging in godot as well HOT 1
- catch ice invalid url error HOT 4
- Exporting to MacOS creates an error.
- Make builds for major and minor releases HOT 3
- Linux: bad glibc version HOT 3
- Release export crash HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webrtc-native.