Browse Source

Added forceMediaTransport to configuration in C API

Paul-Louis Ageneau 2 years ago
parent
commit
a3f235da5c
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

@@ -159,6 +159,7 @@ typedef struct {
 	bool enableIceTcp;    // libnice only
 	bool enableIceUdpMux; // libjuice only
 	bool disableAutoNegotiation;
+	bool forceMediaTransport;
 	uint16_t portRangeBegin; // 0 means automatic
 	uint16_t portRangeEnd;   // 0 means automatic
 	int mtu;                 // <= 0 means automatic

+ 1 - 0
src/capi.cpp

@@ -395,6 +395,7 @@ int rtcCreatePeerConnection(const rtcConfiguration *config) {
 		c.enableIceTcp = config->enableIceTcp;
 		c.enableIceUdpMux = config->enableIceUdpMux;
 		c.disableAutoNegotiation = config->disableAutoNegotiation;
+		c.forceMediaTransport = config->forceMediaTransport;
 
 		if (config->mtu > 0)
 			c.mtu = size_t(config->mtu);