Exemple #1
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
            }
        }