hanseuljun / datachannel-unity

libdatachannel for Unity. Supports Windows 10 (x64) and HoloLens 1.
MIT License
12 stars 2 forks source link

Request: Signaling and expanded code examples #1

Open draum opened 3 years ago

draum commented 3 years ago

The libdatachannel fits a project I'm working on right now perfectly and I've got a number of C++ clients working together. I'd like to connect Unity3D clients with it and this plugin fits, it's awesome work and builds perfectly. I can see how to use the various APIs once I get everything connected up, but I'm struggling with the signaling and connection implementation and making that initial connection on the Unity3D side.

Is there any chance a more expanded example for using the datachannel-unity plugin will be coming?

hanseuljun commented 3 years ago

I'll try to come up with an example that works with the copy-paste example of libdatachannel (https://github.com/paullouisageneau/libdatachannel/tree/master/examples/copy-paste) soon.

hanseuljun commented 3 years ago

The example added (not finished yet) is supposed to work as the replacement of offerer.cpp at https://github.com/paullouisageneau/libdatachannel/tree/master/examples/copy-paste. In other words, in the way you run offerer and answerer, you should be able to run the example here with the answerer at the libdatachannel repository. It is not signaling based on a server but a manual copy-pasting of the SDP message, so the copy-paster being a human signaling server.

Sorry about not really finishing to make the example... After meeting a few deadlines, I'll come back...