| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 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 | 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 | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| 11 #ifndef WEBRTC_MODULES_VIDEO_CAPTURE_IOS_VIDEO_CAPTURE_IOS_OBJC_H_ | 11 #ifndef WEBRTC_MODULES_VIDEO_CAPTURE_OBJC_RTC_VIDEO_CAPTURE_OBJC_H_ |
| 12 #define WEBRTC_MODULES_VIDEO_CAPTURE_IOS_VIDEO_CAPTURE_IOS_OBJC_H_ | 12 #define WEBRTC_MODULES_VIDEO_CAPTURE_OBJC_RTC_VIDEO_CAPTURE_OBJC_H_ |
| 13 | 13 |
| 14 #import <Foundation/Foundation.h> | 14 #import <Foundation/Foundation.h> |
| 15 #ifdef WEBRTC_IOS |
| 15 #import <UIKit/UIKit.h> | 16 #import <UIKit/UIKit.h> |
| 17 #endif |
| 16 | 18 |
| 17 #include "webrtc/modules/video_capture/ios/video_capture_ios.h" | 19 #include "webrtc/modules/video_capture/objc/video_capture.h" |
| 18 | 20 |
| 19 // The following class listens to a notification with name: | 21 // The following class listens to a notification with name: |
| 20 // 'StatusBarOrientationDidChange'. | 22 // 'StatusBarOrientationDidChange'. |
| 21 // This notification must be posted in order for the capturer to reflect the | 23 // This notification must be posted in order for the capturer to reflect the |
| 22 // orientation change in video w.r.t. the application orientation. | 24 // orientation change in video w.r.t. the application orientation. |
| 23 @interface RTCVideoCaptureIosObjC | 25 @interface RTCVideoCaptureIosObjC |
| 24 : NSObject<AVCaptureVideoDataOutputSampleBufferDelegate> | 26 : NSObject<AVCaptureVideoDataOutputSampleBufferDelegate> |
| 25 | 27 |
| 26 @property webrtc::VideoRotation frameRotation; | 28 @property webrtc::VideoRotation frameRotation; |
| 27 | 29 |
| 28 // custom initializer. Instance of VideoCaptureIos is needed | 30 // custom initializer. Instance of VideoCaptureIos is needed |
| 29 // for callback purposes. | 31 // for callback purposes. |
| 30 // default init methods have been overridden to return nil. | 32 // default init methods have been overridden to return nil. |
| 31 - (id)initWithOwner:(webrtc::videocapturemodule::VideoCaptureIos*)owner | 33 - (id)initWithOwner:(webrtc::videocapturemodule::VideoCaptureIos*)owner |
| 32 captureId:(int)captureId; | 34 captureId:(int)captureId; |
| 33 - (BOOL)setCaptureDeviceByUniqueId:(NSString*)uniqueId; | 35 - (BOOL)setCaptureDeviceByUniqueId:(NSString*)uniqueId; |
| 34 - (BOOL)startCaptureWithCapability: | 36 - (BOOL)startCaptureWithCapability: |
| 35 (const webrtc::VideoCaptureCapability&)capability; | 37 (const webrtc::VideoCaptureCapability&)capability; |
| 36 - (BOOL)stopCapture; | 38 - (BOOL)stopCapture; |
| 37 | 39 |
| 38 @end | 40 @end |
| 39 #endif // WEBRTC_MODULES_VIDEO_CAPTURE_IOS_VIDEO_CAPTURE_IOS_OBJC_H_ | 41 #endif // WEBRTC_MODULES_VIDEO_CAPTURE_OBJC_RTC_VIDEO_CAPTURE_OBJC_H_ |
| OLD | NEW |