 Chromium Code Reviews
 Chromium Code Reviews Issue 2745193002:
  iOS: Add new RTCVideoSource interface  (Closed)
    
  
    Issue 2745193002:
  iOS: Add new RTCVideoSource interface  (Closed) 
  | OLD | NEW | 
|---|---|
| (Empty) | |
| 1 /* | |
| 2 * Copyright 2017 The WebRTC project authors. All Rights Reserved. | |
| 3 * | |
| 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 | |
| 6 * tree. An additional intellectual property rights grant can be found | |
| 7 * in the file PATENTS. All contributing project authors may | |
| 8 * be found in the AUTHORS file in the root of the source tree. | |
| 9 */ | |
| 10 | |
| 11 #import <WebRTC/RTCVideoFrame.h> | |
| 12 | |
| 13 NS_ASSUME_NONNULL_BEGIN | |
| 14 | |
| 15 RTC_EXPORT | |
| 16 | |
| 17 @protocol RTCVideoCapturerDelegate; | |
| 18 | |
| 19 @interface RTCVideoCapturer : NSObject | |
| 20 - (instancetype)initWithDelegate:(__weak id<RTCVideoCapturerDelegate>)delegate; | |
| 
daniela-webrtc
2017/03/20 14:23:10
We don't need to enforce invokers of the method to
 
magjed_webrtc
2017/03/27 12:35:11
Done.
 | |
| 21 @property(nonatomic, readonly) id<RTCVideoCapturerDelegate> delegate; | |
| 
daniela-webrtc
2017/03/20 14:23:10
Do we need to expose the delegate as property here
 
daniela-webrtc
2017/03/20 15:18:30
Ah just saw that we need it for subclassing. 
In t
 
magjed_webrtc
2017/03/27 12:35:11
Done.
 | |
| 22 @end | |
| 23 | |
| 24 @protocol RTCVideoCapturerDelegate | |
| 
daniela-webrtc
2017/03/20 14:23:10
Nit: It's common to declare the protocol on top of
 
magjed_webrtc
2017/03/27 12:35:11
Done.
 | |
| 25 - (void)capturer:(RTCVideoCapturer*)capturer | |
| 
daniela-webrtc
2017/03/20 14:23:10
Nit: RTCVideoCapturer* -> RTCVideoCapturer *
 
magjed_webrtc
2017/03/27 12:35:11
Done.
 | |
| 26 didCaptureVideoFrame:(RTCVideoFrame*)frame; | |
| 
daniela-webrtc
2017/03/20 14:23:10
Same spacing comment
 
magjed_webrtc
2017/03/27 12:35:11
Done.
 | |
| 27 @end | |
| 28 | |
| 29 NS_ASSUME_NONNULL_END | |
| OLD | NEW |