Comments (3)
It would take a bit of work to thin it down to just that WebRTCmultiplayerclient example. It would be easy to show if there was a minimal WebRTC multiplayer example in the networking demo projects, and to keep it self-contained it could use WebSockets as the signalling system
You mean the WebRTC signaling demo
?
from webrtc-native.
I've finally got the example derived from the signalling demo with an ugly toggle button "Addpeerbeforesetdescription" to swap the order of the function calls.
I've used a peerslist = {}
to keep track of the peers created, instead of fetching them back using the WebRTCMultiplayer.get_peer(id).connection
function.
It's necessary to call WebRTCPeerConnection.add_peer(peer)
before peer.create_offer()
However on the receiving end of the Offer your library lets me get away with add_peer()
after set_remote_description()
:
var rtc_mp = WebRTCMultiplayer.new()
peer.set_remote_description("offer", offer)
rtc_mp.add_peer(peer, id)
I have confirmed that the HTML5 implementation does not work for this, but your library does.
To run the HTML5 version:
- Run a copy of
WebRTC_signalling_demo
on the command line and click on the Signalling server:Listen
button. - Run the exported HTML5
- Hit
Start
on the top left panel - Paste the string after
Joined lobby
into the RoomSecret
line edit box - Hit
Start
on the top right panel - ... then some stuff happens (or doesn't) to indicate a WebRTC connection has been established.
This is now running on Godot version 3.4.
The reason this issue matters is it's easier to develop WebRTC code against this plugin than on the HTML5 platform, so this is where people are going to be looking for their bugs.
from webrtc-native.
This is fixed in the master
branch which uses libdatachannel as rtc library, tested with Godot 3.5.1
and plugin version 1.0.0-beta5
.
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
- The SConstruct does not work for osx platform HOT 3
- Is is possible to make a build for every Godot 4.0 beta? HOT 4
- Problem with Higl Level Multiplayer Api HOT 3
- Cannot build on Windows HOT 6
- Godot 4.0 beta 5 crashes when loading extension HOT 2
- Calling WebRTCPeerConnection.CreateDataChannel in C# throws External component has thrown an exception. HOT 2
- When runing function create_offer() of WebRTCPeerConnection from the editor 1-10000 times, there is approximately 1 and more constant error _create_offer: Failed to gather local ICE candidates HOT 3
- 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.