public void BeginRecording() { if (!isRecording) { if (recorder == null) { recorder = gameObject.AddComponent <RecorderController>(); recorder.recorder = this; } recorder.BeginRecording(); isRecording = true; } }
public void BeginRecording() { isRecording = true; if (_recorder.encoderType == EncoderType.MediaEncoder) { #if MEDIA_ENCODER_SUPPORT _vimeoEncoder.BeginRecording(); #endif // MEDIA_ENCODER_SUPPORT } else { #if VIMEO_AVPRO_CAPTURE_SUPPORT _avproEncoder.StartCapture(); #endif // VIMEO_AVPRO_CAPTURE_SUPPORT } }