Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(209)

Unified Diff: content/renderer/media/video_track_recorder.h

Issue 2623353004: RELAND: MediaRecorder: use VideoTrackRecorder::GetPreferredCodecId() when available (Closed)
Patch Set: Avoid H264 if !BUILDFLAG(RTC_USE_H264) Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/media/media_recorder_handler.cc ('k') | content/renderer/media/video_track_recorder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/video_track_recorder.h
diff --git a/content/renderer/media/video_track_recorder.h b/content/renderer/media/video_track_recorder.h
index e1db7fcf3def5f98669a69c182051cc3f81a76dd..0460cfaeed3f6abf607b399f4a94a777e0e29797 100644
--- a/content/renderer/media/video_track_recorder.h
+++ b/content/renderer/media/video_track_recorder.h
@@ -37,10 +37,14 @@ namespace content {
class CONTENT_EXPORT VideoTrackRecorder
: NON_EXPORTED_BASE(public MediaStreamVideoSink) {
public:
+ // Do not change the order of codecs; add new ones right before LAST.
enum class CodecId {
VP8,
VP9,
+#if BUILDFLAG(RTC_USE_H264)
H264,
+#endif
+ LAST
};
class Encoder;
@@ -50,6 +54,8 @@ class CONTENT_EXPORT VideoTrackRecorder
base::TimeTicks capture_timestamp,
bool is_key_frame)>;
+ static CodecId GetPreferredCodecId();
+
VideoTrackRecorder(CodecId codec,
const blink::WebMediaStreamTrack& track,
const OnEncodedVideoCB& on_encoded_video_cb,
« no previous file with comments | « content/renderer/media/media_recorder_handler.cc ('k') | content/renderer/media/video_track_recorder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698