| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 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 | 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 | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 #ifndef WEBRTC_CALL_H_ | 10 #ifndef WEBRTC_CALL_H_ |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 // are assumed to have the same remote endpoint and will share bitrate estimates | 67 // are assumed to have the same remote endpoint and will share bitrate estimates |
| 68 // etc. | 68 // etc. |
| 69 class Call { | 69 class Call { |
| 70 public: | 70 public: |
| 71 struct Config { | 71 struct Config { |
| 72 static const int kDefaultStartBitrateBps; | 72 static const int kDefaultStartBitrateBps; |
| 73 | 73 |
| 74 // VoiceEngine used for audio/video synchronization for this Call. | 74 // VoiceEngine used for audio/video synchronization for this Call. |
| 75 VoiceEngine* voice_engine = nullptr; | 75 VoiceEngine* voice_engine = nullptr; |
| 76 | 76 |
| 77 // Callback for overuse and normal usage based on the jitter of incoming | |
| 78 // captured frames. 'nullptr' disables the callback. | |
| 79 LoadObserver* overuse_callback = nullptr; | |
| 80 | |
| 81 // Bitrate config used until valid bitrate estimates are calculated. Also | 77 // Bitrate config used until valid bitrate estimates are calculated. Also |
| 82 // used to cap total bitrate used. | 78 // used to cap total bitrate used. |
| 83 struct BitrateConfig { | 79 struct BitrateConfig { |
| 84 int min_bitrate_bps = 0; | 80 int min_bitrate_bps = 0; |
| 85 int start_bitrate_bps = kDefaultStartBitrateBps; | 81 int start_bitrate_bps = kDefaultStartBitrateBps; |
| 86 int max_bitrate_bps = -1; | 82 int max_bitrate_bps = -1; |
| 87 } bitrate_config; | 83 } bitrate_config; |
| 88 | 84 |
| 89 struct AudioConfig { | 85 struct AudioConfig { |
| 90 AudioDeviceModule* audio_device_manager = nullptr; | 86 AudioDeviceModule* audio_device_manager = nullptr; |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 virtual void SetBitrateConfig( | 134 virtual void SetBitrateConfig( |
| 139 const Config::BitrateConfig& bitrate_config) = 0; | 135 const Config::BitrateConfig& bitrate_config) = 0; |
| 140 virtual void SignalNetworkState(NetworkState state) = 0; | 136 virtual void SignalNetworkState(NetworkState state) = 0; |
| 141 | 137 |
| 142 virtual ~Call() {} | 138 virtual ~Call() {} |
| 143 }; | 139 }; |
| 144 | 140 |
| 145 } // namespace webrtc | 141 } // namespace webrtc |
| 146 | 142 |
| 147 #endif // WEBRTC_CALL_H_ | 143 #endif // WEBRTC_CALL_H_ |
| OLD | NEW |