mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
fix(ios): live room danmaku
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -86,8 +86,10 @@ class _LiveRoomPageState extends State<LiveRoomPage>
|
|||||||
}
|
}
|
||||||
|
|
||||||
void _updateFontSize() async {
|
void _updateFontSize() async {
|
||||||
_isPipMode =
|
if (Platform.isAndroid) {
|
||||||
await const MethodChannel("floating").invokeMethod('inPipAlready');
|
_isPipMode =
|
||||||
|
await const MethodChannel("floating").invokeMethod('inPipAlready');
|
||||||
|
}
|
||||||
if (_liveRoomController.controller != null) {
|
if (_liveRoomController.controller != null) {
|
||||||
_liveRoomController.controller!.updateOption(
|
_liveRoomController.controller!.updateOption(
|
||||||
_liveRoomController.controller!.option.copyWith(
|
_liveRoomController.controller!.option.copyWith(
|
||||||
@@ -98,7 +100,7 @@ class _LiveRoomPageState extends State<LiveRoomPage>
|
|||||||
}
|
}
|
||||||
|
|
||||||
double _getFontSize(isFullScreen) {
|
double _getFontSize(isFullScreen) {
|
||||||
return isFullScreen == false || _isPipMode != false
|
return isFullScreen == false || _isPipMode == true
|
||||||
? 15 * plPlayerController.fontSizeVal
|
? 15 * plPlayerController.fontSizeVal
|
||||||
: 15 * plPlayerController.fontSizeFSVal;
|
: 15 * plPlayerController.fontSizeFSVal;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user