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:
1
AUTHORS
1
AUTHORS
@ -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>
|
||||||
|
|||||||
@ -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];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user