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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 virtual VideoSendStream* CreateVideoSendStream( | 112 virtual VideoSendStream* CreateVideoSendStream( |
113 VideoSendStream::Config config, | 113 VideoSendStream::Config config, |
114 VideoEncoderConfig encoder_config) = 0; | 114 VideoEncoderConfig encoder_config) = 0; |
115 virtual void DestroyVideoSendStream(VideoSendStream* send_stream) = 0; | 115 virtual void DestroyVideoSendStream(VideoSendStream* send_stream) = 0; |
116 | 116 |
117 virtual VideoReceiveStream* CreateVideoReceiveStream( | 117 virtual VideoReceiveStream* CreateVideoReceiveStream( |
118 VideoReceiveStream::Config configuration) = 0; | 118 VideoReceiveStream::Config configuration) = 0; |
119 virtual void DestroyVideoReceiveStream( | 119 virtual void DestroyVideoReceiveStream( |
120 VideoReceiveStream* receive_stream) = 0; | 120 VideoReceiveStream* receive_stream) = 0; |
121 | 121 |
| 122 // In order for a created VideoReceiveStream to be aware that it is |
| 123 // protected by a FlexfecReceiveStream, the latter should be created before |
| 124 // the former. |
122 virtual FlexfecReceiveStream* CreateFlexfecReceiveStream( | 125 virtual FlexfecReceiveStream* CreateFlexfecReceiveStream( |
123 const FlexfecReceiveStream::Config& config) = 0; | 126 const FlexfecReceiveStream::Config& config) = 0; |
124 virtual void DestroyFlexfecReceiveStream( | 127 virtual void DestroyFlexfecReceiveStream( |
125 FlexfecReceiveStream* receive_stream) = 0; | 128 FlexfecReceiveStream* receive_stream) = 0; |
126 | 129 |
127 // All received RTP and RTCP packets for the call should be inserted to this | 130 // All received RTP and RTCP packets for the call should be inserted to this |
128 // PacketReceiver. The PacketReceiver pointer is valid as long as the | 131 // PacketReceiver. The PacketReceiver pointer is valid as long as the |
129 // Call instance exists. | 132 // Call instance exists. |
130 virtual PacketReceiver* Receiver() = 0; | 133 virtual PacketReceiver* Receiver() = 0; |
131 | 134 |
(...skipping 24 matching lines...) Expand all Loading... |
156 const rtc::NetworkRoute& network_route) = 0; | 159 const rtc::NetworkRoute& network_route) = 0; |
157 | 160 |
158 virtual void OnSentPacket(const rtc::SentPacket& sent_packet) = 0; | 161 virtual void OnSentPacket(const rtc::SentPacket& sent_packet) = 0; |
159 | 162 |
160 virtual ~Call() {} | 163 virtual ~Call() {} |
161 }; | 164 }; |
162 | 165 |
163 } // namespace webrtc | 166 } // namespace webrtc |
164 | 167 |
165 #endif // WEBRTC_CALL_CALL_H_ | 168 #endif // WEBRTC_CALL_CALL_H_ |
OLD | NEW |