| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |