#include "third_party/webrtc/api/video_codecs/sdp_video_format.h"
#include "third_party/webrtc/media/base/h264_profile_level_id.h"
#include "third_party/webrtc/media/base/media_constants.h"
+#include "third_party/webrtc/modules/video_coding/codecs/h264/include/h264.h"
#if defined(TIZEN_CAPI_ENCODER_TV_API)
#include "third_party/blink/renderer/platform/peerconnection/rtc_video_encoder_tizen_adapter.h"
std::vector<webrtc::SdpVideoFormat> supported_codecs;
supported_codecs.emplace_back(cricket::kVp8CodecName);
- // TODO(m.napiorkows): We should include this AND lower coding profiles
const webrtc::H264::ProfileLevelId profile_level_id(
webrtc::H264::kProfileConstrainedBaseline, webrtc::H264::kLevel4);
webrtc::SdpVideoFormat format{"H264"};
{cricket::kH264FmtpLevelAsymmetryAllowed, "1"},
{cricket::kH264FmtpPacketizationMode, "1"}};
supported_codecs.push_back(format);
+
+ // Mark default configurations from WebRTC SW decoder as supported also.
+ for (const webrtc::SdpVideoFormat& format : webrtc::SupportedH264Codecs()) {
+ if (!format.IsCodecInList(supported_codecs)) {
+ supported_codecs.push_back(format);
+ }
+ }
return supported_codecs;
}