OLD | NEW |
1 /* | 1 /* |
2 * libjingle | 2 * libjingle |
3 * Copyright 2015 Google Inc. | 3 * Copyright 2015 Google Inc. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are met: | 6 * modification, are permitted provided that the following conditions are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright notice, | 8 * 1. Redistributions of source code must retain the above copyright notice, |
9 * this list of conditions and the following disclaimer. | 9 * this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright notice, | 10 * 2. Redistributions in binary form must reproduce the above copyright notice, |
(...skipping 11 matching lines...) Expand all Loading... |
22 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, | 22 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, |
23 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR | 23 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR |
24 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF | 24 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF |
25 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 */ | 26 */ |
27 | 27 |
28 // This file contains classes that implement RtpReceiverInterface. | 28 // This file contains classes that implement RtpReceiverInterface. |
29 // An RtpReceiver associates a MediaStreamTrackInterface with an underlying | 29 // An RtpReceiver associates a MediaStreamTrackInterface with an underlying |
30 // transport (provided by AudioProviderInterface/VideoProviderInterface) | 30 // transport (provided by AudioProviderInterface/VideoProviderInterface) |
31 | 31 |
32 #ifndef TALK_APP_WEBRTC_RTPRECEIVER_H_ | 32 #ifndef WEBRTC_API_RTPRECEIVER_H_ |
33 #define TALK_APP_WEBRTC_RTPRECEIVER_H_ | 33 #define WEBRTC_API_RTPRECEIVER_H_ |
34 | 34 |
35 #include <string> | 35 #include <string> |
36 | 36 |
37 #include "talk/app/webrtc/mediastreamprovider.h" | 37 #include "webrtc/api/mediastreamprovider.h" |
38 #include "talk/app/webrtc/rtpreceiverinterface.h" | 38 #include "webrtc/api/rtpreceiverinterface.h" |
39 #include "webrtc/base/basictypes.h" | 39 #include "webrtc/base/basictypes.h" |
40 | 40 |
41 namespace webrtc { | 41 namespace webrtc { |
42 | 42 |
43 class AudioRtpReceiver : public ObserverInterface, | 43 class AudioRtpReceiver : public ObserverInterface, |
44 public AudioSourceInterface::AudioObserver, | 44 public AudioSourceInterface::AudioObserver, |
45 public rtc::RefCountedObject<RtpReceiverInterface> { | 45 public rtc::RefCountedObject<RtpReceiverInterface> { |
46 public: | 46 public: |
47 AudioRtpReceiver(AudioTrackInterface* track, | 47 AudioRtpReceiver(AudioTrackInterface* track, |
48 uint32_t ssrc, | 48 uint32_t ssrc, |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 | 94 |
95 private: | 95 private: |
96 std::string id_; | 96 std::string id_; |
97 rtc::scoped_refptr<VideoTrackInterface> track_; | 97 rtc::scoped_refptr<VideoTrackInterface> track_; |
98 uint32_t ssrc_; | 98 uint32_t ssrc_; |
99 VideoProviderInterface* provider_; | 99 VideoProviderInterface* provider_; |
100 }; | 100 }; |
101 | 101 |
102 } // namespace webrtc | 102 } // namespace webrtc |
103 | 103 |
104 #endif // TALK_APP_WEBRTC_RTPRECEIVER_H_ | 104 #endif // WEBRTC_API_RTPRECEIVER_H_ |
OLD | NEW |