librtcdcpp
librtcdcpp copied to clipboard
Working Windows build
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.
And what is the main file for webrtc datachannel api on a serverside?
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?
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.
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.
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.