-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRSVideoViewController.h
More file actions
54 lines (32 loc) · 1.35 KB
/
Copy pathRSVideoViewController.h
File metadata and controls
54 lines (32 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
//
// RSVideoViewController
//
// Created by Sheldon Thomas on 6/24/12.
// Copyright (c) 2012 Resplendent G.P. All rights reserved.
//
#import <UIKit/UIKit.h>
@class RSVideoViewController;
@protocol RSVideoViewControllerDelegate <NSObject>
-(void)cameraCaptureDidFinish:(RSVideoViewController*)cameraViewController withImage:(UIImage*)image;
-(void)cameraCaptureDidFail:(RSVideoViewController*)cameraViewController andError:(NSError*)error;
@end
@interface RSVideoViewController : UIViewController
{
AVCaptureStillImageOutput* stillOutput;
AVCaptureSession* session;
float _barHeight;
}
-(void)switchCameras;
-(void)captureImageWithCompletionBlock:(void(^)(BOOL completed))completion;
-(void)cameraFocusAtPoint:(CGPoint)point;
-(BOOL)setCaptureFlashMode:(AVCaptureFlashMode)mode;
@property(nonatomic) BOOL isFront;
@property (nonatomic, assign) BOOL enableCameraCapture;
@property(nonatomic, assign)id <RSVideoViewControllerDelegate> delegate;
@property(readonly) AVCaptureVideoPreviewLayer* previewLayer;
@property(nonatomic, readonly) AVCaptureDevice* backCamera;
@property(nonatomic, readonly) AVCaptureDevice* frontCamera;
@property(nonatomic, readonly) AVCaptureDeviceInput* frontCameraInput;
@property(nonatomic, readonly) AVCaptureDeviceInput* backCameraInput;
@property(nonatomic, readonly) AVCaptureConnection* videoConnection;
@end