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_CALL_H_ | 10 #ifndef WEBRTC_CALL_CALL_H_ |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 // A Call instance can contain several send and/or receive streams. All streams | 59 // A Call instance can contain several send and/or receive streams. All streams |
60 // are assumed to have the same remote endpoint and will share bitrate estimates | 60 // are assumed to have the same remote endpoint and will share bitrate estimates |
61 // etc. | 61 // etc. |
62 class Call { | 62 class Call { |
63 public: | 63 public: |
64 struct Config { | 64 struct Config { |
65 explicit Config(RtcEventLog* event_log) : event_log(event_log) { | 65 explicit Config(RtcEventLog* event_log) : event_log(event_log) { |
66 RTC_DCHECK(event_log); | 66 RTC_DCHECK(event_log); |
67 } | 67 } |
68 | 68 |
69 static const int kDefaultStartBitrateBps; | 69 static constexpr int kDefaultStartBitrateBps = 300000; |
70 | 70 |
71 // Bitrate config used until valid bitrate estimates are calculated. Also | 71 // Bitrate config used until valid bitrate estimates are calculated. Also |
72 // used to cap total bitrate used. This comes from the remote connection. | 72 // used to cap total bitrate used. This comes from the remote connection. |
73 struct BitrateConfig { | 73 struct BitrateConfig { |
74 int min_bitrate_bps = 0; | 74 int min_bitrate_bps = 0; |
75 int start_bitrate_bps = kDefaultStartBitrateBps; | 75 int start_bitrate_bps = kDefaultStartBitrateBps; |
76 int max_bitrate_bps = -1; | 76 int max_bitrate_bps = -1; |
77 } bitrate_config; | 77 } bitrate_config; |
78 | 78 |
79 // The local client's bitrate preferences. The actual configuration used | 79 // The local client's bitrate preferences. The actual configuration used |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 const rtc::NetworkRoute& network_route) = 0; | 184 const rtc::NetworkRoute& network_route) = 0; |
185 | 185 |
186 virtual void OnSentPacket(const rtc::SentPacket& sent_packet) = 0; | 186 virtual void OnSentPacket(const rtc::SentPacket& sent_packet) = 0; |
187 | 187 |
188 virtual ~Call() {} | 188 virtual ~Call() {} |
189 }; | 189 }; |
190 | 190 |
191 } // namespace webrtc | 191 } // namespace webrtc |
192 | 192 |
193 #endif // WEBRTC_CALL_CALL_H_ | 193 #endif // WEBRTC_CALL_CALL_H_ |
OLD | NEW |