fec_controller_override.h 840 B

12345678910111213141516171819202122232425262728
  1. /* Copyright 2019 The WebRTC project authors. All Rights Reserved.
  2. *
  3. * Use of this source code is governed by a BSD-style license
  4. * that can be found in the LICENSE file in the root of the source
  5. * tree. An additional intellectual property rights grant can be found
  6. * in the file PATENTS. All contributing project authors may
  7. * be found in the AUTHORS file in the root of the source tree.
  8. */
  9. // This is an EXPERIMENTAL interface.
  10. #ifndef API_FEC_CONTROLLER_OVERRIDE_H_
  11. #define API_FEC_CONTROLLER_OVERRIDE_H_
  12. namespace webrtc {
  13. // Interface for temporarily overriding FecController's bitrate allocation.
  14. class FecControllerOverride {
  15. public:
  16. virtual void SetFecAllowed(bool fec_allowed) = 0;
  17. protected:
  18. virtual ~FecControllerOverride() = default;
  19. };
  20. } // namespace webrtc
  21. #endif // API_FEC_CONTROLLER_OVERRIDE_H_