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

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

Issue 23171026: Feed audio constraints over to WebRtcLocalAudioTrack (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Address comments Created 7 years, 4 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 720ecb063d737ddcbdc072dc699a4b93dca468e5..c89f274a6c099d41d67a4b1a83acfbfd81892881 100644
--- a/content/renderer/media/media_stream_dependency_factory.h
+++ b/content/renderer/media/media_stream_dependency_factory.h
@@ -42,6 +42,7 @@ namespace content {
class IpcNetworkManager;
class IpcPacketSocketFactory;
+class RTCMediaConstraints;
class VideoCaptureImplManager;
class WebRtcAudioCapturer;
class WebRtcAudioDeviceImpl;
@@ -161,14 +162,19 @@ class CONTENT_EXPORT MediaStreamDependencyFactory
// specific for a WebAudio source. The created WebAudioCapturerSource
// instance will function as audio source instead of the default
// WebRtcAudioCapturer.
+ // The |constraints| will be modified to include the default, mandatory
+ // WebAudio constraints.
virtual scoped_refptr<WebRtcAudioCapturer> CreateWebAudioSource(
- WebKit::WebMediaStreamSource* source);
+ WebKit::WebMediaStreamSource* source,
+ RTCMediaConstraints* constraints);
// Asks the PeerConnection factory to create a Local AudioTrack object.
virtual scoped_refptr<webrtc::AudioTrackInterface>
- CreateLocalAudioTrack(const std::string& id,
- const scoped_refptr<WebRtcAudioCapturer>& capturer,
- webrtc::AudioSourceInterface* source);
+ CreateLocalAudioTrack(
+ const std::string& id,
+ const scoped_refptr<WebRtcAudioCapturer>& capturer,
+ webrtc::AudioSourceInterface* source,
+ const webrtc::MediaConstraintsInterface* constraints);
// Asks the PeerConnection factory to create a Local VideoTrack object.
virtual scoped_refptr<webrtc::VideoTrackInterface>
« 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