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

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

Issue 11783059: Ensures that WebRTC works for device selection using a different sample rate than default (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Had to restore usage of UTF16ToUTF8() in MediaStreamImpl::OnCreateNativeSourcesComplete to build on… 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
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 97af73daf467946c20844925766fbae7da3a3a4c..69dfbf88a15f81b0e5de05789c5c39b861403cb4 100644
--- a/content/renderer/media/media_stream_dependency_factory.h
+++ b/content/renderer/media/media_stream_dependency_factory.h
@@ -46,6 +46,7 @@ class IpcNetworkManager;
class IpcPacketSocketFactory;
class VideoCaptureImplManager;
class WebRtcAudioDeviceImpl;
+struct StreamDeviceInfo;
// Object factory for RTC MediaStreams and RTC PeerConnections.
class CONTENT_EXPORT MediaStreamDependencyFactory
@@ -129,6 +130,11 @@ class CONTENT_EXPORT MediaStreamDependencyFactory
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
+ // source.
+ virtual bool InitializeAudioSource(const StreamDeviceInfo& device_info);
+
// Asks the PeerConnection factory to create a Local VideoTrack object.
virtual scoped_refptr<webrtc::VideoTrackInterface>
CreateLocalVideoTrack(const std::string& label,
@@ -141,7 +147,6 @@ class CONTENT_EXPORT MediaStreamDependencyFactory
virtual bool EnsurePeerConnectionFactory();
virtual bool PeerConnectionFactoryCreated();
- virtual void SetAudioDeviceSessionId(int session_id);
private:
// Creates and deletes |pc_factory_|, which in turn is used for

Powered by Google App Engine
This is Rietveld 408576698