mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-09 19:47:57 +08:00
custom keyboard control
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -181,22 +181,23 @@ class _LiveRoomPageState extends State<LiveRoomPage>
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
if (Platform.isAndroid) {
|
||||
if (Floating().isPipMode) {
|
||||
return videoPlayerPanel(
|
||||
isFullScreen,
|
||||
width: maxWidth,
|
||||
height: maxHeight,
|
||||
isPipMode: true,
|
||||
needDm: !plPlayerController.pipNoDanmaku,
|
||||
);
|
||||
}
|
||||
if (Platform.isAndroid && Floating().isPipMode) {
|
||||
return videoPlayerPanel(
|
||||
isFullScreen,
|
||||
width: maxWidth,
|
||||
height: maxHeight,
|
||||
isPipMode: true,
|
||||
needDm: !plPlayerController.pipNoDanmaku,
|
||||
);
|
||||
}
|
||||
return PlayerFocus(
|
||||
plPlayerController: plPlayerController,
|
||||
onSendDanmaku: _liveRoomController.onSendDanmaku,
|
||||
child: childWhenDisabled,
|
||||
);
|
||||
if (plPlayerController.keyboardControl) {
|
||||
return PlayerFocus(
|
||||
plPlayerController: plPlayerController,
|
||||
onSendDanmaku: _liveRoomController.onSendDanmaku,
|
||||
child: childWhenDisabled,
|
||||
);
|
||||
}
|
||||
return childWhenDisabled;
|
||||
}
|
||||
|
||||
Widget videoPlayerPanel(
|
||||
|
||||
Reference in New Issue
Block a user