feat: 拆分后台播放与AudioService在后台行为的设置

This commit is contained in:
orz12
2024-04-22 20:16:28 +08:00
parent 493d2a32c2
commit 9255f3cb69
5 changed files with 20 additions and 13 deletions

View File

@@ -496,10 +496,10 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
children: <Widget>[
Obx(
() => Video(
key: ValueKey('${_.videoFit.value}${_.backgroundPlay.value}'),
key: ValueKey('${_.videoFit.value}${_.continuePlayInBackground.value}'),
controller: videoController,
controls: NoVideoControls,
pauseUponEnteringBackgroundMode: !_.backgroundPlay.value,
pauseUponEnteringBackgroundMode: !_.continuePlayInBackground.value,
resumeUponEnteringForegroundMode: true,
subtitleViewConfiguration: const SubtitleViewConfiguration(
style: subTitleStyle,