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

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

Issue 1211973012: [Experimental] MediaStreamRecorder playground (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed FFmpegMuxer, using instead libwebm::IMkvMuxer, which is partially added Created 5 years, 5 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
Index: content/renderer/media/media_stream_renderer_factory_impl.cc
diff --git a/content/renderer/media/media_stream_renderer_factory_impl.cc b/content/renderer/media/media_stream_renderer_factory_impl.cc
index cfc37a7380256ff546b8a9e94a35e63502afd80a..4330a6c2ecf470bb34bfe85e07c6c78ab522c315 100644
--- a/content/renderer/media/media_stream_renderer_factory_impl.cc
+++ b/content/renderer/media/media_stream_renderer_factory_impl.cc
@@ -18,10 +18,20 @@
#include "third_party/WebKit/public/web/WebMediaStreamRegistry.h"
#include "third_party/libjingle/source/talk/app/webrtc/mediastreaminterface.h"
+#include "third_party/WebKit/public/platform/WebMediaRecorderHandlerClient.h"
+
namespace content {
namespace {
+class bla : public blink::WebMediaRecorderHandlerClient {
+ public:
+ virtual void writeData(const char* data, int length, bool lastInslice) {}
+ virtual void failOutOfMemory(const blink::WebString& message) {}
+ virtual void failIllegalStreamModification(const blink::WebString& message) {}
+ virtual void failOtherRecordingError(const blink::WebString& message) {}
+};
+
PeerConnectionDependencyFactory* GetPeerConnectionDependencyFactory() {
return RenderThreadImpl::current()->GetPeerConnectionDependencyFactory();
}
@@ -129,6 +139,9 @@ MediaStreamRendererFactoryImpl::GetVideoFrameProvider(
return NULL;
}
+ media_recorder_handler_.initialize(new bla(), web_stream, blink::WebString());
+ media_recorder_handler_.start();
+
return new RTCVideoRenderer(video_tracks[0], error_cb, repaint_cb);
}
« no previous file with comments | « content/renderer/media/media_stream_renderer_factory_impl.h ('k') | content/renderer/media/video_track_recorder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698