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

Side by Side Diff: webrtc/api/mediastreamprovider.h

Issue 1838413002: Combining SetVideoSend and SetSource into one method. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « no previous file | webrtc/api/rtpsender.cc » ('j') | webrtc/media/engine/webrtcvideoengine2.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright 2012 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 const RtpParameters& parameters) = 0; 68 const RtpParameters& parameters) = 0;
69 69
70 protected: 70 protected:
71 virtual ~AudioProviderInterface() {} 71 virtual ~AudioProviderInterface() {}
72 }; 72 };
73 73
74 // This interface is called by VideoRtpSender/Receivers to change the settings 74 // This interface is called by VideoRtpSender/Receivers to change the settings
75 // of a video track connected to a certain PeerConnection. 75 // of a video track connected to a certain PeerConnection.
76 class VideoProviderInterface { 76 class VideoProviderInterface {
77 public: 77 public:
78 virtual bool SetCaptureDevice(uint32_t ssrc,
79 cricket::VideoCapturer* camera) = 0;
80 // Enable/disable the video playout of a remote video track with |ssrc|. 78 // Enable/disable the video playout of a remote video track with |ssrc|.
81 virtual void SetVideoPlayout( 79 virtual void SetVideoPlayout(
82 uint32_t ssrc, 80 uint32_t ssrc,
83 bool enable, 81 bool enable,
84 rtc::VideoSinkInterface<cricket::VideoFrame>* sink) = 0; 82 rtc::VideoSinkInterface<cricket::VideoFrame>* sink) = 0;
85 // Enable sending video on the local video track with |ssrc|. 83 // Enable/disable sending video on the local video track with |ssrc|.
84 // TODO(deadbeef): Make |options| a reference parameter.
86 virtual void SetVideoSend(uint32_t ssrc, 85 virtual void SetVideoSend(uint32_t ssrc,
87 bool enable, 86 bool enable,
88 const cricket::VideoOptions* options) = 0; 87 const cricket::VideoOptions* options,
88 cricket::VideoCapturer* camera) = 0;
89 89
90 virtual RtpParameters GetVideoRtpParameters(uint32_t ssrc) const = 0; 90 virtual RtpParameters GetVideoRtpParameters(uint32_t ssrc) const = 0;
91 virtual bool SetVideoRtpParameters(uint32_t ssrc, 91 virtual bool SetVideoRtpParameters(uint32_t ssrc,
92 const RtpParameters& parameters) = 0; 92 const RtpParameters& parameters) = 0;
93 93
94 protected: 94 protected:
95 virtual ~VideoProviderInterface() {} 95 virtual ~VideoProviderInterface() {}
96 }; 96 };
97 97
98 } // namespace webrtc 98 } // namespace webrtc
99 99
100 #endif // WEBRTC_API_MEDIASTREAMPROVIDER_H_ 100 #endif // WEBRTC_API_MEDIASTREAMPROVIDER_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/api/rtpsender.cc » ('j') | webrtc/media/engine/webrtcvideoengine2.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698