Merge pull request #17 from murat-dogan/master

Fix logic error: If we pass Relay Type then it is a TURN Server
This commit is contained in:
Paul-Louis Ageneau
2019-12-17 18:05:54 +00:00
committed by GitHub
3 changed files with 8 additions and 7 deletions

View File

@ -33,8 +33,9 @@ int main(int argc, char **argv) {
// config.iceServers.emplace_back("stun.l.google.com:19302");
// config.enableIceTcp = true;
// IceServer turnServer("TURN_SERVER_URL", "PORT_NO", IceServer::Type::TURN, "USERNAME",
// "PASSWORD", IceServer::RelayType::RELAY_TYPE_TURN_TLS);
// Add TURN Server Example
// IceServer turnServer("TURN_SERVER_URL", "PORT_NO", "USERNAME", "PASSWORD",
// IceServer::RelayType::TurnTls);
// config.iceServers.push_back(turnServer);
auto pc1 = std::make_shared<PeerConnection>(config);