iOS: add type to peer connection local streams

BUG=

Review-Url: https://codereview.webrtc.org/2249173002
Cr-Commit-Position: refs/heads/master@{#13825}
This commit is contained in:
vopatop.skam
2016-08-18 14:21:20 -07:00
committed by Commit bot
parent c21560b3e1
commit 96b6b8336a
3 changed files with 4 additions and 3 deletions

View File

@ -21,6 +21,7 @@ Luke Weber <luke.weber@gmail.com>
Manish Jethani <manish.jethani@gmail.com> Manish Jethani <manish.jethani@gmail.com>
Martin Storsjo <martin@martin.st> Martin Storsjo <martin@martin.st>
Matthias Liebig <matthias.gcode@gmail.com> Matthias Liebig <matthias.gcode@gmail.com>
Maxim Potapov <vopatop.skam@gmail.com>
Pali Rohar Pali Rohar
Paul Kapustin <pkapustin@gmail.com> Paul Kapustin <pkapustin@gmail.com>
Rafael Lopez Diez <rafalopezdiez@gmail.com> Rafael Lopez Diez <rafalopezdiez@gmail.com>

View File

@ -204,7 +204,7 @@ void PeerConnectionDelegateAdapter::OnIceCandidatesRemoved(
@implementation RTCPeerConnection { @implementation RTCPeerConnection {
NSMutableArray *_localStreams; NSMutableArray<RTCMediaStream *> *_localStreams;
std::unique_ptr<webrtc::PeerConnectionDelegateAdapter> _observer; std::unique_ptr<webrtc::PeerConnectionDelegateAdapter> _observer;
rtc::scoped_refptr<webrtc::PeerConnectionInterface> _peerConnection; rtc::scoped_refptr<webrtc::PeerConnectionInterface> _peerConnection;
BOOL _hasStartedRtcEventLog; BOOL _hasStartedRtcEventLog;
@ -241,7 +241,7 @@ void PeerConnectionDelegateAdapter::OnIceCandidatesRemoved(
return self; return self;
} }
- (NSArray *)localStreams { - (NSArray<RTCMediaStream *> *)localStreams {
return [_localStreams copy]; return [_localStreams copy];
} }

View File

@ -115,7 +115,7 @@ RTC_EXPORT
* streams being added or removed. * streams being added or removed.
*/ */
@property(nonatomic, weak, nullable) id<RTCPeerConnectionDelegate> delegate; @property(nonatomic, weak, nullable) id<RTCPeerConnectionDelegate> delegate;
@property(nonatomic, readonly) NSArray *localStreams; @property(nonatomic, readonly) NSArray<RTCMediaStream *> *localStreams;
@property(nonatomic, readonly, nullable) @property(nonatomic, readonly, nullable)
RTCSessionDescription *localDescription; RTCSessionDescription *localDescription;
@property(nonatomic, readonly, nullable) @property(nonatomic, readonly, nullable)