Esempio n. 1
0
        private void Recorder_OnStatusChanged(object sender, RecordingStatusEventArgs e)
        {
            switch (e.Status)
            {
            case RecorderStatus.Idle:
                this._status = ScreenRecordStatus.Idle;
                break;

            case RecorderStatus.Recording:
                _isRecording = true;
                this._status = ScreenRecordStatus.Recording;
                break;

            case RecorderStatus.Paused:
                this._status = ScreenRecordStatus.Paused;
                break;

            case RecorderStatus.Finishing:
                this._status = ScreenRecordStatus.Finishing;
                break;

            default:
                break;
            }
        }
Esempio n. 2
0
 private void Recorder_OnRecordingFailed(object sender, RecordingFailedEventArgs e)
 {
     this._error  = e.Error;
     this._status = ScreenRecordStatus.Fail;
     _isRecording = false;
 }