Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1257)

Side by Side Diff: webrtc/api/ortc/ortcfactoryinterface.h

Issue 2981513002: Wire up RTP keep-alive in ortc api. (Closed)
Patch Set: deps, again Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | webrtc/api/ortc/rtptransportinterface.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 // TODO(deadbeef): Add MediaConfig and RtcEventLog arguments? 106 // TODO(deadbeef): Add MediaConfig and RtcEventLog arguments?
107 virtual RTCErrorOr<std::unique_ptr<RtpTransportControllerInterface>> 107 virtual RTCErrorOr<std::unique_ptr<RtpTransportControllerInterface>>
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 // |rtp_parameters.rtcp.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 SetParameters.
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& rtp_parameters,
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& rtp_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
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_
OLDNEW
« no previous file with comments | « no previous file | webrtc/api/ortc/rtptransportinterface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698