Add printout of supported codecs in PC test framework

Bug: None
Change-Id: Ib4fbbc3e782b8478ccf4eef72ebd74bc040b5f18
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/169731
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Commit-Queue: Artem Titov <titovartem@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#30696}
This commit is contained in:
Artem Titov
2020-03-05 14:29:37 +01:00
committed by Commit Bot
parent 0360dc490b
commit b1e0618e89

View File

@ -42,6 +42,16 @@ std::vector<RtpCodecCapability> FilterVideoCodecCapabilities(
bool use_ulpfec,
bool use_flexfec,
rtc::ArrayView<const RtpCodecCapability> supported_codecs) {
RTC_LOG(INFO) << "Peer connection support these codecs:";
for (const auto& codec : supported_codecs) {
RTC_LOG(INFO) << "Codec: " << codec.name;
if (!codec.parameters.empty()) {
RTC_LOG(INFO) << "Params:";
for (auto param : codec.parameters) {
RTC_LOG(INFO) << " " << param.first << "=" << param.second;
}
}
}
std::vector<RtpCodecCapability> output_codecs;
// Find requested codecs among supported and add them to output in the order
// they were requested.