OLD | NEW |
1 /* | 1 /* |
2 * libjingle | 2 * libjingle |
3 * Copyright 2004 Google Inc. | 3 * Copyright 2004 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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 // When muting, produce black frames then pause the camera. | 149 // When muting, produce black frames then pause the camera. |
150 // When unmuting, start the camera. Camera starts unmuted. | 150 // When unmuting, start the camera. Camera starts unmuted. |
151 bool MuteToBlackThenPause(VideoCapturer* video_capturer, bool muted); | 151 bool MuteToBlackThenPause(VideoCapturer* video_capturer, bool muted); |
152 bool StopVideoCapture(VideoCapturer* video_capturer, | 152 bool StopVideoCapture(VideoCapturer* video_capturer, |
153 const VideoFormat& video_format); | 153 const VideoFormat& video_format); |
154 bool RestartVideoCapture(VideoCapturer* video_capturer, | 154 bool RestartVideoCapture(VideoCapturer* video_capturer, |
155 const VideoFormat& previous_format, | 155 const VideoFormat& previous_format, |
156 const VideoFormat& desired_format, | 156 const VideoFormat& desired_format, |
157 CaptureManager::RestartOptions options); | 157 CaptureManager::RestartOptions options); |
158 | 158 |
159 bool AddVideoRenderer(VideoCapturer* capturer, VideoRenderer* renderer); | 159 // TODO(nisse): Return values are mostly useless. Currently, these |
160 bool RemoveVideoRenderer(VideoCapturer* capturer, VideoRenderer* renderer); | 160 // methods tolerate nullptr inputs, probably not needed. |
| 161 virtual bool AddVideoSink(VideoCapturer* video_capturer, |
| 162 rtc::VideoSinkInterface<VideoFrame>* sink); |
| 163 virtual bool RemoveVideoSink(VideoCapturer* video_capturer, |
| 164 rtc::VideoSinkInterface<VideoFrame>* sink); |
161 bool IsScreencastRunning() const; | 165 bool IsScreencastRunning() const; |
162 | 166 |
163 // The operations below occur on the main thread. | 167 // The operations below occur on the main thread. |
164 | 168 |
165 // Starts AEC dump using existing file, with a specified maximum file size in | 169 // Starts AEC dump using existing file, with a specified maximum file size in |
166 // bytes. When the limit is reached, logging will stop and the file will be | 170 // bytes. When the limit is reached, logging will stop and the file will be |
167 // closed. If max_size_bytes is set to <= 0, no limit will be used. | 171 // closed. If max_size_bytes is set to <= 0, no limit will be used. |
168 bool StartAecDump(rtc::PlatformFile file, int64_t max_size_bytes); | 172 bool StartAecDump(rtc::PlatformFile file, int64_t max_size_bytes); |
169 | 173 |
170 // Stops recording AEC dump. | 174 // Stops recording AEC dump. |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 int audio_output_volume_; | 235 int audio_output_volume_; |
232 VideoRenderer* local_renderer_; | 236 VideoRenderer* local_renderer_; |
233 bool enable_rtx_; | 237 bool enable_rtx_; |
234 | 238 |
235 bool capturing_; | 239 bool capturing_; |
236 }; | 240 }; |
237 | 241 |
238 } // namespace cricket | 242 } // namespace cricket |
239 | 243 |
240 #endif // TALK_SESSION_MEDIA_CHANNELMANAGER_H_ | 244 #endif // TALK_SESSION_MEDIA_CHANNELMANAGER_H_ |
OLD | NEW |