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

Unified Diff: content/renderer/media/webrtc_local_audio_track.h

Issue 15979027: start/stop the source of the capturer when 1st audiotrack/last audiotrack is added/removed (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: content/renderer/media/webrtc_local_audio_track.h
diff --git a/content/renderer/media/webrtc_local_audio_track.h b/content/renderer/media/webrtc_local_audio_track.h
index 660d6969f1874b9eeb9589705d6115c93aa1269b..f9862f5d82304612ea399c042e4f97fa7e330e48 100644
--- a/content/renderer/media/webrtc_local_audio_track.h
+++ b/content/renderer/media/webrtc_local_audio_track.h
@@ -44,6 +44,14 @@ class CONTENT_EXPORT WebRtcLocalAudioTrack
// Called on the main render thread.
void RemoveSink(WebRtcAudioCapturerSink* sink);
+ // Start the local audio track. Called on the main render thread and
henrika (OOO until Aug 14) 2013/06/05 09:09:20 nit, Starts
no longer working on chromium 2013/06/05 16:29:45 Done.
+ // should be called only once when audio track is created.
+ void Start();
+
+ // Stop the local audio track. Called on the main render thread and
+ // should be called only once when audio track going away.
henrika (OOO until Aug 14) 2013/06/05 09:09:20 Who is responsible for ensuring that it is only ca
no longer working on chromium 2013/06/05 16:29:45 Good question, in the real life, Stop() will be ca
+ void Stop();
+
protected:
WebRtcLocalAudioTrack(const std::string& label,
const scoped_refptr<WebRtcAudioCapturer>& capturer,

Powered by Google App Engine
This is Rietveld 408576698