private void HandleVideoCapture() { if (startOrStopRecording == true && areWeRecording == false) { avProCapture.StartCapture(); startOrStopRecording = false; areWeRecording = true; } else if (startOrStopRecording == true && areWeRecording == true) { avProCapture.StopCapture(); startOrStopRecording = false; areWeRecording = false; } }
public void StartRecording(string _name) { GetCamera(); recorderScript._forceFilename = _name + ".avi"; recorderScript.StartCapture(); }