Index: webrtc/api/objc/RTCPeerConnection.h |
diff --git a/webrtc/api/objc/RTCPeerConnection.h b/webrtc/api/objc/RTCPeerConnection.h |
index e0f9b78e8ebb0ac1b41234e8501595ffe1f201cd..471a8deef02616d1278e53e3a30285bc12aada8b 100644 |
--- a/webrtc/api/objc/RTCPeerConnection.h |
+++ b/webrtc/api/objc/RTCPeerConnection.h |
@@ -18,6 +18,7 @@ |
@class RTCMediaStream; |
@class RTCMediaStreamTrack; |
@class RTCPeerConnectionFactory; |
+@class RTCRtpSender; |
@class RTCSessionDescription; |
@class RTCStatsReport; |
@@ -115,6 +116,12 @@ typedef NS_ENUM(NSInteger, RTCStatsOutputLevel) { |
@property(nonatomic, readonly) RTCIceConnectionState iceConnectionState; |
@property(nonatomic, readonly) RTCIceGatheringState iceGatheringState; |
+/** Gets all RTCRtpSenders associated with this peer connection. |
+ * Note: reading this property returns different instances of RTCRtpSender. |
+ * Use isEqual: instead of == to compare RTCRtpSender instances. |
+ */ |
+@property(nonatomic, readonly) NSArray<RTCRtpSender *> *senders; |
+ |
- (instancetype)init NS_UNAVAILABLE; |
/** Sets the PeerConnection's global configuration to |configuration|. |