mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-24 11:06:51 +08:00
opt type
opt ua opt subtitle opt playertype Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -36,7 +36,7 @@ class LiveRoomController extends GetxController {
|
||||
// 静音状态
|
||||
RxBool volumeOff = false.obs;
|
||||
PlPlayerController plPlayerController = PlPlayerController.getInstance(
|
||||
videoType: 'live',
|
||||
isLive: true,
|
||||
);
|
||||
Rx<RoomInfoH5Data?> roomInfoH5 = Rx<RoomInfoH5Data?>(null);
|
||||
|
||||
@@ -80,7 +80,7 @@ class LiveRoomController extends GetxController {
|
||||
},
|
||||
),
|
||||
autoplay: true,
|
||||
direction: isPortrait.value ? 'vertical' : 'horizontal',
|
||||
isVertical: isPortrait.value,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -143,7 +143,7 @@ class LiveHeaderControl extends StatelessWidget {
|
||||
if ((await floating.isPipAvailable) == true) {
|
||||
plPlayerController.hiddenControls(false);
|
||||
floating.enable(
|
||||
plPlayerController.direction.value == 'vertical'
|
||||
plPlayerController.isVertical
|
||||
? const EnableManual(
|
||||
aspectRatio: Rational.vertical(),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user