fix(player): capture media screenshots

close #1077
This commit is contained in:
edde746
2026-05-19 14:17:42 +02:00
parent 1978d710da
commit 95ff95d397
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -378,7 +378,7 @@ class KeyboardShortcutsService extends ChangeNotifier {
onSkipMarker?.call();
break;
case 'screenshot':
unawaited(player.command(['screenshot', 'window']).then((_) => onScreenshot?.call()));
unawaited(player.command(['screenshot', 'subtitles']).then((_) => onScreenshot?.call()));
break;
}
}
@@ -40,7 +40,7 @@ void main() {
expect(result, KeyEventResult.handled);
expect(player.commands, [
['screenshot', 'window'],
['screenshot', 'subtitles'],
]);
expect(feedbackCount, 1);
});