Comments (5)
I can't seem to be able to reproduce using the webrtc_signaling demo, tested with both Chromium and Firefox
from webrtc-native.
Indeed, I took the signaling demo, created a HTML5 export of it, and tweaked the NodeJS server to serve the HTML5 export with a static file endpoint, and everything seems to work fine.
I guess I'm doing something wrong in my demo, but it's not immediately obvious what it is.
from webrtc-native.
I just realized that the WebRTCPeerConnection.ice_candidate_created
signal is not triggering, and it's because I forgot to call mp_connections.get_peer(MultiplayerPeer.TARGET_PEER_SERVER).get("connection").set_local_description(type, sdp)
in the client. After adding that line, it works in the browser.
Out of curiosity, why do the native clients work fine without setting the local description?
from webrtc-native.
Out of curiosity, why do the native clients work fine without setting the local description?
IIRC that is a quirk in the library we use, i.e. there is (was?) no way to create an offer without calling set_local_description.
We should investigate if that changed in recent versions, or if we can ask upstream to allow that.
from webrtc-native.
See:
webrtc-native/src/WebRTCLibPeerConnection.cpp
Lines 233 to 239 in cf23e5e
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
- 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
- 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.