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

Unified Diff: webrtc/api/mediastreamprovider.h

Issue 1766653002: Replace SetCapturer and SetCaptureDevice by SetSource. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Make SetSource tolerate unknown ssrc and source == NULL. Created 4 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
Index: webrtc/api/mediastreamprovider.h
diff --git a/webrtc/api/mediastreamprovider.h b/webrtc/api/mediastreamprovider.h
index ad7870c96a96a739eb8e0b3d487726352714b6bd..a5993948c63134a27b5b6ea46211c032941fc1d2 100644
--- a/webrtc/api/mediastreamprovider.h
+++ b/webrtc/api/mediastreamprovider.h
@@ -14,13 +14,12 @@
#include "webrtc/base/basictypes.h"
#include "webrtc/base/scoped_ptr.h"
#include "webrtc/media/base/videosinkinterface.h"
+#include "webrtc/media/base/videosourceinterface.h"
namespace cricket {
class AudioRenderer;
-class VideoCapturer;
class VideoFrame;
-class VideoRenderer;
struct AudioOptions;
struct VideoOptions;
@@ -70,8 +69,9 @@ class AudioProviderInterface {
// of a video track connected to a certain PeerConnection.
class VideoProviderInterface {
public:
- virtual bool SetCaptureDevice(uint32_t ssrc,
- cricket::VideoCapturer* camera) = 0;
+ virtual bool SetSource(
+ uint32_t ssrc,
+ rtc::VideoSourceInterface<cricket::VideoFrame>* source) = 0;
// Enable/disable the video playout of a remote video track with |ssrc|.
virtual void SetVideoPlayout(
uint32_t ssrc,

Powered by Google App Engine
This is Rietveld 408576698