aboutsummaryrefslogtreecommitdiff
path: root/webrtc/config.cc
diff options
context:
space:
mode:
authorpbos@webrtc.org <pbos@webrtc.org>2014-10-24 09:23:21 +0000
committerpbos@webrtc.org <pbos@webrtc.org>2014-10-24 09:23:21 +0000
commitad3b5a5c16ff768def84138147d592ecb669a8cd (patch)
tree53941722c884d83542b5c305e59835f8c92017ed /webrtc/config.cc
parentc9d6d140209bd2e8f44eb41fb0de17d512d39911 (diff)
downloadwebrtc-ad3b5a5c16ff768def84138147d592ecb669a8cd.tar.gz
Move min transmit bitrate to VideoEncoderConfig.
min_transmit_bitrate_bps needs to be reconfigurable during a call (since this is currently set only for screensharing through libjingle and can't be set once and for all for the entire Call. R=mflodman@webrtc.org, stefan@webrtc.org BUG=1667 Review URL: https://webrtc-codereview.appspot.com/28779004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@7518 4adac7df-926f-26a2-2b94-8c16560cd09d
Diffstat (limited to 'webrtc/config.cc')
-rw-r--r--webrtc/config.cc28
1 files changed, 28 insertions, 0 deletions
diff --git a/webrtc/config.cc b/webrtc/config.cc
index e0324b9e47..3d205f17e1 100644
--- a/webrtc/config.cc
+++ b/webrtc/config.cc
@@ -50,4 +50,32 @@ std::string VideoStream::ToString() const {
ss << '}';
return ss.str();
}
+
+std::string VideoEncoderConfig::ToString() const {
+ std::stringstream ss;
+
+ ss << "{streams: {";
+ for (size_t i = 0; i < streams.size(); ++i) {
+ ss << streams[i].ToString();
+ if (i != streams.size() - 1)
+ ss << "}, {";
+ }
+ ss << '}';
+ ss << ", content_type: ";
+ switch (content_type) {
+ case kRealtimeVideo:
+ ss << "kRealtimeVideo";
+ break;
+ case kScreenshare:
+ ss << "kScreenshare";
+ break;
+ }
+ ss << ", encoder_specific_settings: ";
+ ss << (encoder_specific_settings != NULL ? "(ptr)" : "NULL");
+
+ ss << ", min_transmit_bitrate_bps: " << min_transmit_bitrate_bps;
+ ss << '}';
+ return ss.str();
+}
+
} // namespace webrtc