OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright 2011 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2011 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 20 matching lines...) Expand all Loading... | |
31 | 31 |
32 typedef rtc::RefCountedObject<DtlsIdentityStoreImpl> | 32 typedef rtc::RefCountedObject<DtlsIdentityStoreImpl> |
33 RefCountedDtlsIdentityStore; | 33 RefCountedDtlsIdentityStore; |
34 | 34 |
35 class PeerConnectionFactory : public PeerConnectionFactoryInterface { | 35 class PeerConnectionFactory : public PeerConnectionFactoryInterface { |
36 public: | 36 public: |
37 virtual void SetOptions(const Options& options) { | 37 virtual void SetOptions(const Options& options) { |
38 options_ = options; | 38 options_ = options; |
39 } | 39 } |
40 | 40 |
41 // Deprecated, use version without constraints. | |
41 rtc::scoped_refptr<PeerConnectionInterface> CreatePeerConnection( | 42 rtc::scoped_refptr<PeerConnectionInterface> CreatePeerConnection( |
42 const PeerConnectionInterface::RTCConfiguration& configuration, | 43 const PeerConnectionInterface::RTCConfiguration& configuration, |
43 const MediaConstraintsInterface* constraints, | 44 const MediaConstraintsInterface* constraints, |
44 rtc::scoped_ptr<cricket::PortAllocator> allocator, | 45 rtc::scoped_ptr<cricket::PortAllocator> allocator, |
45 rtc::scoped_ptr<DtlsIdentityStoreInterface> dtls_identity_store, | 46 rtc::scoped_ptr<DtlsIdentityStoreInterface> dtls_identity_store, |
46 PeerConnectionObserver* observer) override; | 47 PeerConnectionObserver* observer) override; |
47 | 48 |
49 virtual rtc::scoped_refptr<PeerConnectionInterface> CreatePeerConnection( | |
50 const PeerConnectionInterface::RTCConfiguration& configuration, | |
51 rtc::scoped_ptr<cricket::PortAllocator> allocator, | |
52 rtc::scoped_ptr<DtlsIdentityStoreInterface> dtls_identity_store, | |
53 PeerConnectionObserver* observer) override; | |
54 | |
48 bool Initialize(); | 55 bool Initialize(); |
49 | 56 |
50 rtc::scoped_refptr<MediaStreamInterface> | 57 rtc::scoped_refptr<MediaStreamInterface> |
51 CreateLocalMediaStream(const std::string& label) override; | 58 CreateLocalMediaStream(const std::string& label) override; |
52 | 59 |
60 // Deprecated, use version without constraints. | |
53 rtc::scoped_refptr<AudioSourceInterface> CreateAudioSource( | 61 rtc::scoped_refptr<AudioSourceInterface> CreateAudioSource( |
54 const MediaConstraintsInterface* constraints) override; | 62 const MediaConstraintsInterface* constraints) override; |
63 virtual rtc::scoped_refptr<AudioSourceInterface> CreateAudioSource( | |
64 const cricket::AudioOptions& options) override; | |
55 | 65 |
66 // Deprecated, use version without constraints. | |
perkj_webrtc
2016/03/01 08:41:26
So you suggest Android and IOS and none chrome des
hta-webrtc
2016/03/02 09:33:40
Added a comment (removed the "D" word) and referen
| |
56 rtc::scoped_refptr<VideoSourceInterface> CreateVideoSource( | 67 rtc::scoped_refptr<VideoSourceInterface> CreateVideoSource( |
57 cricket::VideoCapturer* capturer, | 68 cricket::VideoCapturer* capturer, |
58 const MediaConstraintsInterface* constraints) override; | 69 const MediaConstraintsInterface* constraints) override; |
70 virtual rtc::scoped_refptr<VideoSourceInterface> CreateVideoSource( | |
71 cricket::VideoCapturer* capturer) override; | |
59 | 72 |
60 rtc::scoped_refptr<VideoTrackInterface> | 73 rtc::scoped_refptr<VideoTrackInterface> |
61 CreateVideoTrack(const std::string& id, | 74 CreateVideoTrack(const std::string& id, |
62 VideoSourceInterface* video_source) override; | 75 VideoSourceInterface* video_source) override; |
63 | 76 |
64 rtc::scoped_refptr<AudioTrackInterface> | 77 rtc::scoped_refptr<AudioTrackInterface> |
65 CreateAudioTrack(const std::string& id, | 78 CreateAudioTrack(const std::string& id, |
66 AudioSourceInterface* audio_source) override; | 79 AudioSourceInterface* audio_source) override; |
67 | 80 |
68 bool StartAecDump(rtc::PlatformFile file, int64_t max_size_bytes) override; | 81 bool StartAecDump(rtc::PlatformFile file, int64_t max_size_bytes) override; |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
107 video_decoder_factory_; | 120 video_decoder_factory_; |
108 rtc::scoped_ptr<rtc::BasicNetworkManager> default_network_manager_; | 121 rtc::scoped_ptr<rtc::BasicNetworkManager> default_network_manager_; |
109 rtc::scoped_ptr<rtc::BasicPacketSocketFactory> default_socket_factory_; | 122 rtc::scoped_ptr<rtc::BasicPacketSocketFactory> default_socket_factory_; |
110 | 123 |
111 rtc::scoped_refptr<RefCountedDtlsIdentityStore> dtls_identity_store_; | 124 rtc::scoped_refptr<RefCountedDtlsIdentityStore> dtls_identity_store_; |
112 }; | 125 }; |
113 | 126 |
114 } // namespace webrtc | 127 } // namespace webrtc |
115 | 128 |
116 #endif // WEBRTC_API_PEERCONNECTIONFACTORY_H_ | 129 #endif // WEBRTC_API_PEERCONNECTIONFACTORY_H_ |
OLD | NEW |