OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2015 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 |
11 // This file contains classes that implement RtpReceiverInterface. | 11 // This file contains classes that implement RtpReceiverInterface. |
12 // An RtpReceiver associates a MediaStreamTrackInterface with an underlying | 12 // An RtpReceiver associates a MediaStreamTrackInterface with an underlying |
13 // transport (provided by cricket::VoiceChannel/cricket::VideoChannel) | 13 // transport (provided by cricket::VoiceChannel/cricket::VideoChannel) |
14 | 14 |
15 #ifndef WEBRTC_PC_RTPRECEIVER_H_ | 15 #ifndef WEBRTC_PC_RTPRECEIVER_H_ |
16 #define WEBRTC_PC_RTPRECEIVER_H_ | 16 #define WEBRTC_PC_RTPRECEIVER_H_ |
17 | 17 |
18 #include <stdint.h> | 18 #include <stdint.h> |
19 | 19 |
20 #include <string> | 20 #include <string> |
21 | 21 |
22 #include "webrtc/api/mediastreaminterface.h" | 22 #include "webrtc/api/mediastreaminterface.h" |
23 #include "webrtc/api/rtpreceiverinterface.h" | 23 #include "webrtc/api/rtpreceiverinterface.h" |
| 24 #include "webrtc/base/basictypes.h" |
| 25 #include "webrtc/base/sigslot.h" |
24 #include "webrtc/media/base/videobroadcaster.h" | 26 #include "webrtc/media/base/videobroadcaster.h" |
25 #include "webrtc/pc/channel.h" | 27 #include "webrtc/pc/channel.h" |
26 #include "webrtc/pc/remoteaudiosource.h" | 28 #include "webrtc/pc/remoteaudiosource.h" |
27 #include "webrtc/pc/videotracksource.h" | 29 #include "webrtc/pc/videotracksource.h" |
28 #include "webrtc/rtc_base/basictypes.h" | |
29 #include "webrtc/rtc_base/sigslot.h" | |
30 | 30 |
31 namespace webrtc { | 31 namespace webrtc { |
32 | 32 |
33 // Internal class used by PeerConnection. | 33 // Internal class used by PeerConnection. |
34 class RtpReceiverInternal : public RtpReceiverInterface { | 34 class RtpReceiverInternal : public RtpReceiverInterface { |
35 public: | 35 public: |
36 virtual void Stop() = 0; | 36 virtual void Stop() = 0; |
37 // This SSRC is used as an identifier for the receiver between the API layer | 37 // This SSRC is used as an identifier for the receiver between the API layer |
38 // and the WebRtcVideoEngine, WebRtcVoiceEngine layer. | 38 // and the WebRtcVideoEngine, WebRtcVoiceEngine layer. |
39 virtual uint32_t ssrc() const = 0; | 39 virtual uint32_t ssrc() const = 0; |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 rtc::scoped_refptr<VideoTrackSource> source_; | 160 rtc::scoped_refptr<VideoTrackSource> source_; |
161 rtc::scoped_refptr<VideoTrackInterface> track_; | 161 rtc::scoped_refptr<VideoTrackInterface> track_; |
162 bool stopped_ = false; | 162 bool stopped_ = false; |
163 RtpReceiverObserverInterface* observer_ = nullptr; | 163 RtpReceiverObserverInterface* observer_ = nullptr; |
164 bool received_first_packet_ = false; | 164 bool received_first_packet_ = false; |
165 }; | 165 }; |
166 | 166 |
167 } // namespace webrtc | 167 } // namespace webrtc |
168 | 168 |
169 #endif // WEBRTC_PC_RTPRECEIVER_H_ | 169 #endif // WEBRTC_PC_RTPRECEIVER_H_ |
OLD | NEW |