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

Unified Diff: webrtc/api/rtpparameters.h

Issue 1885473004: Adding codecs to the RtpParameters returned by an RtpSender. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Updating build files. Created 4 years, 8 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/api/rtpparameters.h
diff --git a/webrtc/api/rtpparameters.h b/webrtc/api/rtpparameters.h
index 2c29d9843d9ee597c81e313e2476f05344065b40..50860d12e53a54ce91656cae2d64879227465081 100644
--- a/webrtc/api/rtpparameters.h
+++ b/webrtc/api/rtpparameters.h
@@ -11,6 +11,7 @@
#ifndef WEBRTC_API_RTPPARAMETERS_H_
#define WEBRTC_API_RTPPARAMETERS_H_
+#include <string>
#include <vector>
namespace webrtc {
@@ -22,8 +23,17 @@ struct RtpEncodingParameters {
int max_bitrate_bps = -1;
};
+struct RtpCodecParameters {
+ int payload_type;
+ std::string mime_type;
+ int clock_rate;
+ int channels = 1;
+ // TODO(deadbeef): Add sdpFmtpLine field.
+};
+
struct RtpParameters {
std::vector<RtpEncodingParameters> encodings;
+ std::vector<RtpCodecParameters> codecs;
};
} // namespace webrtc

Powered by Google App Engine
This is Rietveld 408576698