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 843 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
854 // Called when the ICE connection receiving status changes. | 854 // Called when the ICE connection receiving status changes. |
855 virtual void OnIceConnectionReceivingChange(bool receiving) {} | 855 virtual void OnIceConnectionReceivingChange(bool receiving) {} |
856 | 856 |
857 // Called when a track is added to streams. | 857 // Called when a track is added to streams. |
858 // TODO(zhihuang) Make this a pure virtual method when all its subclasses | 858 // TODO(zhihuang) Make this a pure virtual method when all its subclasses |
859 // implement it. | 859 // implement it. |
860 virtual void OnAddTrack( | 860 virtual void OnAddTrack( |
861 rtc::scoped_refptr<RtpReceiverInterface> receiver, | 861 rtc::scoped_refptr<RtpReceiverInterface> receiver, |
862 const std::vector<rtc::scoped_refptr<MediaStreamInterface>>& streams) {} | 862 const std::vector<rtc::scoped_refptr<MediaStreamInterface>>& streams) {} |
863 | 863 |
| 864 virtual void OnRemoveTrack( |
| 865 rtc::scoped_refptr<RtpReceiverInterface> receiver, |
| 866 const std::vector<rtc::scoped_refptr<MediaStreamInterface>>& streams) {} |
| 867 |
864 protected: | 868 protected: |
865 // Dtor protected as objects shouldn't be deleted via this interface. | 869 // Dtor protected as objects shouldn't be deleted via this interface. |
866 ~PeerConnectionObserver() {} | 870 ~PeerConnectionObserver() {} |
867 }; | 871 }; |
868 | 872 |
869 // PeerConnectionFactoryInterface is the factory interface used for creating | 873 // PeerConnectionFactoryInterface is the factory interface used for creating |
870 // PeerConnection, MediaStream and MediaStreamTrack objects. | 874 // PeerConnection, MediaStream and MediaStreamTrack objects. |
871 // | 875 // |
872 // The simplest method for obtaiing one, CreatePeerConnectionFactory will | 876 // The simplest method for obtaiing one, CreatePeerConnectionFactory will |
873 // create the required libjingle threads, socket and network manager factory | 877 // create the required libjingle threads, socket and network manager factory |
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1205 cricket::WebRtcVideoEncoderFactory* video_encoder_factory, | 1209 cricket::WebRtcVideoEncoderFactory* video_encoder_factory, |
1206 cricket::WebRtcVideoDecoderFactory* video_decoder_factory, | 1210 cricket::WebRtcVideoDecoderFactory* video_decoder_factory, |
1207 rtc::scoped_refptr<AudioMixer> audio_mixer, | 1211 rtc::scoped_refptr<AudioMixer> audio_mixer, |
1208 std::unique_ptr<cricket::MediaEngineInterface> media_engine, | 1212 std::unique_ptr<cricket::MediaEngineInterface> media_engine, |
1209 std::unique_ptr<CallFactoryInterface> call_factory, | 1213 std::unique_ptr<CallFactoryInterface> call_factory, |
1210 std::unique_ptr<RtcEventLogFactoryInterface> event_log_factory); | 1214 std::unique_ptr<RtcEventLogFactoryInterface> event_log_factory); |
1211 | 1215 |
1212 } // namespace webrtc | 1216 } // namespace webrtc |
1213 | 1217 |
1214 #endif // WEBRTC_API_PEERCONNECTIONINTERFACE_H_ | 1218 #endif // WEBRTC_API_PEERCONNECTIONINTERFACE_H_ |
OLD | NEW |