diff --git a/lib/pages/video/controller.dart b/lib/pages/video/controller.dart index 4a72fd5ee..f84499bd5 100644 --- a/lib/pages/video/controller.dart +++ b/lib/pages/video/controller.dart @@ -1116,7 +1116,7 @@ class VideoDetailController extends GetxController bool isQuerying = false; final Rx?> languages = Rx?>(null); - final Rx currLang = Rx(null); + final Rx currLang = Rx(null); void setLanguage(String language) { if (!isLoginVideo) { SmartDialog.showToast('账号未登录'); diff --git a/lib/pages/video/widgets/header_control.dart b/lib/pages/video/widgets/header_control.dart index cd275de41..ef31075f6 100644 --- a/lib/pages/video/widgets/header_control.dart +++ b/lib/pages/video/widgets/header_control.dart @@ -1937,7 +1937,8 @@ class HeaderControlState extends TripleState { }, ), ), - if (!isFullScreen || !isPortrait) + if (!plPlayerController.isDesktopPip && + (!isFullScreen || !isPortrait)) SizedBox( width: 42, height: 34, diff --git a/lib/plugin/pl_player/controller.dart b/lib/plugin/pl_player/controller.dart index cf4b98b80..ff18ab915 100644 --- a/lib/plugin/pl_player/controller.dart +++ b/lib/plugin/pl_player/controller.dart @@ -279,8 +279,9 @@ class PlPlayerController { windowManager.setTitleBarStyle(TitleBarStyle.hidden); late final Size size; - final width = this.width ?? 16; - final height = this.height ?? 9; + final state = videoController!.player.state; + final width = state.width ?? this.width ?? 16; + final height = state.height ?? this.height ?? 9; if (height > width) { size = Size(400.0, 400.0 * height / width); } else { diff --git a/lib/plugin/pl_player/widgets/bottom_control.dart b/lib/plugin/pl_player/widgets/bottom_control.dart index ce0ffc89f..0d0346e1c 100644 --- a/lib/plugin/pl_player/widgets/bottom_control.dart +++ b/lib/plugin/pl_player/widgets/bottom_control.dart @@ -157,8 +157,7 @@ class BottomControl extends StatelessWidget { maxWidth - 40, ), ], - if (controller.showDmChart && - videoDetailController.showDmTreandChart.value) + if (videoDetailController.showDmTreandChart.value) if (videoDetailController.dmTrend.value?.dataOrNull case final list?) buildDmChart(theme, list, videoDetailController, 4.5),