Пример #1
0
        public void BeginRecording()
        {
            if (!isRecording)
            {
                if (recorder == null)
                {
                    recorder          = gameObject.AddComponent <RecorderController>();
                    recorder.recorder = this;
                }

                recorder.BeginRecording();
                isRecording = true;
            }
        }
Пример #2
0
        public void Init(VimeoRecorder r)
        {
            _recorder = r;

            if (_recorder.encoderType == EncoderType.MediaEncoder)
            {
#if MEDIA_ENCODER_SUPPORT
                _vimeoEncoder = gameObject.AddComponent <RecorderController>();
                _vimeoEncoder.Init(_recorder);
#endif
            }
            else if (_recorder.encoderType == EncoderType.AVProCapture)
            {
#if VIMEO_AVPRO_CAPTURE_SUPPORT
                _avproEncoder = r.avproEncoder;
#endif
            }
        }
        public void Init(VimeoRecorder r)
        {
            _recorder = r;

            if (_recorder.encoderType == EncoderType.MediaEncoder)
            {
#if MEDIA_ENCODER_SUPPORT
                _vimeoEncoder = gameObject.AddComponent <RecorderController>();
                _vimeoEncoder.Init(_recorder);
#else
                Debug.LogError("[Vimeo] Recording is only avaialabe in 2017.2 or higher.");
#endif
            }
            else if (_recorder.encoderType == EncoderType.AVProMovieCapture)
            {
#if VIMEO_AVPRO_CAPTURE_SUPPORT
                _avproEncoder = r.avproEncoder;
#endif
            }
        }