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 virtual void AddVideoSink(VideoCapturer* video_capturer, |
160 bool RemoveVideoRenderer(VideoCapturer* capturer, VideoRenderer* renderer); | 160 rtc::VideoSinkInterface<VideoFrame>* sink); |
| 161 virtual void RemoveVideoSink(VideoCapturer* video_capturer, |
| 162 rtc::VideoSinkInterface<VideoFrame>* sink); |
161 bool IsScreencastRunning() const; | 163 bool IsScreencastRunning() const; |
162 | 164 |
163 // The operations below occur on the main thread. | 165 // The operations below occur on the main thread. |
164 | 166 |
165 // Starts AEC dump using existing file, with a specified maximum file size in | 167 // 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 | 168 // 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. | 169 // 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); | 170 bool StartAecDump(rtc::PlatformFile file, int64_t max_size_bytes); |
169 | 171 |
170 // Stops recording AEC dump. | 172 // Stops recording AEC dump. |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 int audio_output_volume_; | 233 int audio_output_volume_; |
232 VideoRenderer* local_renderer_; | 234 VideoRenderer* local_renderer_; |
233 bool enable_rtx_; | 235 bool enable_rtx_; |
234 | 236 |
235 bool capturing_; | 237 bool capturing_; |
236 }; | 238 }; |
237 | 239 |
238 } // namespace cricket | 240 } // namespace cricket |
239 | 241 |
240 #endif // TALK_SESSION_MEDIA_CHANNELMANAGER_H_ | 242 #endif // TALK_SESSION_MEDIA_CHANNELMANAGER_H_ |
OLD | NEW |