chadnickbok / librtcdcpp

A simple WebRTC DataChannels library
BSD 3-Clause "New" or "Revised" License
158 stars 41 forks source link

Working Windows build #3

Open chadnickbok opened 8 years ago

chadnickbok commented 8 years ago

This library works fine on Windows as part of my closed-source app, but there are some things i need to do to make it easy to build.

Initially I'll just check in a visual studio project to get things rolling.

Globik commented 8 years ago

And what is the main file for webrtc datachannel api on a serverside?

Globik commented 8 years ago

I meen main.cpp or so. I look at src directory and see 4 cpp files. Should I be dancing for main.exe from those all 4 files?

Globik commented 8 years ago

I'm on windows 7 32bit too. Libnice, libusrsctp, glib 2.0 compiling on windows platform very good. By the way, about libnice. One need optionally to give the permission to libnice's ip interfaces also to gather 127.0.0.1. Or without the internet connection all stuff does not work at all. At least on windows. One need ca three lines of code to add. NiceAddress addr; and etc addr from string, nice_agent_add_ip_address... Also if one want to check webrtc snippet on a client side from the browser without internet connectivity, one should run chrome.exe with the flag - - allow-loopback-in-peer-connection. And on firefox there are in its configs the same flag. For me it is important, I'm on notebook and do not want every time to enable modem in order that to check any short webrtc code snippet.

Globik commented 8 years ago

Something like this:

ifdef ALLOW_LOOPBACK_WITH_NO_INTERNET_CONNECTIVITY

NiceAddress addr; nice_address_init (&addr); nice_address_set_from_string (&addr, "127.0.0.1");

endif

Optional! and then all stuff will work on a local machine without internet connectivity.

chadnickbok commented 8 years ago

Hey globik! Thanks for checking out the library.

I'm still working on the windows build - I'll let you know once I have a HOWTO on getting it up-and-running on windows.

I'll definitely make it easy to use without an internet connection, thanks for the advice.