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 } }
/// <summary> /// 开始录像 /// </summary> public void StartCapture() { movieCapture.StartCapture(); }
void startRecording() { movieCapture.StartCapture(); recording = true; }