Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Implementing webrtc data channel for Windows applications [closed]

Tags:

c#

tcp

webrtc

does any body know how to implement the WebRTC DataChannel API to Windows applications builded in C# to send TCP messages between clients behind NATs. This is not for a web application, it is Windows based only.

Any inputs or ideas are greatly appreciated.

Thanks.

like image 859
AJ152 Avatar asked May 24 '14 13:05

AJ152


People also ask

How do you close a data channel?

To close an RTCDataChannel, you call close() - this can be called on an RTCPeerConnection as well, which will close all datachannels created on the peerconnection.

How do I create a data channel in WebRTC?

This is done by calling createDataChannel() on a RTCPeerConnection object, which returns a RTCDataChannel object. const peerConnection = new RTCPeerConnection(configuration); const dataChannel = peerConnection. createDataChannel();

What is WebRTC data channel?

What is a data channel? A WebRTC data channel lets you send text or binary data over an active connection to a peer. In the context of a game, this lets players send data to each other, whether text chat or game status information.

What is dataChannel?

data channel An information route and associated circuitry that is used for the passing of data between systems or parts of systems. In an interface that has a number of parallel channels the channels are usually separately dedicated to the passing of a single type of information, e.g. data or control information.


2 Answers

There are no .NET implementations of WebRTC. Currently there are only the JavaScript APIs provided by browsers(FireFox, Chrome, etc.) and the Native C++/C API, which can be compiled in windows.

This SO Question may help you import the Native API into .NET but I am not sure if it is possible.

Maybe it is time to start on a .NET wrapper or implementation for WebRTC.

like image 192
Benjamin Trent Avatar answered Sep 23 '22 06:09

Benjamin Trent


Check out this page: http://opentools.homeip.net/webrtc. It's exactly what your are looking for. WebRTC data stack with c# support and sample app.

like image 36
Ylian Avatar answered Sep 23 '22 06:09

Ylian