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 interfaces for RtpReceivers | 11 // This file contains interfaces for RtpReceivers |
12 // http://w3c.github.io/webrtc-pc/#rtcrtpreceiver-interface | 12 // http://w3c.github.io/webrtc-pc/#rtcrtpreceiver-interface |
13 | 13 |
14 #ifndef WEBRTC_API_RTPRECEIVERINTERFACE_H_ | 14 #ifndef WEBRTC_API_RTPRECEIVERINTERFACE_H_ |
15 #define WEBRTC_API_RTPRECEIVERINTERFACE_H_ | 15 #define WEBRTC_API_RTPRECEIVERINTERFACE_H_ |
16 | 16 |
17 #include <string> | 17 #include <string> |
18 | 18 |
| 19 #include "webrtc/api/mediatypes.h" |
19 #include "webrtc/api/mediastreaminterface.h" | 20 #include "webrtc/api/mediastreaminterface.h" |
20 #include "webrtc/api/proxy.h" | 21 #include "webrtc/api/proxy.h" |
21 #include "webrtc/api/rtpparameters.h" | 22 #include "webrtc/api/rtpparameters.h" |
22 #include "webrtc/base/refcount.h" | 23 #include "webrtc/base/refcount.h" |
23 #include "webrtc/base/scoped_ref_ptr.h" | 24 #include "webrtc/base/scoped_ref_ptr.h" |
24 #include "webrtc/pc/mediasession.h" | |
25 | 25 |
26 namespace webrtc { | 26 namespace webrtc { |
27 | 27 |
28 class RtpReceiverObserverInterface { | 28 class RtpReceiverObserverInterface { |
29 public: | 29 public: |
30 // Note: Currently if there are multiple RtpReceivers of the same media type, | 30 // Note: Currently if there are multiple RtpReceivers of the same media type, |
31 // they will all call OnFirstPacketReceived at once. | 31 // they will all call OnFirstPacketReceived at once. |
32 // | 32 // |
33 // In the future, it's likely that an RtpReceiver will only call | 33 // In the future, it's likely that an RtpReceiver will only call |
34 // OnFirstPacketReceived when a packet is received specifically for its | 34 // OnFirstPacketReceived when a packet is received specifically for its |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 PROXY_CONSTMETHOD0(cricket::MediaType, media_type) | 71 PROXY_CONSTMETHOD0(cricket::MediaType, media_type) |
72 PROXY_CONSTMETHOD0(std::string, id) | 72 PROXY_CONSTMETHOD0(std::string, id) |
73 PROXY_CONSTMETHOD0(RtpParameters, GetParameters); | 73 PROXY_CONSTMETHOD0(RtpParameters, GetParameters); |
74 PROXY_METHOD1(bool, SetParameters, const RtpParameters&) | 74 PROXY_METHOD1(bool, SetParameters, const RtpParameters&) |
75 PROXY_METHOD1(void, SetObserver, RtpReceiverObserverInterface*); | 75 PROXY_METHOD1(void, SetObserver, RtpReceiverObserverInterface*); |
76 END_PROXY_MAP() | 76 END_PROXY_MAP() |
77 | 77 |
78 } // namespace webrtc | 78 } // namespace webrtc |
79 | 79 |
80 #endif // WEBRTC_API_RTPRECEIVERINTERFACE_H_ | 80 #endif // WEBRTC_API_RTPRECEIVERINTERFACE_H_ |
OLD | NEW |