DescriptionRELAND: MediaRecorder: use VideoTrackRecorder::GetPreferredCodecId() when available
Original CL got reverted due to 2 LayoutTests failing in a single bot:
(Mac Retina bot)
fast/mediacapturefromelement/HTMLMediaElementCapture-capture.html
fast/mediacapturefromelement/CanvasCaptureMediaStream-framerate-0.html
This bot compiles with no proprietary codecs. H264 was selected
as potentially accelerated by the platform (correct) but H264 was
not enabled in this platform, so we hit a DCHECK().
This CL makes sure that H264 is not considered if
#if BUILDFLAG(RTC_USE_H264
is false.
Original CL description ------------------------------------------------
MediaRecorder: use VideoTrackRecorder::GetPreferredCodecId() when available
This CL adds a static method to VTR to query which
one, if any, is the preferred video codec.
A new singleton Lazy Leaky class CodecEnumerator is
added to encapsulate poking the VEA to see which
codecs are supported, and to further query
a) the preferred codec id
b) if a given codec is supported
and wraps the previous CodecIdToVEAProfile()
functionality.
BUG=679946
Review-Url: https://codereview.chromium.org/2623353004
Cr-Commit-Position: refs/heads/master@{#443400}
Committed: https://chromium.googlesource.com/chromium/src/+/05574f4462f910edf41883479fcffabc21e2198f
Patch Set 1 : https://codereview.chromium.org/2624053002/ #Patch Set 2 : Avoid H264 if !BUILDFLAG(RTC_USE_H264) #
Messages
Total messages: 13 (9 generated)
|