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

Unified Diff: remoting/host/video_frame_recorder_host_extension.cc

Issue 386853002: Add a Record button to the web-app if the host supports video recording. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move implementation out to remoting.VideoFrameRecorder. Created 6 years, 4 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 | remoting/remoting_webapp_files.gypi » ('j') | remoting/webapp/client_session.js » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/video_frame_recorder_host_extension.cc
diff --git a/remoting/host/video_frame_recorder_host_extension.cc b/remoting/host/video_frame_recorder_host_extension.cc
index b0b4d47d84bdef289c35b713e094c16218172a9c..e5a2e84afc4a226c8815c5a03b9fb4e8aa6a75ef 100644
--- a/remoting/host/video_frame_recorder_host_extension.cc
+++ b/remoting/host/video_frame_recorder_host_extension.cc
@@ -10,6 +10,7 @@
#include "base/logging.h"
#include "base/values.h"
#include "remoting/codec/video_encoder_verbatim.h"
+#include "remoting/host/client_session_control.h"
#include "remoting/host/host_extension_session.h"
#include "remoting/host/video_frame_recorder.h"
#include "remoting/proto/control.pb.h"
@@ -56,8 +57,10 @@ class VideoFrameRecorderHostExtensionSession : public HostExtensionSession {
};
VideoFrameRecorderHostExtensionSession::VideoFrameRecorderHostExtensionSession(
+ ClientSessionControl* client_session_control,
int64_t max_content_bytes) : first_frame_(false) {
video_frame_recorder.SetMaxContentBytes(max_content_bytes);
+ client_session_control->ResetVideoPipeline();
}
scoped_ptr<VideoEncoder>
« no previous file with comments | « no previous file | remoting/remoting_webapp_files.gypi » ('j') | remoting/webapp/client_session.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698