Add support for sending RTP two-byte header extensions.

Automatic detection if one-byte header or two-byte header should be used based
on extension ID and extension length.

Bug: webrtc:7990
Change-Id: I9fc848ecc59458d1ca97bace0e57ea04d3d0ced6
Reviewed-on: https://webrtc-review.googlesource.com/c/103422
Commit-Queue: Johannes Kron <kron@webrtc.org>
Reviewed-by: Erik Språng <sprang@webrtc.org>
Reviewed-by: Seth Hampson <shampson@webrtc.org>
Reviewed-by: Danil Chapovalov <danilchap@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#25004}
This commit is contained in:
Johannes Kron
2018-10-05 10:00:46 +02:00
committed by Commit Bot
parent 7880be1799
commit 78cdde3df6
9 changed files with 217 additions and 23 deletions

View File

@ -53,10 +53,18 @@ class RtpHeaderExtensionMap {
}
int32_t Deregister(RTPExtensionType type);
bool IsMixedOneTwoByteHeaderSupported() const {
return mixed_one_two_byte_header_supported_;
}
void SetMixedOneTwoByteHeaderSupported(bool supported) {
mixed_one_two_byte_header_supported_ = supported;
}
private:
bool Register(int id, RTPExtensionType type, const char* uri);
uint8_t ids_[kRtpExtensionNumberOfExtensions];
bool mixed_one_two_byte_header_supported_;
};
} // namespace webrtc