Index: webrtc/pc/channelmanager.cc |
diff --git a/webrtc/pc/channelmanager.cc b/webrtc/pc/channelmanager.cc |
index 92be70ca18346561f8909d4bb8e8d2c4034f3b39..fe0564bbc2b230257deefe4967ec6fe175816ffc 100644 |
--- a/webrtc/pc/channelmanager.cc |
+++ b/webrtc/pc/channelmanager.cc |
@@ -455,11 +455,31 @@ |
capture_manager_.get(), capturer, video_format)); |
} |
+bool ChannelManager::MuteToBlackThenPause( |
+ VideoCapturer* video_capturer, bool muted) { |
+ if (!initialized_) { |
+ return false; |
+ } |
+ worker_thread_->Invoke<void>( |
+ Bind(&VideoCapturer::MuteToBlackThenPause, video_capturer, muted)); |
+ return true; |
+} |
+ |
bool ChannelManager::StopVideoCapture( |
VideoCapturer* capturer, const VideoFormat& video_format) { |
return initialized_ && worker_thread_->Invoke<bool>( |
Bind(&CaptureManager::StopVideoCapture, |
capture_manager_.get(), capturer, video_format)); |
+} |
+ |
+bool ChannelManager::RestartVideoCapture( |
+ VideoCapturer* video_capturer, |
+ const VideoFormat& previous_format, |
+ const VideoFormat& desired_format, |
+ CaptureManager::RestartOptions options) { |
+ return initialized_ && worker_thread_->Invoke<bool>( |
+ Bind(&CaptureManager::RestartVideoCapture, capture_manager_.get(), |
+ video_capturer, previous_format, desired_format, options)); |
} |
void ChannelManager::AddVideoSink( |