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

Unified Diff: content/renderer/media/recorder/media_recorder_handler.h

Issue 2697703003: MediaRecorder: make sure ondataavailable+onstop events are fired before onerror (Closed)
Patch Set: fix some naming confusion Created 3 years, 10 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 | « no previous file | content/renderer/media/recorder/media_recorder_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/recorder/media_recorder_handler.h
diff --git a/content/renderer/media/recorder/media_recorder_handler.h b/content/renderer/media/recorder/media_recorder_handler.h
index 58d3d6ffc6382ef8f2817a4b80306ba9a7594ee0..d7cf39dacf74f26ea8fa88b5c17e454a500081a3 100644
--- a/content/renderer/media/recorder/media_recorder_handler.h
+++ b/content/renderer/media/recorder/media_recorder_handler.h
@@ -74,6 +74,9 @@ class CONTENT_EXPORT MediaRecorderHandler final
base::TimeTicks timestamp);
void WriteData(base::StringPiece data);
+ // Updates |video_tracks_|,|audio_tracks_| and returns true if any changed.
+ bool UpdateTracksAndCheckIfChanged();
+
void OnVideoFrameForTesting(const scoped_refptr<media::VideoFrame>& frame,
const base::TimeTicks& timestamp);
void OnAudioBusForTesting(const media::AudioBus& audio_bus,
@@ -98,6 +101,8 @@ class CONTENT_EXPORT MediaRecorderHandler final
bool recording_;
blink::WebMediaStream media_stream_; // The MediaStream being recorded.
+ blink::WebVector<blink::WebMediaStreamTrack> video_tracks_;
+ blink::WebVector<blink::WebMediaStreamTrack> audio_tracks_;
// |client_| is a weak pointer, and is valid for the lifetime of this object.
blink::WebMediaRecorderHandlerClient* client_;
« no previous file with comments | « no previous file | content/renderer/media/recorder/media_recorder_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698