From 9ae0e9284b8d0bdc0ff84a52e31b56da64aabc07 Mon Sep 17 00:00:00 2001 From: orz12 Date: Tue, 2 Jan 2024 08:19:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20=E4=BB=85=E5=85=A8?= =?UTF-8?q?=E5=B1=8F=E6=97=B6=E9=9A=90=E8=97=8F=E4=B8=8B=E6=96=B9=E8=BF=9B?= =?UTF-8?q?=E5=BA=A6=E6=9D=A1=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/plugin/pl_player/models/bottom_progress_behavior.dart | 5 +++-- lib/plugin/pl_player/view.dart | 4 ++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/plugin/pl_player/models/bottom_progress_behavior.dart b/lib/plugin/pl_player/models/bottom_progress_behavior.dart index c632669c..c7f1453d 100644 --- a/lib/plugin/pl_player/models/bottom_progress_behavior.dart +++ b/lib/plugin/pl_player/models/bottom_progress_behavior.dart @@ -3,14 +3,15 @@ enum BtmProgresBehavior { alwaysShow, alwaysHide, onlyShowFullScreen, + onlyHideFullScreen, } extension BtmProgresBehaviorDesc on BtmProgresBehavior { - String get description => ['始终展示', '始终隐藏', '仅全屏时展示'][index]; + String get description => ['始终展示', '始终隐藏', '仅全屏时展示', '仅全屏时隐藏'][index]; } extension BtmProgresBehaviorCode on BtmProgresBehavior { - static final List _codeList = [0, 1, 2]; + static final List _codeList = [0, 1, 2, 3]; int get code => _codeList[index]; static BtmProgresBehavior? fromCode(int code) { diff --git a/lib/plugin/pl_player/view.dart b/lib/plugin/pl_player/view.dart index 89b85607..781fa614 100644 --- a/lib/plugin/pl_player/view.dart +++ b/lib/plugin/pl_player/view.dart @@ -610,6 +610,10 @@ class _PLVideoPlayerState extends State BtmProgresBehavior.onlyShowFullScreen.code && !_.isFullScreen.value) { return Container(); + } else if (defaultBtmProgressBehavior == + BtmProgresBehavior.onlyHideFullScreen.code && + _.isFullScreen.value) { + return Container(); } if (_.videoType.value == 'live') {