Skip to content

Commit

Permalink
Added forceMediaTransport to configuration in C API
Browse files Browse the repository at this point in the history
  • Loading branch information
paullouisageneau committed Nov 22, 2022
1 parent ca9db92 commit a3f235d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/rtc/rtc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions src/capi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a3f235d

Please sign in to comment.