/* * Copyright 2018 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributing project authors may * be found in the AUTHORS file in the root of the source tree.
*/ #ifndef TEST_SCENARIO_SCENARIO_CONFIG_H_ #define TEST_SCENARIO_SCENARIO_CONFIG_H_
namespace webrtc { namespace test { struct PacketOverhead { static constexpr size_t kSrtp = 10; static constexpr size_t kStun = 4; // TURN messages can be sent either with or without an establieshed channel. // In the latter case, a TURN Send/Data Indication is sent which has // significantly more overhead. static constexpr size_t kTurnChannelMessage = 4; static constexpr size_t kTurnIndicationMessage = 36; static constexpr size_t kDefault = kSrtp;
}; struct TransportControllerConfig { struct Rates {
Rates();
Rates(const Rates&);
~Rates();
DataRate min_rate = DataRate::KilobitsPerSec(30);
DataRate max_rate = DataRate::KilobitsPerSec(3000);
DataRate start_rate = DataRate::KilobitsPerSec(300);
} rates;
NetworkControllerFactoryInterface* cc_factory = nullptr;
TimeDelta state_log_interval = TimeDelta::Millis(100);
};
struct CallClientConfig {
TransportControllerConfig transport; // Allows the pacer to send out multiple packets in a burst. // The number of bites that can be sent in one burst is pacer_burst_interval * // current bwe. 40ms is the default Chrome setting.
TimeDelta pacer_burst_interval = TimeDelta::Millis(40);
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.