preview()

Description

Opens the video.

Syntax

- (void) preview

Parameters

None

Return value

void

Remarks

If the capture mode is DME_DOCUMENT, the document border will be detected in real time and displayed on the video stream.

If the mobile camera is not authorized for use, the exception DcsCameraNotAuthorizedException will be thrown.

Example


@interface ViewController ()<DcsUIVideoViewDelegate>{
    DcsView *dcsView;
}
@end
 
@implementation ViewController
 
- (void)viewDidLoad {
    [super viewDidLoad];
     
    dcsView = [[DcsView alloc]initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height)];
 
    [self.view addSubview:dcsView];

    [self.dcsView.videoView preview];

}

@end
Is this page helpful?

Leave a Reply

Your email address will not be published.