OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |