public async void StopRecording()
        {
            // Stop recording
            recording = false;
            var path = await recorder.FinishWriting();

            // Playback recording
            Debug.Log($"Saved recording to: {path}");
            Handheld.PlayFullScreenMovie($"file://{path}");
        }
Exemple #2
0
        public async void StopRecording()
        {
            // Stop recording
            webCamTextureInput.Dispose();
            var path = await recorder.FinishWriting();

            // Playback recording
            Debug.Log($"Saved recording to: {path}");
            var prefix = Application.platform == RuntimePlatform.IPhonePlayer ? "file://" : "";
            //Handheld.PlayFullScreenMovie($"{prefix}{path}");
        }
        public async void StopRecording()
        {
            // Mute microphone
            microphoneSource.mute = true;
            // Stop recording
            audioInput?.Dispose();
            cameraInput.Dispose();
            var path = await recorder.FinishWriting();

            // Playback recording
            Debug.Log($"Saved recording to: {path}");
            Handheld.PlayFullScreenMovie($"file://{path}");
        }
Exemple #4
0
    public async void StopTracking()
    {
        //stop commiting frames to the recorder and finish writing
        cameraInput.Dispose();
        var path = await recorder.FinishWriting();

        //file name
        string filename = $"{title}_REC.mov";

        Debug.Log("dest: " + mediaDesitinationPath);

        //safe data in zip / gallery
        FileManagement.CopyFile(sourceFile: path, destFile: $"{mediaDesitinationPath}{filename}");
    }
Exemple #5
0
        public async void StopRecording()
        {
            if (IsRecording)
            {
                // Mute microphone
                //microphoneSource.mute = true;
                // Stop recording
                audioInput?.Dispose();
                cameraInput.Dispose();
                var path = await videoRecorder.FinishWriting();

                // Playback recording
                Debug.Log($"Saved recording to: {path}");
                _path = path;
                var prefix = Application.platform == RuntimePlatform.IPhonePlayer ? "file://" : "";
            }
            IsRecording = false;
        }
 public async void StopRecording()
 {
     // Stop camera input and recorder
     cameraInput.Dispose();
     lastVideoPath = await recorder.FinishWriting();
 }