blob: a42cae771ec894e81db14dd5cd1ed860c3027755 [file] [log] [blame]
Steve Anton6e634bf2017-11-13 10:44:53 -08001/*
2 * Copyright 2017 The WebRTC project authors. All Rights Reserved.
3 *
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
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
Steve Anton10542f22019-01-11 09:11:00 -080011#ifndef PC_RTP_TRANSCEIVER_H_
12#define PC_RTP_TRANSCEIVER_H_
Steve Anton6e634bf2017-11-13 10:44:53 -080013
Harald Alvestrand5761e7b2021-01-29 14:45:08 +000014#include <stddef.h>
15
16#include <algorithm>
17#include <functional>
Steve Anton6e634bf2017-11-13 10:44:53 -080018#include <string>
19#include <vector>
20
Harald Alvestrand5761e7b2021-01-29 14:45:08 +000021#include "absl/types/optional.h"
22#include "api/array_view.h"
Harald Alvestrandc24a2182022-02-23 13:44:59 +000023#include "api/jsep.h"
Harald Alvestrand5761e7b2021-01-29 14:45:08 +000024#include "api/media_types.h"
Harald Alvestrand5761e7b2021-01-29 14:45:08 +000025#include "api/rtc_error.h"
26#include "api/rtp_parameters.h"
Harald Alvestrandc24a2182022-02-23 13:44:59 +000027#include "api/rtp_receiver_interface.h"
28#include "api/rtp_sender_interface.h"
Harald Alvestrand5761e7b2021-01-29 14:45:08 +000029#include "api/rtp_transceiver_direction.h"
Steve Anton10542f22019-01-11 09:11:00 -080030#include "api/rtp_transceiver_interface.h"
Harald Alvestrand5761e7b2021-01-29 14:45:08 +000031#include "api/scoped_refptr.h"
32#include "api/task_queue/task_queue_base.h"
Ruslan Burakov501bfba2019-02-11 10:29:19 +010033#include "pc/channel_interface.h"
Florent Castelli2d9d82e2019-04-23 19:25:51 +020034#include "pc/channel_manager.h"
Markus Handella1b82012021-05-26 18:56:30 +020035#include "pc/proxy.h"
Steve Anton10542f22019-01-11 09:11:00 -080036#include "pc/rtp_receiver.h"
Markus Handelle93fe6c2021-05-20 22:46:31 +020037#include "pc/rtp_receiver_proxy.h"
Steve Anton10542f22019-01-11 09:11:00 -080038#include "pc/rtp_sender.h"
Markus Handelle93fe6c2021-05-20 22:46:31 +020039#include "pc/rtp_sender_proxy.h"
Harald Alvestrandc24a2182022-02-23 13:44:59 +000040#include "pc/rtp_transport_internal.h"
41#include "pc/session_description.h"
Tommi99c8a802021-04-27 15:00:00 +020042#include "rtc_base/task_utils/pending_task_safety_flag.h"
Harald Alvestrand5761e7b2021-01-29 14:45:08 +000043#include "rtc_base/third_party/sigslot/sigslot.h"
44#include "rtc_base/thread_annotations.h"
Steve Anton6e634bf2017-11-13 10:44:53 -080045
46namespace webrtc {
47
48// Implementation of the public RtpTransceiverInterface.
49//
50// The RtpTransceiverInterface is only intended to be used with a PeerConnection
51// that enables Unified Plan SDP. Thus, the methods that only need to implement
52// public API features and are not used internally can assume exactly one sender
53// and receiver.
54//
55// Since the RtpTransceiver is used internally by PeerConnection for tracking
56// RtpSenders, RtpReceivers, and BaseChannels, and PeerConnection needs to be
57// backwards compatible with Plan B SDP, this implementation is more flexible
58// than that required by the WebRTC specification.
59//
60// With Plan B SDP, an RtpTransceiver can have any number of senders and
61// receivers which map to a=ssrc lines in the m= section.
62// With Unified Plan SDP, an RtpTransceiver will have exactly one sender and one
63// receiver which are encapsulated by the m= section.
64//
65// This class manages the RtpSenders, RtpReceivers, and BaseChannel associated
66// with this m= section. Since the transceiver, senders, and receivers are
67// reference counted and can be referenced from JavaScript (in Chromium), these
68// objects must be ready to live for an arbitrary amount of time. The
69// BaseChannel is not reference counted and is owned by the ChannelManager, so
70// the PeerConnection must take care of creating/deleting the BaseChannel and
71// setting the channel reference in the transceiver to null when it has been
72// deleted.
73//
74// The RtpTransceiver is specialized to either audio or video according to the
75// MediaType specified in the constructor. Audio RtpTransceivers will have
76// AudioRtpSenders, AudioRtpReceivers, and a VoiceChannel. Video RtpTransceivers
77// will have VideoRtpSenders, VideoRtpReceivers, and a VideoChannel.
Tomas Gunnarsson0d5ce622022-03-18 15:57:15 +010078class RtpTransceiver : public RtpTransceiverInterface,
79 public sigslot::has_slots<> {
Steve Anton6e634bf2017-11-13 10:44:53 -080080 public:
Steve Anton79e79602017-11-20 10:25:56 -080081 // Construct a Plan B-style RtpTransceiver with no senders, receivers, or
82 // channel set.
Artem Titov880fa812021-07-30 22:30:23 +020083 // `media_type` specifies the type of RtpTransceiver (and, by transitivity,
Steve Anton6e634bf2017-11-13 10:44:53 -080084 // the type of senders, receivers, and channel). Can either by audio or video.
Tommi99c8a802021-04-27 15:00:00 +020085 RtpTransceiver(cricket::MediaType media_type,
86 cricket::ChannelManager* channel_manager);
Steve Anton79e79602017-11-20 10:25:56 -080087 // Construct a Unified Plan-style RtpTransceiver with the given sender and
88 // receiver. The media type will be derived from the media types of the sender
89 // and receiver. The sender and receiver should have the same media type.
Artem Titov880fa812021-07-30 22:30:23 +020090 // `HeaderExtensionsToOffer` is used for initializing the return value of
Markus Handell0357b3e2020-03-16 13:40:51 +010091 // HeaderExtensionsToOffer().
Steve Anton79e79602017-11-20 10:25:56 -080092 RtpTransceiver(
93 rtc::scoped_refptr<RtpSenderProxyWithInternal<RtpSenderInternal>> sender,
94 rtc::scoped_refptr<RtpReceiverProxyWithInternal<RtpReceiverInternal>>
Florent Castelli2d9d82e2019-04-23 19:25:51 +020095 receiver,
Markus Handell0357b3e2020-03-16 13:40:51 +010096 cricket::ChannelManager* channel_manager,
Harald Alvestrand280054f2020-11-10 13:12:53 +000097 std::vector<RtpHeaderExtensionCapability> HeaderExtensionsToOffer,
98 std::function<void()> on_negotiation_needed);
Steve Anton6e634bf2017-11-13 10:44:53 -080099 ~RtpTransceiver() override;
100
Steve Anton6e634bf2017-11-13 10:44:53 -0800101 // Returns the Voice/VideoChannel set for this transceiver. May be null if
102 // the transceiver is not in the currently set local/remote description.
Amit Hilbuchdd9390c2018-11-13 16:26:05 -0800103 cricket::ChannelInterface* channel() const { return channel_; }
Steve Anton6e634bf2017-11-13 10:44:53 -0800104
105 // Sets the Voice/VideoChannel. The caller must pass in the correct channel
Tomas Gunnarsson4f8a58c2022-01-19 11:36:23 +0100106 // implementation based on the type of the transceiver. The call must
107 // furthermore be made on the signaling thread.
108 //
109 // `channel`: The channel instance to be associated with the transceiver.
Harald Alvestranddaee8702022-04-29 11:42:55 +0000110 // This must be a valid pointer.
111 // The state of the object
Tomas Gunnarsson4f8a58c2022-01-19 11:36:23 +0100112 // is expected to be newly constructed and not initalized for network
113 // activity (see next parameter for more).
114 //
115 // NOTE: For all practical purposes, the ownership of the channel
116 // object should be considered to lie with the transceiver until
Harald Alvestranddaee8702022-04-29 11:42:55 +0000117 // `ClearChannel()` is called.
Tomas Gunnarsson4f8a58c2022-01-19 11:36:23 +0100118 // Moving forward, this parameter will change to either be a
119 // std::unique_ptr<> or the full construction of the channel object will
120 // be moved to happen within the context of the transceiver class.
121 //
Harald Alvestranddaee8702022-04-29 11:42:55 +0000122 // `transport_lookup`: This
Tomas Gunnarsson4f8a58c2022-01-19 11:36:23 +0100123 // callback function will be used to look up the `RtpTransport` object
124 // to associate with the channel via `BaseChannel::SetRtpTransport`.
125 // The lookup function will be called on the network thread, synchronously
126 // during the call to `SetChannel`. This means that the caller of
127 // `SetChannel()` may provide a callback function that references state
128 // that exists within the calling scope of SetChannel (e.g. a variable
129 // on the stack).
130 // The reason for this design is to limit the number of times we jump
131 // synchronously to the network thread from the signaling thread.
132 // The callback allows us to combine the transport lookup with network
133 // state initialization of the channel object.
Harald Alvestranddaee8702022-04-29 11:42:55 +0000134 // ClearChannel() must be used before calling SetChannel() again.
Tomas Gunnarsson4f8a58c2022-01-19 11:36:23 +0100135 void SetChannel(cricket::ChannelInterface* channel,
136 std::function<RtpTransportInternal*(const std::string&)>
137 transport_lookup);
Steve Anton6e634bf2017-11-13 10:44:53 -0800138
Harald Alvestrand19ebabc2022-04-28 13:31:17 +0000139 // Clear the association between the transceiver and the channel.
140 void ClearChannel();
141
Steve Anton6e634bf2017-11-13 10:44:53 -0800142 // Adds an RtpSender of the appropriate type to be owned by this transceiver.
143 // Must not be null.
144 void AddSender(
145 rtc::scoped_refptr<RtpSenderProxyWithInternal<RtpSenderInternal>> sender);
146
147 // Removes the given RtpSender. Returns false if the sender is not owned by
148 // this transceiver.
149 bool RemoveSender(RtpSenderInterface* sender);
150
151 // Returns a vector of the senders owned by this transceiver.
152 std::vector<rtc::scoped_refptr<RtpSenderProxyWithInternal<RtpSenderInternal>>>
153 senders() const {
154 return senders_;
155 }
156
157 // Adds an RtpReceiver of the appropriate type to be owned by this
158 // transceiver. Must not be null.
159 void AddReceiver(
160 rtc::scoped_refptr<RtpReceiverProxyWithInternal<RtpReceiverInternal>>
161 receiver);
162
163 // Removes the given RtpReceiver. Returns false if the sender is not owned by
164 // this transceiver.
165 bool RemoveReceiver(RtpReceiverInterface* receiver);
166
167 // Returns a vector of the receivers owned by this transceiver.
168 std::vector<
169 rtc::scoped_refptr<RtpReceiverProxyWithInternal<RtpReceiverInternal>>>
170 receivers() const {
171 return receivers_;
172 }
173
Steve Antonf9381f02017-12-14 10:23:57 -0800174 // Returns the backing object for the transceiver's Unified Plan sender.
175 rtc::scoped_refptr<RtpSenderInternal> sender_internal() const;
176
177 // Returns the backing object for the transceiver's Unified Plan receiver.
178 rtc::scoped_refptr<RtpReceiverInternal> receiver_internal() const;
179
Steve Antondcc3c022017-12-22 16:02:54 -0800180 // RtpTransceivers are not associated until they have a corresponding media
181 // section set in SetLocalDescription or SetRemoteDescription. Therefore,
182 // when setting a local offer we need a way to remember which transceiver was
183 // used to create which media section in the offer. Storing the mline index
184 // in CreateOffer is specified in JSEP to allow us to do that.
Danil Chapovalov66cadcc2018-06-19 16:47:43 +0200185 absl::optional<size_t> mline_index() const { return mline_index_; }
186 void set_mline_index(absl::optional<size_t> mline_index) {
Steve Antondcc3c022017-12-22 16:02:54 -0800187 mline_index_ = mline_index;
188 }
189
190 // Sets the MID for this transceiver. If the MID is not null, then the
191 // transceiver is considered "associated" with the media section that has the
192 // same MID.
Danil Chapovalov66cadcc2018-06-19 16:47:43 +0200193 void set_mid(const absl::optional<std::string>& mid) { mid_ = mid; }
Steve Antondcc3c022017-12-22 16:02:54 -0800194
195 // Sets the intended direction for this transceiver. Intended to be used
196 // internally over SetDirection since this does not trigger a negotiation
197 // needed callback.
198 void set_direction(RtpTransceiverDirection direction) {
199 direction_ = direction;
200 }
201
202 // Sets the current direction for this transceiver as negotiated in an offer/
203 // answer exchange. The current direction is null before an answer with this
204 // transceiver has been set.
205 void set_current_direction(RtpTransceiverDirection direction);
206
Steve Anton0f5400a2018-07-17 14:25:36 -0700207 // Sets the fired direction for this transceiver. The fired direction is null
208 // until SetRemoteDescription is called or an answer is set (either local or
209 // remote).
210 void set_fired_direction(RtpTransceiverDirection direction);
211
Steve Antonf9381f02017-12-14 10:23:57 -0800212 // According to JSEP rules for SetRemoteDescription, RtpTransceivers can be
213 // reused only if they were added by AddTrack.
214 void set_created_by_addtrack(bool created_by_addtrack) {
215 created_by_addtrack_ = created_by_addtrack;
216 }
Eldar Rello353a7182019-11-25 18:49:44 +0200217 // If AddTrack has been called then transceiver can't be removed during
218 // rollback.
219 void set_reused_for_addtrack(bool reused_for_addtrack) {
220 reused_for_addtrack_ = reused_for_addtrack;
221 }
222
Steve Antonf9381f02017-12-14 10:23:57 -0800223 bool created_by_addtrack() const { return created_by_addtrack_; }
224
Eldar Rello353a7182019-11-25 18:49:44 +0200225 bool reused_for_addtrack() const { return reused_for_addtrack_; }
226
Steve Antonf9381f02017-12-14 10:23:57 -0800227 // Returns true if this transceiver has ever had the current direction set to
228 // sendonly or sendrecv.
229 bool has_ever_been_used_to_send() const {
230 return has_ever_been_used_to_send_;
231 }
232
Harald Alvestrand6060df52020-08-11 09:54:02 +0200233 // Informs the transceiver that its owning
234 // PeerConnection is closed.
235 void SetPeerConnectionClosed();
236
Harald Alvestrandc75c4282020-08-26 12:17:54 +0000237 // Executes the "stop the RTCRtpTransceiver" procedure from
238 // the webrtc-pc specification, described under the stop() method.
239 void StopTransceiverProcedure();
240
Steve Anton52d86772018-02-20 15:48:12 -0800241 // Fired when the RtpTransceiver state changes such that negotiation is now
242 // needed (e.g., in response to a direction change).
Harald Alvestrand280054f2020-11-10 13:12:53 +0000243 // sigslot::signal0<> SignalNegotiationNeeded;
Steve Anton52d86772018-02-20 15:48:12 -0800244
Steve Anton6e634bf2017-11-13 10:44:53 -0800245 // RtpTransceiverInterface implementation.
Steve Anton69470252018-02-09 11:43:08 -0800246 cricket::MediaType media_type() const override;
Danil Chapovalov66cadcc2018-06-19 16:47:43 +0200247 absl::optional<std::string> mid() const override;
Steve Anton6e634bf2017-11-13 10:44:53 -0800248 rtc::scoped_refptr<RtpSenderInterface> sender() const override;
249 rtc::scoped_refptr<RtpReceiverInterface> receiver() const override;
250 bool stopped() const override;
Harald Alvestrand6060df52020-08-11 09:54:02 +0200251 bool stopping() const override;
Steve Anton6e634bf2017-11-13 10:44:53 -0800252 RtpTransceiverDirection direction() const override;
Harald Alvestrand6060df52020-08-11 09:54:02 +0200253 RTCError SetDirectionWithError(
254 RtpTransceiverDirection new_direction) override;
Danil Chapovalov66cadcc2018-06-19 16:47:43 +0200255 absl::optional<RtpTransceiverDirection> current_direction() const override;
Steve Anton0f5400a2018-07-17 14:25:36 -0700256 absl::optional<RtpTransceiverDirection> fired_direction() const override;
Harald Alvestrand6060df52020-08-11 09:54:02 +0200257 RTCError StopStandard() override;
258 void StopInternal() override;
Florent Castelli2d9d82e2019-04-23 19:25:51 +0200259 RTCError SetCodecPreferences(
260 rtc::ArrayView<RtpCodecCapability> codecs) override;
261 std::vector<RtpCodecCapability> codec_preferences() const override {
262 return codec_preferences_;
263 }
Markus Handell0357b3e2020-03-16 13:40:51 +0100264 std::vector<RtpHeaderExtensionCapability> HeaderExtensionsToOffer()
265 const override;
Markus Handell5932fe12020-12-17 22:19:40 +0100266 std::vector<RtpHeaderExtensionCapability> HeaderExtensionsNegotiated()
267 const override;
Markus Handell755c65d2020-06-24 01:06:10 +0200268 RTCError SetOfferedRtpHeaderExtensions(
269 rtc::ArrayView<const RtpHeaderExtensionCapability>
270 header_extensions_to_offer) override;
Steve Anton6e634bf2017-11-13 10:44:53 -0800271
Tommicc7a3682021-05-04 14:59:38 +0200272 // Called on the signaling thread when the local or remote content description
273 // is updated. Used to update the negotiated header extensions.
274 // TODO(tommi): The implementation of this method is currently very simple and
275 // only used for updating the negotiated headers. However, we're planning to
276 // move all the updates done on the channel from the transceiver into this
277 // method. This will happen with the ownership of the channel object being
278 // moved into the transceiver.
279 void OnNegotiationUpdate(SdpType sdp_type,
280 const cricket::MediaContentDescription* content);
281
Steve Anton6e634bf2017-11-13 10:44:53 -0800282 private:
Tommi99c8a802021-04-27 15:00:00 +0200283 void OnFirstPacketReceived();
Harald Alvestrand6060df52020-08-11 09:54:02 +0200284 void StopSendingAndReceiving();
Harald Alvestranddaee8702022-04-29 11:42:55 +0000285 // Delete a channel, and ensure that references to its media channel
286 // are updated before deleting it.
287 void PushNewMediaChannelAndDeleteChannel(
288 cricket::ChannelInterface* channel_to_delete);
Steve Anton60776752018-01-10 11:51:34 -0800289
Harald Alvestrand6060df52020-08-11 09:54:02 +0200290 // Enforce that this object is created, used and destroyed on one thread.
Tommi99c8a802021-04-27 15:00:00 +0200291 TaskQueueBase* const thread_;
Steve Anton6e634bf2017-11-13 10:44:53 -0800292 const bool unified_plan_;
293 const cricket::MediaType media_type_;
Tommi99c8a802021-04-27 15:00:00 +0200294 rtc::scoped_refptr<PendingTaskSafetyFlag> signaling_thread_safety_;
Steve Anton6e634bf2017-11-13 10:44:53 -0800295 std::vector<rtc::scoped_refptr<RtpSenderProxyWithInternal<RtpSenderInternal>>>
296 senders_;
297 std::vector<
298 rtc::scoped_refptr<RtpReceiverProxyWithInternal<RtpReceiverInternal>>>
299 receivers_;
300
Tommi99c8a802021-04-27 15:00:00 +0200301 bool stopped_ RTC_GUARDED_BY(thread_) = false;
Harald Alvestrand6060df52020-08-11 09:54:02 +0200302 bool stopping_ RTC_GUARDED_BY(thread_) = false;
303 bool is_pc_closed_ = false;
Steve Anton6e634bf2017-11-13 10:44:53 -0800304 RtpTransceiverDirection direction_ = RtpTransceiverDirection::kInactive;
Danil Chapovalov66cadcc2018-06-19 16:47:43 +0200305 absl::optional<RtpTransceiverDirection> current_direction_;
Steve Anton0f5400a2018-07-17 14:25:36 -0700306 absl::optional<RtpTransceiverDirection> fired_direction_;
Danil Chapovalov66cadcc2018-06-19 16:47:43 +0200307 absl::optional<std::string> mid_;
308 absl::optional<size_t> mline_index_;
Steve Antonf9381f02017-12-14 10:23:57 -0800309 bool created_by_addtrack_ = false;
Eldar Rello353a7182019-11-25 18:49:44 +0200310 bool reused_for_addtrack_ = false;
Steve Antonf9381f02017-12-14 10:23:57 -0800311 bool has_ever_been_used_to_send_ = false;
Steve Anton6e634bf2017-11-13 10:44:53 -0800312
Harald Alvestrand19ebabc2022-04-28 13:31:17 +0000313 // Accessed on both thread_ and the network thread. Considered safe
314 // because all access on the network thread is within an invoke()
315 // from thread_.
Amit Hilbuchdd9390c2018-11-13 16:26:05 -0800316 cricket::ChannelInterface* channel_ = nullptr;
Florent Castelli2d9d82e2019-04-23 19:25:51 +0200317 cricket::ChannelManager* channel_manager_ = nullptr;
318 std::vector<RtpCodecCapability> codec_preferences_;
Markus Handell755c65d2020-06-24 01:06:10 +0200319 std::vector<RtpHeaderExtensionCapability> header_extensions_to_offer_;
Tommicc7a3682021-05-04 14:59:38 +0200320
Artem Titov880fa812021-07-30 22:30:23 +0200321 // `negotiated_header_extensions_` is read and written to on the signaling
Tommicc7a3682021-05-04 14:59:38 +0200322 // thread from the SdpOfferAnswerHandler class (e.g.
323 // PushdownMediaDescription().
324 cricket::RtpHeaderExtensions negotiated_header_extensions_
325 RTC_GUARDED_BY(thread_);
326
Harald Alvestrand280054f2020-11-10 13:12:53 +0000327 const std::function<void()> on_negotiation_needed_;
Steve Anton6e634bf2017-11-13 10:44:53 -0800328};
329
Mirko Bonadei9d9b8de2021-02-26 09:51:26 +0100330BEGIN_PRIMARY_PROXY_MAP(RtpTransceiver)
Harald Alvestrand5761e7b2021-01-29 14:45:08 +0000331
Mirko Bonadei9d9b8de2021-02-26 09:51:26 +0100332PROXY_PRIMARY_THREAD_DESTRUCTOR()
Tomas Gunnarssonfc83cdc2020-09-10 13:04:50 +0200333BYPASS_PROXY_CONSTMETHOD0(cricket::MediaType, media_type)
Nico Weber22f99252019-02-20 10:13:16 -0500334PROXY_CONSTMETHOD0(absl::optional<std::string>, mid)
335PROXY_CONSTMETHOD0(rtc::scoped_refptr<RtpSenderInterface>, sender)
336PROXY_CONSTMETHOD0(rtc::scoped_refptr<RtpReceiverInterface>, receiver)
337PROXY_CONSTMETHOD0(bool, stopped)
Harald Alvestrand6060df52020-08-11 09:54:02 +0200338PROXY_CONSTMETHOD0(bool, stopping)
Nico Weber22f99252019-02-20 10:13:16 -0500339PROXY_CONSTMETHOD0(RtpTransceiverDirection, direction)
Harald Alvestrand6060df52020-08-11 09:54:02 +0200340PROXY_METHOD1(webrtc::RTCError, SetDirectionWithError, RtpTransceiverDirection)
Nico Weber22f99252019-02-20 10:13:16 -0500341PROXY_CONSTMETHOD0(absl::optional<RtpTransceiverDirection>, current_direction)
342PROXY_CONSTMETHOD0(absl::optional<RtpTransceiverDirection>, fired_direction)
Harald Alvestrand6060df52020-08-11 09:54:02 +0200343PROXY_METHOD0(webrtc::RTCError, StopStandard)
344PROXY_METHOD0(void, StopInternal)
Florent Castelli2d9d82e2019-04-23 19:25:51 +0200345PROXY_METHOD1(webrtc::RTCError,
346 SetCodecPreferences,
347 rtc::ArrayView<RtpCodecCapability>)
348PROXY_CONSTMETHOD0(std::vector<RtpCodecCapability>, codec_preferences)
Markus Handell0357b3e2020-03-16 13:40:51 +0100349PROXY_CONSTMETHOD0(std::vector<RtpHeaderExtensionCapability>,
350 HeaderExtensionsToOffer)
Markus Handell5932fe12020-12-17 22:19:40 +0100351PROXY_CONSTMETHOD0(std::vector<RtpHeaderExtensionCapability>,
352 HeaderExtensionsNegotiated)
Markus Handell755c65d2020-06-24 01:06:10 +0200353PROXY_METHOD1(webrtc::RTCError,
354 SetOfferedRtpHeaderExtensions,
355 rtc::ArrayView<const RtpHeaderExtensionCapability>)
Markus Handell3d46d0b2021-05-27 21:42:57 +0200356END_PROXY_MAP(RtpTransceiver)
Steve Anton6e634bf2017-11-13 10:44:53 -0800357
358} // namespace webrtc
359
Steve Anton10542f22019-01-11 09:11:00 -0800360#endif // PC_RTP_TRANSCEIVER_H_