Comments (4)
Could you attach the full code that can reproduce the problem?
from com.unity.webrtc.
Hi,
this is pretty much all I am doing
`
public bool AddDataChannel(string InDataChannelLabel, DataChannelReady OnReady, DataChannelClosed OnClosed, DataChannelReceived OnRecv)
{
// do not open a data channel twice for the same label
if (this.DataChannels.ContainsKey(InDataChannelLabel))
return false;
RTCDataChannelInit Options = default;
var DC = this.PC.CreateDataChannel(InDataChannelLabel, ref Options);
if (DC == null)
return false;
// store data channel handle
this.DataChannels.Add(InDataChannelLabel, DC);
// hook-up events
DC.OnOpen += () => { if (OnReady != null) { OnReady.Invoke(); } };
DC.OnClose += () =>
{
if (OnClosed != null) { OnClosed.Invoke(); }
DC.OnMessage = null;
};
DC.OnMessage += (bytes) => { if (OnRecv != null) { OnRecv.Invoke(bytes); } };
return true;
}
`
I called the WebRTC.Init method before. PC is an initialized PeerConnection object.
Cheers,
Tobi
from com.unity.webrtc.
Hi,
another way to reproduce the crash: simply put the following
RTCDataChannelInit opt = default;
var DC = pc.CreateDataChannel("foo", ref opt);
In the "void OnOffer(ISignaling signaling, DescData e)" method of the RenderStreaming MonoBehaviour.
Cheers,
Tobi.
from com.unity.webrtc.
Fixed this issue and will release the bug-fix version this week. Thanks!
from com.unity.webrtc.
Related Issues (20)
- [BUG]: No data sent on VideoStreamTracks on Pico after multiple cleanups HOT 1
- [BUG]: Segmentation Fault on Startup with High Resolution Display (Version 2021.3.20f1) HOT 1
- [BUG]: Freezing when RTCPeerConnection is closing HOT 2
- [BUG]: Encoder/Decoder priority HOT 2
- [BUG]: Wrong Candidate Pair Generation while establishing ICE Connection HOT 1
- [BUG]: E2ELantency calculation
- [BUG]: High Latency in Receiving Video Stream with H264 codec
- [BUG]: HOT 1
- [BUG]: Unable to connect streams between two devices with relay-only mode forced
- [BUG]: '__debug' file not found while building the plugin on MAC and xcode15 HOT 1
- WebGL branch [thaina/experimental/webgl-platform]
- [REQUEST]: Mipmap support for incoming video streams
- [BUG]: How get spectrum data from receiving audio stream track?
- [BUG]: High temperature and battery consumption on Android AR glasses HOT 2
- [BUG]: android build with auto graphics api
- [REQUEST]: Add OnSignalingStateChange property to RTCPeerConnection class
- [REQUEST]: Android native buffer rendering on Vulkan
- [REQUEST]: what's DummyAudioDevice used for ?
- [BUG]:
- [BUG]: OnIceCandidate
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 com.unity.webrtc.