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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 virtual ~PacketReceiver() {} | 53 virtual ~PacketReceiver() {} |
54 }; | 54 }; |
55 | 55 |
56 // A Call instance can contain several send and/or receive streams. All streams | 56 // A Call instance can contain several send and/or receive streams. All streams |
57 // are assumed to have the same remote endpoint and will share bitrate estimates | 57 // are assumed to have the same remote endpoint and will share bitrate estimates |
58 // etc. | 58 // etc. |
59 class Call { | 59 class Call { |
60 public: | 60 public: |
61 struct Config { | 61 struct Config { |
62 explicit Config(RtcEventLog* event_log) : event_log(event_log) { | 62 explicit Config(RtcEventLog* event_log) : event_log(event_log) { |
| 63 #ifdef HAVE_MEDIA |
63 RTC_DCHECK(event_log); | 64 RTC_DCHECK(event_log); |
| 65 #endif |
64 } | 66 } |
65 | 67 |
66 static const int kDefaultStartBitrateBps; | 68 static const int kDefaultStartBitrateBps = 300000; |
67 | 69 |
68 // Bitrate config used until valid bitrate estimates are calculated. Also | 70 // Bitrate config used until valid bitrate estimates are calculated. Also |
69 // used to cap total bitrate used. | 71 // used to cap total bitrate used. |
70 struct BitrateConfig { | 72 struct BitrateConfig { |
71 int min_bitrate_bps = 0; | 73 int min_bitrate_bps = 0; |
72 int start_bitrate_bps = kDefaultStartBitrateBps; | 74 int start_bitrate_bps = kDefaultStartBitrateBps; |
73 int max_bitrate_bps = -1; | 75 int max_bitrate_bps = -1; |
74 } bitrate_config; | 76 } bitrate_config; |
75 | 77 |
76 // AudioState which is possibly shared between multiple calls. | 78 // AudioState which is possibly shared between multiple calls. |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 const rtc::NetworkRoute& network_route) = 0; | 159 const rtc::NetworkRoute& network_route) = 0; |
158 | 160 |
159 virtual void OnSentPacket(const rtc::SentPacket& sent_packet) = 0; | 161 virtual void OnSentPacket(const rtc::SentPacket& sent_packet) = 0; |
160 | 162 |
161 virtual ~Call() {} | 163 virtual ~Call() {} |
162 }; | 164 }; |
163 | 165 |
164 } // namespace webrtc | 166 } // namespace webrtc |
165 | 167 |
166 #endif // WEBRTC_CALL_CALL_H_ | 168 #endif // WEBRTC_CALL_CALL_H_ |
OLD | NEW |