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

Side by Side 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, 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * libjingle 2 * libjingle
3 * Copyright 2012 Google Inc. 3 * Copyright 2012 Google Inc.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met: 6 * modification, are permitted provided that the following conditions are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright notice, 8 * 1. Redistributions of source code must retain the above copyright notice,
9 * this list of conditions and the following disclaimer. 9 * this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright notice, 10 * 2. Redistributions in binary form must reproduce the above copyright notice,
(...skipping 12 matching lines...) Expand all
23 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 23 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
24 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 24 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
25 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */ 26 */
27 27
28 #ifndef TALK_APP_WEBRTC_MEDIASTREAMPROVIDER_H_ 28 #ifndef TALK_APP_WEBRTC_MEDIASTREAMPROVIDER_H_
29 #define TALK_APP_WEBRTC_MEDIASTREAMPROVIDER_H_ 29 #define TALK_APP_WEBRTC_MEDIASTREAMPROVIDER_H_
30 30
31 #include "webrtc/base/basictypes.h" 31 #include "webrtc/base/basictypes.h"
32 #include "webrtc/base/scoped_ptr.h" 32 #include "webrtc/base/scoped_ptr.h"
33 #include "webrtc/media/base/videosinkinterface.h"
33 34
34 namespace cricket { 35 namespace cricket {
35 36
36 class AudioRenderer; 37 class AudioRenderer;
37 class VideoCapturer; 38 class VideoCapturer;
39 class VideoFrame;
38 class VideoRenderer; 40 class VideoRenderer;
39 struct AudioOptions; 41 struct AudioOptions;
40 struct VideoOptions; 42 struct VideoOptions;
41 43
42 } // namespace cricket 44 } // namespace cricket
43 45
44 namespace webrtc { 46 namespace webrtc {
45 47
46 class AudioSinkInterface; 48 class AudioSinkInterface;
47 49
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 virtual bool SetCaptureDevice(uint32_t ssrc, 90 virtual bool SetCaptureDevice(uint32_t ssrc,
89 cricket::VideoCapturer* camera) = 0; 91 cricket::VideoCapturer* camera) = 0;
90 // Enable/disable the video playout of a remote video track with |ssrc|. 92 // Enable/disable the video playout of a remote video track with |ssrc|.
91 virtual void SetVideoPlayout(uint32_t ssrc, 93 virtual void SetVideoPlayout(uint32_t ssrc,
92 bool enable, 94 bool enable,
93 cricket::VideoRenderer* renderer) = 0; 95 cricket::VideoRenderer* renderer) = 0;
94 // Enable sending video on the local video track with |ssrc|. 96 // Enable sending video on the local video track with |ssrc|.
95 virtual void SetVideoSend(uint32_t ssrc, 97 virtual void SetVideoSend(uint32_t ssrc,
96 bool enable, 98 bool enable,
97 const cricket::VideoOptions* options) = 0; 99 const cricket::VideoOptions* options) = 0;
100 // Return the sink which we should pass video frames to.
101 // TODO(nisse): This doesn't really belong here, it's needed to let
102 // VideoRtpSender hook up the WebRtcVideoSendStream object as a sink
103 // for the corresponding VideoTrack.
104 virtual rtc::VideoSinkInterface<cricket::VideoFrame>* GetSink(
105 uint32_t ssrc) = 0;
98 106
99 protected: 107 protected:
100 virtual ~VideoProviderInterface() {} 108 virtual ~VideoProviderInterface() {}
101 }; 109 };
102 110
103 } // namespace webrtc 111 } // namespace webrtc
104 112
105 #endif // TALK_APP_WEBRTC_MEDIASTREAMPROVIDER_H_ 113 #endif // TALK_APP_WEBRTC_MEDIASTREAMPROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698