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

Unified Diff: content/renderer/media/media_recorder_handler.cc

Issue 1819103004: MediaRecorder: Add Pause()/Resume() to AudioTrackRecorder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments Created 4 years, 9 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/audio_track_recorder_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/media_recorder_handler.cc
diff --git a/content/renderer/media/media_recorder_handler.cc b/content/renderer/media/media_recorder_handler.cc
index f20c6c40905c250fd513c6a1279c1e76e79ac59d..be5252cbc437deae27c7a4ea8fd358311017cc2a 100644
--- a/content/renderer/media/media_recorder_handler.cc
+++ b/content/renderer/media/media_recorder_handler.cc
@@ -202,6 +202,8 @@ void MediaRecorderHandler::pause() {
recording_ = false;
for (const auto& video_recorder : video_recorders_)
video_recorder->Pause();
+ for (const auto& audio_recorder : audio_recorders_)
+ audio_recorder->Pause();
}
void MediaRecorderHandler::resume() {
@@ -210,6 +212,8 @@ void MediaRecorderHandler::resume() {
recording_ = true;
for (const auto& video_recorder : video_recorders_)
video_recorder->Resume();
+ for (const auto& audio_recorder : audio_recorders_)
+ audio_recorder->Resume();
}
void MediaRecorderHandler::OnEncodedVideo(
« no previous file with comments | « content/renderer/media/audio_track_recorder_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698