示例#1
0
        public void EndRecording()
        {
            if (encoder != null)
            {
                encoder.Dispose();
                encoder = null;
            }

            if (videoInput != null)
            {
                videoInput.EndRecording();

                if (recorder.recordAudio)
                {
                    audioInput.EndRecording();
                }
            }

            Destroy(videoInput);

            Time.captureFramerate = 0;

            currentFrame = 0;
            isRecording  = false;
        }
示例#2
0
        public void EndRecording()
        {
            if (encoder != null)
            {
                encoder.Dispose();
                encoder = null;
            }

            if (videoInput != null)
            {
                videoInput.EndRecording();
                Destroy(videoInput);
            }

#if UNITY_2018_1_OR_NEWER
            if (audioInput != null)
            {
                if (recorder.recordAudio)
                {
                    audioInput.EndRecording();
                }
                Destroy(audioInput);
            }
#endif

            Time.captureFramerate = 0;

            currentFrame = 0;
            isRecording  = false;
        }