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

Side by Side Diff: webrtc/api/peerconnectioninterface.h

Issue 2628523003: Stop using deprecated constraints-based version of CreateAudioSource. (Closed)
Patch Set: Missing bang. Created 3 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright 2012 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 737 matching lines...) Expand 10 before | Expand all | Expand 10 after
748 PeerConnectionObserver* observer) = 0; 748 PeerConnectionObserver* observer) = 0;
749 749
750 virtual rtc::scoped_refptr<MediaStreamInterface> 750 virtual rtc::scoped_refptr<MediaStreamInterface>
751 CreateLocalMediaStream(const std::string& label) = 0; 751 CreateLocalMediaStream(const std::string& label) = 0;
752 752
753 // Creates a AudioSourceInterface. 753 // Creates a AudioSourceInterface.
754 // |constraints| decides audio processing settings but can be NULL. 754 // |constraints| decides audio processing settings but can be NULL.
755 virtual rtc::scoped_refptr<AudioSourceInterface> CreateAudioSource( 755 virtual rtc::scoped_refptr<AudioSourceInterface> CreateAudioSource(
756 const cricket::AudioOptions& options) = 0; 756 const cricket::AudioOptions& options) = 0;
757 // Deprecated - use version above. 757 // Deprecated - use version above.
758 // Can use CopyConstraintsIntoAudioOptions to bridge the gap.
758 virtual rtc::scoped_refptr<AudioSourceInterface> CreateAudioSource( 759 virtual rtc::scoped_refptr<AudioSourceInterface> CreateAudioSource(
759 const MediaConstraintsInterface* constraints) = 0; 760 const MediaConstraintsInterface* constraints) = 0;
760 761
761 // Creates a VideoTrackSourceInterface. The new source take ownership of 762 // Creates a VideoTrackSourceInterface. The new source take ownership of
762 // |capturer|. 763 // |capturer|.
763 virtual rtc::scoped_refptr<VideoTrackSourceInterface> CreateVideoSource( 764 virtual rtc::scoped_refptr<VideoTrackSourceInterface> CreateVideoSource(
764 cricket::VideoCapturer* capturer) = 0; 765 cricket::VideoCapturer* capturer) = 0;
765 // A video source creator that allows selection of resolution and frame rate. 766 // A video source creator that allows selection of resolution and frame rate.
766 // |constraints| decides video resolution and frame rate but can 767 // |constraints| decides video resolution and frame rate but can
767 // be NULL. 768 // be NULL.
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
867 cricket::WebRtcVideoEncoderFactory* encoder_factory, 868 cricket::WebRtcVideoEncoderFactory* encoder_factory,
868 cricket::WebRtcVideoDecoderFactory* decoder_factory) { 869 cricket::WebRtcVideoDecoderFactory* decoder_factory) {
869 return CreatePeerConnectionFactory( 870 return CreatePeerConnectionFactory(
870 worker_and_network_thread, worker_and_network_thread, signaling_thread, 871 worker_and_network_thread, worker_and_network_thread, signaling_thread,
871 default_adm, encoder_factory, decoder_factory); 872 default_adm, encoder_factory, decoder_factory);
872 } 873 }
873 874
874 } // namespace webrtc 875 } // namespace webrtc
875 876
876 #endif // WEBRTC_API_PEERCONNECTIONINTERFACE_H_ 877 #endif // WEBRTC_API_PEERCONNECTIONINTERFACE_H_
OLDNEW
« no previous file with comments | « webrtc/api/mediaconstraintsinterface.cc ('k') | webrtc/sdk/android/src/jni/peerconnection_jni.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698