mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 11:08:03 +08:00
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user