Procházet zdrojové kódy

Added enableIceTcp configuration flag to C API

Paul-Louis Ageneau před 4 roky
rodič
revize
3745ff5f7a
2 změnil soubory, kde provedl 2 přidání a 0 odebrání
  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));
 	});
 }