OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2017 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2017 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 | 10 |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 } | 128 } |
129 | 129 |
130 rtcp_parameters_ = new_parameters; | 130 rtcp_parameters_ = new_parameters; |
131 return RTCError::OK(); | 131 return RTCError::OK(); |
132 } | 132 } |
133 | 133 |
134 RtcpParameters RtpTransport::GetRtcpParameters() const { | 134 RtcpParameters RtpTransport::GetRtcpParameters() const { |
135 return rtcp_parameters_; | 135 return rtcp_parameters_; |
136 } | 136 } |
137 | 137 |
| 138 RTCError RtpTransport::SetRtpTransportParameters( |
| 139 const RtpTransportParameters& parameters) { |
| 140 rtp_transport_parameters_ = parameters; |
| 141 return RTCError::OK(); |
| 142 } |
| 143 |
| 144 RtpTransportParameters RtpTransport::GetRtpTransportParameters() const { |
| 145 return rtp_transport_parameters_; |
| 146 } |
| 147 |
138 RtpTransportAdapter* RtpTransport::GetInternal() { | 148 RtpTransportAdapter* RtpTransport::GetInternal() { |
139 return nullptr; | 149 return nullptr; |
140 } | 150 } |
141 | 151 |
142 void RtpTransport::OnReadyToSend(rtc::PacketTransportInternal* transport) { | 152 void RtpTransport::OnReadyToSend(rtc::PacketTransportInternal* transport) { |
143 SetReadyToSend(transport == rtcp_packet_transport_, true); | 153 SetReadyToSend(transport == rtcp_packet_transport_, true); |
144 } | 154 } |
145 | 155 |
146 void RtpTransport::SetReadyToSend(bool rtcp, bool ready) { | 156 void RtpTransport::SetReadyToSend(bool rtcp, bool ready) { |
147 if (rtcp) { | 157 if (rtcp) { |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 } | 213 } |
204 if (rtcp) { | 214 if (rtcp) { |
205 // Permit all (seemingly valid) RTCP packets. | 215 // Permit all (seemingly valid) RTCP packets. |
206 return true; | 216 return true; |
207 } | 217 } |
208 // Check whether we handle this payload. | 218 // Check whether we handle this payload. |
209 return HandlesPacket(packet->data(), packet->size()); | 219 return HandlesPacket(packet->data(), packet->size()); |
210 } | 220 } |
211 | 221 |
212 } // namespace webrtc | 222 } // namespace webrtc |
OLD | NEW |