基于自定义规则的番剧采集APP,支持流媒体在线观看,支持弹幕,支持实时超分辨率。
fix danmaku
ErBW_s6ec5dbc901bc
diff --git a/lib/pages/player/player_item.dart b/lib/pages/player/player_item.dartindex 54f1ed54..ec3856bc 100644--- a/lib/pages/player/player_item.dart+++ b/lib/pages/player/player_item.dart@@ -510,6 +510,8 @@ class _PlayerItemState extends State<PlayerItem>vsync: this,);webDavEnable = setting.get(SettingBoxKey.webDavEnable, defaultValue: false);+ playerController.danmakuOn =+ setting.get(SettingBoxKey.danmakuEnabledByDefault, defaultValue: false);_border = setting.get(SettingBoxKey.danmakuBorder, defaultValue: true);_opacity = setting.get(SettingBoxKey.danmakuOpacity, defaultValue: 1.0);_duration = 8;diff --git a/lib/pages/player/player_item_panel.dart b/lib/pages/player/player_item_panel.dartindex 5002f865..91206251 100644--- a/lib/pages/player/player_item_panel.dart+++ b/lib/pages/player/player_item_panel.dart@@ -94,18 +94,20 @@ class _PlayerItemPanelState extends State<PlayerItemPanel> {constraints: Utils.isDesktop()? const BoxConstraints(maxWidth: 500, maxHeight: 33): const BoxConstraints(maxHeight: 33),- padding: EdgeInsets.symmetric(horizontal: 8),+ padding: const EdgeInsets.symmetric(horizontal: 8),child: TextField(- style: TextStyle(fontSize: Utils.isDesktop() ? 15 : 13),+ style: TextStyle(+ fontSize: Utils.isDesktop() ? 15 : 13, color: Colors.white),controller: textController,textAlignVertical: TextAlignVertical.center,decoration: InputDecoration(enabled: playerController.danmakuOn,filled: true,- fillColor: Colors.white70,+ fillColor: Colors.white38,floatingLabelBehavior: FloatingLabelBehavior.never,hintText: playerController.danmakuOn ? '发个友善的弹幕见证当下' : '已关闭弹幕',- hintStyle: TextStyle(fontSize: Utils.isDesktop() ? 15 : 13),+ hintStyle: TextStyle(+ fontSize: Utils.isDesktop() ? 15 : 13, color: Colors.white60),alignLabelWithHint: true,contentPadding: EdgeInsets.symmetric(vertical: 8, horizontal: Utils.isDesktop() ? 8 : 12),@@ -122,7 +124,7 @@ class _PlayerItemPanelState extends State<PlayerItemPanel> {style: TextButton.styleFrom(foregroundColor: playerController.danmakuOn? Theme.of(context).colorScheme.onPrimaryContainer- : Colors.white,+ : Colors.white60,backgroundColor: playerController.danmakuOn? Theme.of(context).colorScheme.primaryContainer: Theme.of(context).disabledColor,diff --git a/lib/pages/video/video_page.dart b/lib/pages/video/video_page.dartindex e22b6c01..07ec7416 100644--- a/lib/pages/video/video_page.dart+++ b/lib/pages/video/video_page.dart@@ -849,8 +849,11 @@ class _VideoPageState extends State<VideoPage>height: 31,child: GestureDetector(onTap: () {- if (playerController.danmakuOn) {+ if (playerController.danmakuOn &&+ !videoPageController.loading) {showMobileDanmakuInput();+ } else if (videoPageController.loading) {+ KazumiDialog.showToast(message: '请等待视频加载完成');} else {KazumiDialog.showToast(message: '请先打开弹幕');}