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

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

Issue 12086092: Implement audio constraints for PeerConneciton API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove one spa Created 7 years, 11 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
« no previous file with comments | « no previous file | content/renderer/media/media_stream_dependency_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/media_stream_dependency_factory.h
diff --git a/content/renderer/media/media_stream_dependency_factory.h b/content/renderer/media/media_stream_dependency_factory.h
index 7fd7c6b3ca482ed6cf82e2be45a54bffe325fd92..e9c934095b842f913b480faecb2b65d8ce112a7e 100644
--- a/content/renderer/media/media_stream_dependency_factory.h
+++ b/content/renderer/media/media_stream_dependency_factory.h
@@ -124,11 +124,17 @@ class CONTENT_EXPORT MediaStreamDependencyFactory
virtual scoped_refptr<webrtc::LocalMediaStreamInterface>
CreateLocalMediaStream(const std::string& label);
+ // Asks the PeerConnection factory to create a Local Audio Source.
+ virtual scoped_refptr<webrtc::AudioSourceInterface>
+ CreateLocalAudioSource(
+ const webrtc::MediaConstraintsInterface* constraints);
+
// Asks the PeerConnection factory to create a Local Video Source.
virtual scoped_refptr<webrtc::VideoSourceInterface>
- CreateVideoSource(int video_session_id,
- bool is_screen_cast,
- const webrtc::MediaConstraintsInterface* constraints);
+ CreateLocalVideoSource(
+ int video_session_id,
+ bool is_screen_cast,
+ const webrtc::MediaConstraintsInterface* constraints);
// Initializes the source using audio parameters for the selected
// capture device and specifies which capture device to use as capture
@@ -141,16 +147,16 @@ class CONTENT_EXPORT MediaStreamDependencyFactory
// WebRtcAudioCapturer.
virtual bool CreateWebAudioSource(WebKit::WebMediaStreamSource* source);
+ // Asks the PeerConnection factory to create a Local AudioTrack object.
+ virtual scoped_refptr<webrtc::LocalAudioTrackInterface>
+ CreateLocalAudioTrack(const std::string& label,
+ webrtc::AudioSourceInterface* source);
+
// Asks the PeerConnection factory to create a Local VideoTrack object.
virtual scoped_refptr<webrtc::VideoTrackInterface>
CreateLocalVideoTrack(const std::string& label,
webrtc::VideoSourceInterface* source);
- // Asks the PeerConnection factory to create a Local AudioTrack object.
- virtual scoped_refptr<webrtc::LocalAudioTrackInterface>
- CreateLocalAudioTrack(const std::string& label,
- webrtc::AudioDeviceModule* audio_device);
-
virtual bool EnsurePeerConnectionFactory();
virtual bool PeerConnectionFactoryCreated();
« no previous file with comments | « no previous file | content/renderer/media/media_stream_dependency_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698