支持四类参数:logLevel,logTags, minPort/maxPort,dtls证书和私钥
--logLevel=warn
--logTags=info
--logTags=ice
--logTags=dtls
--logTags=rtp
--logTags=srtp
--logTags=rtcp
--logTags=rtx
--logTags=bwe
--logTags=score
--logTags=simulcast
--logTags=svc
--logTags=sctp
--rtcMinPort=40000
--rtcMaxPort=49999
class Settings
{
public:
struct LogTags
{
bool info{ false };
bool ice{ false };
bool dtls{ false };
bool rtp{ false };
bool srtp{ false };
bool rtcp{ false };
bool rtx{ false };
bool bwe{ false };
bool score{ false };
bool simulcast{ false };
bool svc{ false };
bool sctp{ false };
bool message{ false };
};
public:
// Struct holding the configuration.
struct Configuration
{
LogLevel logLevel{ LogLevel::LOG_ERROR };
struct LogTags logTags;
uint16_t rtcMinPort{ 10000u };
uint16_t rtcMaxPort{ 59999u };
std::string dtlsCertificateFile;
std::string dtlsPrivateKeyFile;
};
public:
thread_local static struct Configuration configuration;
...
}