Introduce InbandComfortNoise RTP header extension.
BUG: webrtc:11085 Change-Id: I9b556a0d67d3c239abc247787103af9e50af4e65 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/159710 Commit-Queue: Minyue Li <minyue@webrtc.org> Reviewed-by: Danil Chapovalov <danilchap@webrtc.org> Reviewed-by: Henrik Lundin <henrik.lundin@webrtc.org> Reviewed-by: Harald Alvestrand <hta@webrtc.org> Cr-Commit-Position: refs/heads/master@{#30014}
This commit is contained in:
@ -297,5 +297,23 @@ class RtpMid : public BaseRtpStringExtension {
|
||||
static constexpr const char kUri[] = "urn:ietf:params:rtp-hdrext:sdes:mid";
|
||||
};
|
||||
|
||||
class InbandComfortNoiseExtension {
|
||||
public:
|
||||
using value_type = absl::optional<uint8_t>;
|
||||
|
||||
static constexpr RTPExtensionType kId = kRtpExtensionInbandComfortNoise;
|
||||
static constexpr uint8_t kValueSizeBytes = 1;
|
||||
static constexpr const char kUri[] =
|
||||
"http://www.webrtc.org/experiments/rtp-hdrext/inband-cn";
|
||||
|
||||
static bool Parse(rtc::ArrayView<const uint8_t> data,
|
||||
absl::optional<uint8_t>* level);
|
||||
static size_t ValueSize(absl::optional<uint8_t> level) {
|
||||
return kValueSizeBytes;
|
||||
}
|
||||
static bool Write(rtc::ArrayView<uint8_t> data,
|
||||
absl::optional<uint8_t> level);
|
||||
};
|
||||
|
||||
} // namespace webrtc
|
||||
#endif // MODULES_RTP_RTCP_SOURCE_RTP_HEADER_EXTENSIONS_H_
|
||||
|
||||
Reference in New Issue
Block a user