示例#1
0
        /// <summary>
        /// 配置录制设置
        /// </summary>
        /// <param name="recorderSetting"></param>
        private void ConfigureRecorderSetting(ScreenRecorderSetting recorderSetting)
        {
            ZFTqgv.TFL.TeoNjd_UfvWkegpRbviY(recorderSetting.SaveRecordFilePath);

            #region AudioConfiguration
            if (!recorderSetting.IsAduioEnable)
            {
                SetAudioOutputConfig(false, false);
            }
            else
            {
                switch (recorderSetting.AudioMode)
                {
                case AudioMode.Speaker:
                    SetAudioOutputConfig(true, false);
                    break;

                case AudioMode.Microphone:
                    SetAudioOutputConfig(false, true);
                    break;

                case AudioMode.SpeakerAndMicrophone:
                    SetAudioOutputConfig(true, true);
                    break;
                }
            }
            #endregion AudioConfiguration

            if (recorderSetting.ScreenIndex != -1 || recorderSetting.ScreenCaptureMode == ScreenCaptureMode.Rect)
            {
                ZFTqgv.TFL.TeoNjd_UfvDcqvvtfTfijqo(recorderSetting.CaptureRect.Left, recorderSetting.CaptureRect.Top,
                                                   recorderSetting.CaptureRect.Right, recorderSetting.CaptureRect.Bottom);
            }
            else
            {
                ZFTqgv.TFL.TeoNjd_UfvDcqvvtfTfijqo(0, 0, 0, 0);
            }

            int recordQuality = (int)recorderSetting.RecordQuality;
            ZFTqgv.TFL.TeoNjd_UfvWkegpSvcmkuy(recordQuality);

            // 鼠标效果
            ZFTqgv.TFL.TeoNjd_CefDwsuptFhggdvt(true, true, false, true);

            // 更改鼠标外圈颜色
            //uint highlightColor = 0;
            //uint leftClickColor = 0;
            //uint rightClickColor = 0;
            //uint trackColor = 0;
            //ZFTqgv.TFL.TeoNjd_IfvDwsuptFhggdvtColors(ref highlightColor, ref leftClickColor, ref rightClickColor, ref trackColor);

            //highlightColor = 65535;

            //ZFTqgv.TFL.TeoNjd_UfvDwsuptFhggdvtEpnptt(highlightColor, leftClickColor, rightClickColor, trackColor);
        }
示例#2
0
        /// <summary>
        /// 根据配置开始录制
        /// </summary>
        /// <param name="recorderSetting"></param>
        /// <returns></returns>
        public override ScreenRecorderResult StartRecord(ScreenRecorderSetting recorderSetting)
        {
            bool success = false;

            if (ZFTqgv.TFL.TeoNjd_KtTfeptekoi())
            {
                return(ScreenRecorderResult.IsRecording);
            }

            ConfigureRecorderSetting(recorderSetting);
            _recorderSetting = recorderSetting;

            success = ZFTqgv.TFL.TeoNjd_UucsvSgdqsfjph();

            return(success ? ScreenRecorderResult.Success : ScreenRecorderResult.StartRecordingError);
        }
示例#3
0
 /// <summary>
 /// 根据配置开始录制
 /// </summary>
 /// <param name="recorderSetting"></param>
 /// <returns></returns>
 public abstract ScreenRecorderResult StartRecord(ScreenRecorderSetting recorderSetting);