Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(304)

Unified Diff: webrtc/config.cc

Issue 1984983002: Remove use of RtpHeaderExtension and clean up (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Addressed nit Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/config.cc
diff --git a/webrtc/config.cc b/webrtc/config.cc
index c8cb9ef840fc457cb0bb1633bd16d8b6c6f75c08..e9c56da32a24c97962a4cbce455884a21457d0aa 100644
--- a/webrtc/config.cc
+++ b/webrtc/config.cc
@@ -24,32 +24,42 @@ std::string FecConfig::ToString() const {
std::string RtpExtension::ToString() const {
std::stringstream ss;
- ss << "{name: " << name;
+ ss << "{uri: " << uri;
ss << ", id: " << id;
ss << '}';
return ss.str();
}
-const char* RtpExtension::kTOffset = "urn:ietf:params:rtp-hdrext:toffset";
-const char* RtpExtension::kAbsSendTime =
- "http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time";
-const char* RtpExtension::kVideoRotation = "urn:3gpp:video-orientation";
-const char* RtpExtension::kAudioLevel =
+const char* RtpExtension::kAudioLevelUri =
"urn:ietf:params:rtp-hdrext:ssrc-audio-level";
-const char* RtpExtension::kTransportSequenceNumber =
+const int RtpExtension::kAudioLevelDefaultId = 1;
+
+const char* RtpExtension::kTimestampOffsetUri =
+ "urn:ietf:params:rtp-hdrext:toffset";
+const int RtpExtension::kTimestampOffsetDefaultId = 2;
+
+const char* RtpExtension::kAbsSendTimeUri =
+ "http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time";
+const int RtpExtension::kAbsSendTimeDefaultId = 3;
+
+const char* RtpExtension::kVideoRotationUri = "urn:3gpp:video-orientation";
+const int RtpExtension::kVideoRotationDefaultId = 4;
+
+const char* RtpExtension::kTransportSequenceNumberUri =
"http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01";
+const int RtpExtension::kTransportSequenceNumberDefaultId = 5;
-bool RtpExtension::IsSupportedForAudio(const std::string& name) {
- return name == webrtc::RtpExtension::kAbsSendTime ||
- name == webrtc::RtpExtension::kAudioLevel ||
- name == webrtc::RtpExtension::kTransportSequenceNumber;
+bool RtpExtension::IsSupportedForAudio(const std::string& uri) {
+ return uri == webrtc::RtpExtension::kAbsSendTimeUri ||
+ uri == webrtc::RtpExtension::kAudioLevelUri ||
+ uri == webrtc::RtpExtension::kTransportSequenceNumberUri;
}
-bool RtpExtension::IsSupportedForVideo(const std::string& name) {
- return name == webrtc::RtpExtension::kTOffset ||
- name == webrtc::RtpExtension::kAbsSendTime ||
- name == webrtc::RtpExtension::kVideoRotation ||
- name == webrtc::RtpExtension::kTransportSequenceNumber;
+bool RtpExtension::IsSupportedForVideo(const std::string& uri) {
+ return uri == webrtc::RtpExtension::kTimestampOffsetUri ||
+ uri == webrtc::RtpExtension::kAbsSendTimeUri ||
+ uri == webrtc::RtpExtension::kVideoRotationUri ||
+ uri == webrtc::RtpExtension::kTransportSequenceNumberUri;
}
VideoStream::VideoStream()
« no previous file with comments | « webrtc/config.h ('k') | webrtc/media/base/fakemediaengine.h » ('j') | webrtc/pc/mediasession.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698