private IEnumerator Record()
        {
            if (_videoCapture == null)
            {
                Debug.LogError("The NRVideoCapture has not been created.");
                yield break;
            }

            var filePath = VideoFilePath;

            _videoCapture.StartRecordingAsync(filePath, result => SetState(State.Record));
            Debug.Log($"Record video to {filePath}");
        }
Beispiel #2
0
 void OnStartedVideoCaptureMode(NRVideoCapture.VideoCaptureResult result)
 {
     m_VideoCapture.StartRecordingAsync(VideoSavePath, OnStartedRecordingVideo);
 }
 void OnStartedVideoCaptureMode(NRVideoCapture.VideoCaptureResult result)
 {
     Debug.Log("Started Video Capture Mode!");
     m_VideoCapture.StartRecordingAsync(SdcardSavePath, OnStartedRecordingVideo);
 }
 /// <summary> Executes the 'started video capture mode' action. </summary>
 /// <param name="result"> The result.</param>
 void OnStartedVideoCaptureMode(NRVideoCapture.VideoCaptureResult result)
 {
     NRDebugger.Info("Started Video Capture Mode!");
     m_VideoCapture.StartRecordingAsync(VideoSavePath, OnStartedRecordingVideo);
 }