Index: webrtc/sdk/objc/Framework/Headers/WebRTC/RTCPeerConnection.h |
diff --git a/webrtc/sdk/objc/Framework/Headers/WebRTC/RTCPeerConnection.h b/webrtc/sdk/objc/Framework/Headers/WebRTC/RTCPeerConnection.h |
index 0db84ac2f965d1769e4b9aa8981f87392242ef3e..2ba8661d13a6023f67e4ced22fe21f5a14524459 100644 |
--- a/webrtc/sdk/objc/Framework/Headers/WebRTC/RTCPeerConnection.h |
+++ b/webrtc/sdk/objc/Framework/Headers/WebRTC/RTCPeerConnection.h |
@@ -20,6 +20,7 @@ |
@class RTCMediaStream; |
@class RTCMediaStreamTrack; |
@class RTCPeerConnectionFactory; |
+@class RTCRtpReceiver; |
@class RTCRtpSender; |
@class RTCSessionDescription; |
@class RTCStatsReport; |
@@ -125,6 +126,12 @@ RTC_EXPORT |
*/ |
@property(nonatomic, readonly) NSArray<RTCRtpSender *> *senders; |
+/** Gets all RTCRtpReceivers associated with this peer connection. |
+ * Note: reading this property returns different instances of RTCRtpReceiver. |
+ * Use isEqual: instead of == to compare RTCRtpReceiver instances. |
+ */ |
+@property(nonatomic, readonly) NSArray<RTCRtpReceiver *> *receivers; |
+ |
- (instancetype)init NS_UNAVAILABLE; |
/** Sets the PeerConnection's global configuration to |configuration|. |