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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 int flags) override; | 71 int flags) override; |
72 | 72 |
73 bool HandlesPayloadType(int payload_type) const override { | 73 bool HandlesPayloadType(int payload_type) const override { |
74 return rtp_transport_->HandlesPayloadType(payload_type); | 74 return rtp_transport_->HandlesPayloadType(payload_type); |
75 } | 75 } |
76 | 76 |
77 void AddHandledPayloadType(int payload_type) override { | 77 void AddHandledPayloadType(int payload_type) override { |
78 rtp_transport_->AddHandledPayloadType(payload_type); | 78 rtp_transport_->AddHandledPayloadType(payload_type); |
79 } | 79 } |
80 | 80 |
81 RtcpParameters GetRtcpParameters() const override { | 81 RTCError SetParameters(const RtpTransportParameters& parameters) override { |
82 return rtp_transport_->GetRtcpParameters(); | 82 return rtp_transport_->SetParameters(parameters); |
83 } | 83 } |
84 | 84 |
85 RTCError SetRtcpParameters(const RtcpParameters& parameters) override { | 85 RtpTransportParameters GetParameters() const override { |
86 return rtp_transport_->SetRtcpParameters(parameters); | 86 return rtp_transport_->GetParameters(); |
87 } | 87 } |
88 | 88 |
89 // TODO(zstein): Remove this when we remove RtpTransportAdapter. | 89 // TODO(zstein): Remove this when we remove RtpTransportAdapter. |
90 RtpTransportAdapter* GetInternal() override { return nullptr; } | 90 RtpTransportAdapter* GetInternal() override { return nullptr; } |
91 | 91 |
92 private: | 92 private: |
93 void ConnectToRtpTransport(); | 93 void ConnectToRtpTransport(); |
94 | 94 |
95 void OnPacketReceived(bool rtcp, | 95 void OnPacketReceived(bool rtcp, |
96 rtc::CopyOnWriteBuffer* packet, | 96 rtc::CopyOnWriteBuffer* packet, |
97 const rtc::PacketTime& packet_time); | 97 const rtc::PacketTime& packet_time); |
98 | 98 |
99 void OnReadyToSend(bool ready) { SignalReadyToSend(ready); } | 99 void OnReadyToSend(bool ready) { SignalReadyToSend(ready); } |
100 | 100 |
101 const std::string content_name_; | 101 const std::string content_name_; |
102 | 102 |
103 std::unique_ptr<RtpTransportInternal> rtp_transport_; | 103 std::unique_ptr<RtpTransportInternal> rtp_transport_; |
104 }; | 104 }; |
105 | 105 |
106 } // namespace webrtc | 106 } // namespace webrtc |
107 | 107 |
108 #endif // WEBRTC_PC_SRTPTRANSPORT_H_ | 108 #endif // WEBRTC_PC_SRTPTRANSPORT_H_ |
OLD | NEW |