Merge pull request #5282 from 21pages/record

enable keyframe interval when recording
This commit is contained in:
RustDesk
2023-08-08 08:19:06 +08:00
committed by GitHub
15 changed files with 105 additions and 45 deletions

View File

@@ -1532,12 +1532,13 @@ class RecordingModel with ChangeNotifier {
sessionId: sessionId, start: true, width: width, height: height);
}
toggle() {
toggle() async {
if (isIOS) return;
final sessionId = parent.target?.sessionId;
if (sessionId == null) return;
_start = !_start;
notifyListeners();
await bind.sessionRecordStatus(sessionId: sessionId, status: _start);
if (_start) {
bind.sessionRefresh(sessionId: sessionId);
} else {