Browse Source

Added enableIceTcp configuration flag to C API

Paul-Louis Ageneau 4 years ago
parent
commit
3745ff5f7a
2 changed files with 2 additions and 0 deletions
  1. 1 0
      include/rtc/rtc.h
  2. 1 0
      src/capi.cpp

+ 1 - 0
include/rtc/rtc.h

@@ -86,6 +86,7 @@ typedef enum { // Don't change, it must match plog severity
 typedef struct {
 	const char **iceServers;
 	int iceServersCount;
+	bool enableIceTcp;
 	uint16_t portRangeBegin;
 	uint16_t portRangeEnd;
 } rtcConfiguration;

+ 1 - 0
src/capi.cpp

@@ -287,6 +287,7 @@ int rtcCreatePeerConnection(const rtcConfiguration *config) {
 			c.portRangeEnd = config->portRangeEnd;
 		}
 
+		c.enableIceTcp = config->enableIceTcp;
 		return emplacePeerConnection(std::make_shared<PeerConnection>(c));
 	});
 }