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

Unified Diff: talk/app/webrtc/mediastreamprovider.h

Issue 1655793003: Make cricket::VideoCapturer implement VideoSourceInterface (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Adding VideoSourceInterface and letting cricket::VideoCapturer implement it Created 4 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
Index: talk/app/webrtc/mediastreamprovider.h
diff --git a/talk/app/webrtc/mediastreamprovider.h b/talk/app/webrtc/mediastreamprovider.h
index 585d51bcc8178c1ba245a40f6121cbe1971d5671..0e92fc1244e5f54a4d6346978b0bcdd98c6c9a88 100644
--- a/talk/app/webrtc/mediastreamprovider.h
+++ b/talk/app/webrtc/mediastreamprovider.h
@@ -30,11 +30,13 @@
#include "webrtc/base/basictypes.h"
#include "webrtc/base/scoped_ptr.h"
+#include "webrtc/media/base/videosinkinterface.h"
namespace cricket {
class AudioRenderer;
class VideoCapturer;
+class VideoFrame;
class VideoRenderer;
struct AudioOptions;
struct VideoOptions;
@@ -95,6 +97,12 @@ class VideoProviderInterface {
virtual void SetVideoSend(uint32_t ssrc,
bool enable,
const cricket::VideoOptions* options) = 0;
+ // Return the sink which we should pass video frames to.
+ // TODO(nisse): This doesn't really belong here, it's needed to let
+ // VideoRtpSender hook up the WebRtcVideoSendStream object as a sink
+ // for the corresponding VideoTrack.
+ virtual rtc::VideoSinkInterface<cricket::VideoFrame>* GetSink(
+ uint32_t ssrc) = 0;
protected:
virtual ~VideoProviderInterface() {}

Powered by Google App Engine
This is Rietveld 408576698