We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f1b7bb commit 238459dCopy full SHA for 238459d
1 file changed
lib/player/adapters/media_kit_adapter.dart
@@ -343,10 +343,15 @@ class MediaKitAdapter implements UnifiedPlayer {
343
// video widget
344
// =========================
345
346
- @override
+ @override
347
Widget getVideoWidget() {
348
return RepaintBoundary(
349
- child: Video(controller: _controller, controls: NoVideoControls),
+ child: Video(
350
+ controller: _controller,
351
+ controls: NoVideoControls,
352
+ pauseUponEnteringBackgroundMode: !settings.enableBackgroundPlay.value,
353
+ resumeUponEnteringForegroundMode: !settings.enableBackgroundPlay.value,
354
+ ),
355
);
356
}
357
0 commit comments