mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
fix: 自动全屏方向异常
This commit is contained in:
@@ -35,17 +35,9 @@ class _LiveRoomPageState extends State<LiveRoomPage> {
|
||||
}
|
||||
videoSourceInit();
|
||||
_futureBuilderFuture = _liveRoomController.queryLiveInfo();
|
||||
autoEnterFullscreen();
|
||||
plPlayerController!.autoEnterFullscreen();
|
||||
}
|
||||
|
||||
void autoEnterFullscreen() async {
|
||||
bool autoEnterFullscreen =
|
||||
GStrorage.setting.get(SettingBoxKey.enableAutoEnter, defaultValue: false);
|
||||
if (autoEnterFullscreen) {
|
||||
await Future.delayed(const Duration(milliseconds: 100));
|
||||
plPlayerController!.triggerFullScreen(status: true);
|
||||
}
|
||||
}
|
||||
Future<void> videoSourceInit() async {
|
||||
_futureBuilder = _liveRoomController.queryLiveInfoH5();
|
||||
plPlayerController = _liveRoomController.plPlayerController;
|
||||
|
||||
Reference in New Issue
Block a user