stopPreview()

Description

Stops the video.

Syntax

- (void) stopPreview

Parameters

None

Return value

void

Remarks

If you are not authorized to use the camera, 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)];
 
    dcsView.videoView.delegate = self; 
    [self.view addSubview:dcsView];

    [self.dcsView.videoView stopPreview];

}

@end