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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
108 CreateRtpTransportController() = 0; | 108 CreateRtpTransportController() = 0; |
109 | 109 |
110 // Creates an RTP transport using the provided packet transports and | 110 // Creates an RTP transport using the provided packet transports and |
111 // transport controller. | 111 // transport controller. |
112 // | 112 // |
113 // |rtp| will be used for sending RTP packets, and |rtcp| for RTCP packets. | 113 // |rtp| will be used for sending RTP packets, and |rtcp| for RTCP packets. |
114 // | 114 // |
115 // |rtp| can't be null. |rtcp| must be non-null if and only if | 115 // |rtp| can't be null. |rtcp| must be non-null if and only if |
116 // |rtcp_parameters.mux| is false, indicating that RTCP muxing isn't used. | 116 // |rtcp_parameters.mux| is false, indicating that RTCP muxing isn't used. |
117 // Note that if RTCP muxing isn't enabled initially, it can still enabled | 117 // Note that if RTCP muxing isn't enabled initially, it can still enabled |
118 // later through SetRtcpParameters. | 118 // later through SetRtpTransportParameters. |
Taylor Brandstetter
2017/07/17 23:13:11
The method ended up just being called SetParameter
ilnik
2017/07/21 12:21:19
Done.
| |
119 // | 119 // |
120 // If |transport_controller| is null, one will automatically be created, and | 120 // If |transport_controller| is null, one will automatically be created, and |
121 // its lifetime managed by the returned RtpTransport. This should only be | 121 // its lifetime managed by the returned RtpTransport. This should only be |
122 // done if a single RtpTransport is being used to communicate with the remote | 122 // done if a single RtpTransport is being used to communicate with the remote |
123 // endpoint. | 123 // endpoint. |
124 virtual RTCErrorOr<std::unique_ptr<RtpTransportInterface>> CreateRtpTransport( | 124 virtual RTCErrorOr<std::unique_ptr<RtpTransportInterface>> CreateRtpTransport( |
125 const RtcpParameters& rtcp_parameters, | 125 const RtpTransportParameters& rtcp_parameters, |
Taylor Brandstetter
2017/07/17 23:13:11
Need to replace "rtcp_parameters" with "rtp_parame
ilnik
2017/07/21 12:21:19
Done.
| |
126 PacketTransportInterface* rtp, | 126 PacketTransportInterface* rtp, |
127 PacketTransportInterface* rtcp, | 127 PacketTransportInterface* rtcp, |
128 RtpTransportControllerInterface* transport_controller) = 0; | 128 RtpTransportControllerInterface* transport_controller) = 0; |
129 | 129 |
130 // Creates an SrtpTransport which is an RTP transport that uses SRTP. | 130 // Creates an SrtpTransport which is an RTP transport that uses SRTP. |
131 virtual RTCErrorOr<std::unique_ptr<SrtpTransportInterface>> | 131 virtual RTCErrorOr<std::unique_ptr<SrtpTransportInterface>> |
132 CreateSrtpTransport( | 132 CreateSrtpTransport( |
133 const RtcpParameters& rtcp_parameters, | 133 const RtpTransportParameters& rtcp_parameters, |
134 PacketTransportInterface* rtp, | 134 PacketTransportInterface* rtp, |
135 PacketTransportInterface* rtcp, | 135 PacketTransportInterface* rtcp, |
136 RtpTransportControllerInterface* transport_controller) = 0; | 136 RtpTransportControllerInterface* transport_controller) = 0; |
137 | 137 |
138 // Returns the capabilities of an RTP sender of type |kind|. These | 138 // Returns the capabilities of an RTP sender of type |kind|. These |
139 // capabilities can be used to determine what RtpParameters to use to create | 139 // capabilities can be used to determine what RtpParameters to use to create |
140 // an RtpSender. | 140 // an RtpSender. |
141 // | 141 // |
142 // If for some reason you pass in MEDIA_TYPE_DATA, returns an empty structure. | 142 // If for some reason you pass in MEDIA_TYPE_DATA, returns an empty structure. |
143 virtual RtpCapabilities GetRtpSenderCapabilities( | 143 virtual RtpCapabilities GetRtpSenderCapabilities( |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
230 | 230 |
231 // Creates an new local audio track wrapping |source|. | 231 // Creates an new local audio track wrapping |source|. |
232 virtual rtc::scoped_refptr<AudioTrackInterface> CreateAudioTrack( | 232 virtual rtc::scoped_refptr<AudioTrackInterface> CreateAudioTrack( |
233 const std::string& id, | 233 const std::string& id, |
234 AudioSourceInterface* source) = 0; | 234 AudioSourceInterface* source) = 0; |
235 }; | 235 }; |
236 | 236 |
237 } // namespace webrtc | 237 } // namespace webrtc |
238 | 238 |
239 #endif // WEBRTC_API_ORTC_ORTCFACTORYINTERFACE_H_ | 239 #endif // WEBRTC_API_ORTC_ORTCFACTORYINTERFACE_H_ |
OLD | NEW |