custom keyboard control

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-09-18 18:20:23 +08:00
parent 2d625e0241
commit 9c552a89e1
6 changed files with 46 additions and 31 deletions

View File

@@ -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(