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