We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 40e7227 commit 58e6a24Copy full SHA for 58e6a24
1 file changed
lib/player/adapters/media_kit_adapter.dart
@@ -347,7 +347,12 @@ class MediaKitAdapter implements UnifiedPlayer {
347
@override
348
Widget getVideoWidget() {
349
return RepaintBoundary(
350
- child: Video(controller: _controller, controls: NoVideoControls),
+ child: Video(
351
+ controller: _controller,
352
+ controls: NoVideoControls,
353
+ pauseUponEnteringBackgroundMode: !settings.enableBackgroundPlay.value,
354
+ resumeUponEnteringForegroundMode: !settings.enableBackgroundPlay.value,
355
+ ),
356
);
357
}
358
0 commit comments