| 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 class MediaEngineInterface; | 105 class MediaEngineInterface; |
| 106 class WebRtcVideoDecoderFactory; | 106 class WebRtcVideoDecoderFactory; |
| 107 class WebRtcVideoEncoderFactory; | 107 class WebRtcVideoEncoderFactory; |
| 108 } | 108 } |
| 109 | 109 |
| 110 namespace webrtc { | 110 namespace webrtc { |
| 111 class AudioDeviceModule; | 111 class AudioDeviceModule; |
| 112 class AudioMixer; | 112 class AudioMixer; |
| 113 class CallFactoryInterface; | 113 class CallFactoryInterface; |
| 114 class MediaConstraintsInterface; | 114 class MediaConstraintsInterface; |
| 115 class VideoDecoderFactory; |
| 116 class VideoEncoderFactory; |
| 115 | 117 |
| 116 // MediaStream container interface. | 118 // MediaStream container interface. |
| 117 class StreamCollectionInterface : public rtc::RefCountInterface { | 119 class StreamCollectionInterface : public rtc::RefCountInterface { |
| 118 public: | 120 public: |
| 119 // TODO(ronghuawu): Update the function names to c++ style, e.g. find -> Find. | 121 // TODO(ronghuawu): Update the function names to c++ style, e.g. find -> Find. |
| 120 virtual size_t count() = 0; | 122 virtual size_t count() = 0; |
| 121 virtual MediaStreamInterface* at(size_t index) = 0; | 123 virtual MediaStreamInterface* at(size_t index) = 0; |
| 122 virtual MediaStreamInterface* find(const std::string& label) = 0; | 124 virtual MediaStreamInterface* find(const std::string& label) = 0; |
| 123 virtual MediaStreamTrackInterface* FindAudioTrack( | 125 virtual MediaStreamTrackInterface* FindAudioTrack( |
| 124 const std::string& id) = 0; | 126 const std::string& id) = 0; |
| (...skipping 984 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1109 rtc::Thread* worker_thread, | 1111 rtc::Thread* worker_thread, |
| 1110 rtc::Thread* signaling_thread, | 1112 rtc::Thread* signaling_thread, |
| 1111 AudioDeviceModule* default_adm, | 1113 AudioDeviceModule* default_adm, |
| 1112 rtc::scoped_refptr<AudioEncoderFactory> audio_encoder_factory, | 1114 rtc::scoped_refptr<AudioEncoderFactory> audio_encoder_factory, |
| 1113 rtc::scoped_refptr<AudioDecoderFactory> audio_decoder_factory, | 1115 rtc::scoped_refptr<AudioDecoderFactory> audio_decoder_factory, |
| 1114 cricket::WebRtcVideoEncoderFactory* video_encoder_factory, | 1116 cricket::WebRtcVideoEncoderFactory* video_encoder_factory, |
| 1115 cricket::WebRtcVideoDecoderFactory* video_decoder_factory, | 1117 cricket::WebRtcVideoDecoderFactory* video_decoder_factory, |
| 1116 rtc::scoped_refptr<AudioMixer> audio_mixer, | 1118 rtc::scoped_refptr<AudioMixer> audio_mixer, |
| 1117 rtc::scoped_refptr<AudioProcessing> audio_processing); | 1119 rtc::scoped_refptr<AudioProcessing> audio_processing); |
| 1118 | 1120 |
| 1121 // Create a new instance of PeerConnectionFactoryInterface with optional video |
| 1122 // codec factories. These video factories represents all video codecs, i.e. no |
| 1123 // extra internal video codecs will be added. |
| 1124 rtc::scoped_refptr<PeerConnectionFactoryInterface> CreatePeerConnectionFactory( |
| 1125 rtc::Thread* network_thread, |
| 1126 rtc::Thread* worker_thread, |
| 1127 rtc::Thread* signaling_thread, |
| 1128 rtc::scoped_refptr<AudioDeviceModule> default_adm, |
| 1129 rtc::scoped_refptr<AudioEncoderFactory> audio_encoder_factory, |
| 1130 rtc::scoped_refptr<AudioDecoderFactory> audio_decoder_factory, |
| 1131 std::unique_ptr<VideoEncoderFactory> video_encoder_factory, |
| 1132 std::unique_ptr<VideoDecoderFactory> video_decoder_factory, |
| 1133 rtc::scoped_refptr<AudioMixer> audio_mixer, |
| 1134 rtc::scoped_refptr<AudioProcessing> audio_processing); |
| 1135 |
| 1119 // Create a new instance of PeerConnectionFactoryInterface with external audio | 1136 // Create a new instance of PeerConnectionFactoryInterface with external audio |
| 1120 // mixer. | 1137 // mixer. |
| 1121 // | 1138 // |
| 1122 // If |audio_mixer| is null, an internal audio mixer will be created and used. | 1139 // If |audio_mixer| is null, an internal audio mixer will be created and used. |
| 1123 rtc::scoped_refptr<PeerConnectionFactoryInterface> | 1140 rtc::scoped_refptr<PeerConnectionFactoryInterface> |
| 1124 CreatePeerConnectionFactoryWithAudioMixer( | 1141 CreatePeerConnectionFactoryWithAudioMixer( |
| 1125 rtc::Thread* network_thread, | 1142 rtc::Thread* network_thread, |
| 1126 rtc::Thread* worker_thread, | 1143 rtc::Thread* worker_thread, |
| 1127 rtc::Thread* signaling_thread, | 1144 rtc::Thread* signaling_thread, |
| 1128 AudioDeviceModule* default_adm, | 1145 AudioDeviceModule* default_adm, |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1218 cricket::WebRtcVideoEncoderFactory* video_encoder_factory, | 1235 cricket::WebRtcVideoEncoderFactory* video_encoder_factory, |
| 1219 cricket::WebRtcVideoDecoderFactory* video_decoder_factory, | 1236 cricket::WebRtcVideoDecoderFactory* video_decoder_factory, |
| 1220 rtc::scoped_refptr<AudioMixer> audio_mixer, | 1237 rtc::scoped_refptr<AudioMixer> audio_mixer, |
| 1221 std::unique_ptr<cricket::MediaEngineInterface> media_engine, | 1238 std::unique_ptr<cricket::MediaEngineInterface> media_engine, |
| 1222 std::unique_ptr<CallFactoryInterface> call_factory, | 1239 std::unique_ptr<CallFactoryInterface> call_factory, |
| 1223 std::unique_ptr<RtcEventLogFactoryInterface> event_log_factory); | 1240 std::unique_ptr<RtcEventLogFactoryInterface> event_log_factory); |
| 1224 | 1241 |
| 1225 } // namespace webrtc | 1242 } // namespace webrtc |
| 1226 | 1243 |
| 1227 #endif // API_PEERCONNECTIONINTERFACE_H_ | 1244 #endif // API_PEERCONNECTIONINTERFACE_H_ |
| OLD | NEW |