mirror of
https://github.com/mii443/libdatachannel.git
synced 2025-08-22 15:15:28 +00:00
Added STUN server to test
This commit is contained in:
@ -27,8 +27,11 @@ using namespace rtc;
|
||||
using namespace std;
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
auto pc1 = std::make_shared<PeerConnection>();
|
||||
auto pc2 = std::make_shared<PeerConnection>();
|
||||
rtc::Configuration config;
|
||||
config.iceServers.emplace_back("stun.l.google.com:19302");
|
||||
|
||||
auto pc1 = std::make_shared<PeerConnection>(config);
|
||||
auto pc2 = std::make_shared<PeerConnection>(config);
|
||||
|
||||
pc1->onLocalDescription([pc2](const Description &sdp) {
|
||||
cout << "Description 1: " << sdp << endl;
|
||||
|
Reference in New Issue
Block a user