IEnumerator AttemptToRecord() { yield return(new WaitForSeconds(holdTimeToStartRecording)); recordingAttempt = null; cameraRecorder.StartRecording(appCamera); recordingIndicator.SetActive(true); OnStartedTakingFootage.Invoke(); }
public static void Renew(object s) { if (rec != null) { rec.StopRecording(); } var configuration = new CameraRecorderConfiguration() { VideosFolderPath = Directory.GetCurrentDirectory() + @"\Camera\", VideoFormat = ".mpeg4" }; rec = new CameraRecorder(cam, configuration); rec.StartRecording(); }