private void playPreview() { //constructor for playpreview webcamPlay = new WebcamFfmpeg(Webcam.Action.PLAYPREVIEW, UtilAll.GetOSEnum(), preferences.videoDevice, preferences.videoDeviceResolution, preferences.videoDeviceFramerate); Webcam.Result result = webcamPlay.PlayPreviewNoBackground(); }