mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-11 12:37:46 +08:00
@@ -105,8 +105,8 @@ class _LiveRoomPageState extends State<LiveRoomPage>
|
||||
maxWidth = size.width;
|
||||
maxHeight = size.height;
|
||||
isWindowMode = MaxScreenSize.isWindowMode(
|
||||
width: maxWidth,
|
||||
height: maxHeight,
|
||||
width: maxWidth * plPlayerController.uiScale,
|
||||
height: maxHeight * plPlayerController.uiScale,
|
||||
);
|
||||
isPortrait = size.isPortrait;
|
||||
plPlayerController.screenRatio = maxHeight / maxWidth;
|
||||
|
||||
@@ -126,6 +126,7 @@ class VideoDetailController extends GetxController
|
||||
..brightness.value = -1;
|
||||
bool get setSystemBrightness => plPlayerController.setSystemBrightness;
|
||||
bool get removeSafeArea => plPlayerController.removeSafeArea;
|
||||
double get uiScale => plPlayerController.uiScale;
|
||||
|
||||
late VideoItem firstVideo;
|
||||
String? videoUrl;
|
||||
|
||||
@@ -460,8 +460,8 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
|
||||
maxWidth = size.width;
|
||||
maxHeight = size.height;
|
||||
isWindowMode = MaxScreenSize.isWindowMode(
|
||||
width: maxWidth,
|
||||
height: maxHeight,
|
||||
width: maxWidth * videoDetailController.uiScale,
|
||||
height: maxHeight * videoDetailController.uiScale,
|
||||
);
|
||||
videoDetailController.plPlayerController.screenRatio = maxHeight / maxWidth;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user