From b1e0618e89bfee6ac52f58f018d32dfb0b589d83 Mon Sep 17 00:00:00 2001 From: Artem Titov Date: Thu, 5 Mar 2020 14:29:37 +0100 Subject: [PATCH] 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 Commit-Queue: Artem Titov Cr-Commit-Position: refs/heads/master@{#30696} --- test/pc/e2e/sdp/sdp_changer.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/pc/e2e/sdp/sdp_changer.cc b/test/pc/e2e/sdp/sdp_changer.cc index 16391788a4..69035d55af 100644 --- a/test/pc/e2e/sdp/sdp_changer.cc +++ b/test/pc/e2e/sdp/sdp_changer.cc @@ -42,6 +42,16 @@ std::vector FilterVideoCodecCapabilities( bool use_ulpfec, bool use_flexfec, rtc::ArrayView 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 output_codecs; // Find requested codecs among supported and add them to output in the order // they were requested.