aboutsummaryrefslogtreecommitdiff
path: root/pc/rtp_transceiver.h
diff options
context:
space:
mode:
Diffstat (limited to 'pc/rtp_transceiver.h')
-rw-r--r--pc/rtp_transceiver.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/pc/rtp_transceiver.h b/pc/rtp_transceiver.h
index 7ab9e9849a..0668447b9f 100644
--- a/pc/rtp_transceiver.h
+++ b/pc/rtp_transceiver.h
@@ -64,11 +64,14 @@ class RtpTransceiver final
// Construct a Unified Plan-style RtpTransceiver with the given sender and
// receiver. The media type will be derived from the media types of the sender
// and receiver. The sender and receiver should have the same media type.
+ // |HeaderExtensionsToOffer| is used for initializing the return value of
+ // HeaderExtensionsToOffer().
RtpTransceiver(
rtc::scoped_refptr<RtpSenderProxyWithInternal<RtpSenderInternal>> sender,
rtc::scoped_refptr<RtpReceiverProxyWithInternal<RtpReceiverInternal>>
receiver,
- cricket::ChannelManager* channel_manager);
+ cricket::ChannelManager* channel_manager,
+ std::vector<RtpHeaderExtensionCapability> HeaderExtensionsToOffer);
~RtpTransceiver() override;
// Returns the Voice/VideoChannel set for this transceiver. May be null if
@@ -190,6 +193,8 @@ class RtpTransceiver final
std::vector<RtpCodecCapability> codec_preferences() const override {
return codec_preferences_;
}
+ std::vector<RtpHeaderExtensionCapability> HeaderExtensionsToOffer()
+ const override;
private:
void OnFirstPacketReceived(cricket::ChannelInterface* channel);
@@ -215,6 +220,7 @@ class RtpTransceiver final
cricket::ChannelInterface* channel_ = nullptr;
cricket::ChannelManager* channel_manager_ = nullptr;
std::vector<RtpCodecCapability> codec_preferences_;
+ std::vector<RtpHeaderExtensionCapability> HeaderExtensionsToOffer_;
};
BEGIN_SIGNALING_PROXY_MAP(RtpTransceiver)
@@ -233,6 +239,8 @@ PROXY_METHOD1(webrtc::RTCError,
SetCodecPreferences,
rtc::ArrayView<RtpCodecCapability>)
PROXY_CONSTMETHOD0(std::vector<RtpCodecCapability>, codec_preferences)
+PROXY_CONSTMETHOD0(std::vector<RtpHeaderExtensionCapability>,
+ HeaderExtensionsToOffer)
END_PROXY_MAP()
} // namespace webrtc