Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Side by Side Diff: talk/session/media/channelmanager.cc

Issue 1655793003: Make cricket::VideoCapturer implement VideoSourceInterface (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Added dummy capturerenderadapter.cc Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « talk/session/media/channelmanager.h ('k') | webrtc/api/androidvideocapturer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 DataEngineInterface* dme, 96 DataEngineInterface* dme,
97 CaptureManager* cm, 97 CaptureManager* cm,
98 rtc::Thread* worker_thread) { 98 rtc::Thread* worker_thread) {
99 media_engine_.reset(me); 99 media_engine_.reset(me);
100 data_media_engine_.reset(dme); 100 data_media_engine_.reset(dme);
101 capture_manager_.reset(cm); 101 capture_manager_.reset(cm);
102 initialized_ = false; 102 initialized_ = false;
103 main_thread_ = rtc::Thread::Current(); 103 main_thread_ = rtc::Thread::Current();
104 worker_thread_ = worker_thread; 104 worker_thread_ = worker_thread;
105 audio_output_volume_ = kNotSetOutputVolume; 105 audio_output_volume_ = kNotSetOutputVolume;
106 local_renderer_ = NULL;
107 capturing_ = false; 106 capturing_ = false;
108 enable_rtx_ = false; 107 enable_rtx_ = false;
109 108
110 capture_manager_->SignalCapturerStateChange.connect( 109 capture_manager_->SignalCapturerStateChange.connect(
111 this, &ChannelManager::OnVideoCaptureStateChange); 110 this, &ChannelManager::OnVideoCaptureStateChange);
112 } 111 }
113 112
114 ChannelManager::~ChannelManager() { 113 ChannelManager::~ChannelManager() {
115 if (initialized_) { 114 if (initialized_) {
116 Terminate(); 115 Terminate();
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after
568 return worker_thread_->Invoke<bool>( 567 return worker_thread_->Invoke<bool>(
569 Bind(&MediaEngineInterface::StartRtcEventLog, media_engine_.get(), file)); 568 Bind(&MediaEngineInterface::StartRtcEventLog, media_engine_.get(), file));
570 } 569 }
571 570
572 void ChannelManager::StopRtcEventLog() { 571 void ChannelManager::StopRtcEventLog() {
573 worker_thread_->Invoke<void>( 572 worker_thread_->Invoke<void>(
574 Bind(&MediaEngineInterface::StopRtcEventLog, media_engine_.get())); 573 Bind(&MediaEngineInterface::StopRtcEventLog, media_engine_.get()));
575 } 574 }
576 575
577 } // namespace cricket 576 } // namespace cricket
OLDNEW
« no previous file with comments | « talk/session/media/channelmanager.h ('k') | webrtc/api/androidvideocapturer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698