Deduplicate set of the rtp header extension uri constants
Bug: webrtc:7472 Change-Id: Ic0b4f2cc3374ba70a043310b5046d8bf91f0acbe Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/231949 Reviewed-by: Tommi <tommi@webrtc.org> Commit-Queue: Tommi <tommi@webrtc.org> Cr-Commit-Position: refs/heads/main@{#34990}
This commit is contained in:
committed by
WebRTC LUCI CQ
parent
dc8fc72204
commit
d0321c5e5a
@ -15,6 +15,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "absl/strings/string_view.h"
|
||||
#include "api/array_view.h"
|
||||
#include "api/rtp_parameters.h"
|
||||
#include "modules/rtp_rtcp/include/rtp_rtcp_defines.h"
|
||||
@ -35,7 +36,7 @@ class RtpHeaderExtensionMap {
|
||||
|
||||
template <typename Extension>
|
||||
bool Register(int id) {
|
||||
return Register(id, Extension::kId, Extension::kUri);
|
||||
return Register(id, Extension::kId, Extension::Uri());
|
||||
}
|
||||
bool RegisterByType(int id, RTPExtensionType type);
|
||||
bool RegisterByUri(int id, absl::string_view uri);
|
||||
@ -64,7 +65,7 @@ class RtpHeaderExtensionMap {
|
||||
}
|
||||
|
||||
private:
|
||||
bool Register(int id, RTPExtensionType type, const char* uri);
|
||||
bool Register(int id, RTPExtensionType type, absl::string_view uri);
|
||||
|
||||
uint8_t ids_[kRtpExtensionNumberOfExtensions];
|
||||
bool extmap_allow_mixed_;
|
||||
|
||||
Reference in New Issue
Block a user