rtt_mult_experiment.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * Copyright 2018 The WebRTC project authors. All Rights Reserved.
  3. *
  4. * Use of this source code is governed by a BSD-style license
  5. * that can be found in the LICENSE file in the root of the source
  6. * tree. An additional intellectual property rights grant can be found
  7. * in the file PATENTS. All contributing project authors may
  8. * be found in the AUTHORS file in the root of the source tree.
  9. */
  10. #ifndef RTC_BASE_EXPERIMENTS_RTT_MULT_EXPERIMENT_H_
  11. #define RTC_BASE_EXPERIMENTS_RTT_MULT_EXPERIMENT_H_
  12. #include "absl/types/optional.h"
  13. namespace webrtc {
  14. class RttMultExperiment {
  15. public:
  16. struct Settings {
  17. float rtt_mult_setting; // Jitter buffer size is increased by this factor
  18. // times the estimated RTT.
  19. float rtt_mult_add_cap_ms; // Jitter buffer size increase is capped by this
  20. // value.
  21. };
  22. // Returns true if the experiment is enabled.
  23. static bool RttMultEnabled();
  24. // Returns rtt_mult value and rtt_mult addition cap value from field trial.
  25. static absl::optional<RttMultExperiment::Settings> GetRttMultValue();
  26. };
  27. } // namespace webrtc
  28. #endif // RTC_BASE_EXPERIMENTS_RTT_MULT_EXPERIMENT_H_