stopPreview()

Description

Stops the video.

Syntax

func stopPreview()

Parameters

None

Return value

Void

Remarks

If you are not authorized to use the camera, the exception DcsCameraNotAuthorizedException will be thrown.

Example

class ViewController: UIViewController{
    var dcsView:DcsView!
    override func viewDidLoad() {
        super.viewDidLoad()
        dcsView = DcsView(frame: CGRect(x:0,y:0,width:self.view.frame.size.width,height:self.view.frame.size.height))
        view.addSubview(dcsView)
        dcsView.currentView = DVE_VIDEOVIEW
        dcsView.videoView.stopPreview()
    }
}
Is this page helpful?