mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-03 17:44:56 +08:00
add pip backward/forward btns
Closes #2251 Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
@@ -193,7 +193,13 @@ abstract final class PageUtils {
|
||||
return (min <= aspectRatio) && (aspectRatio <= max);
|
||||
}
|
||||
|
||||
static void enterPip({int? width, int? height, bool autoEnter = false}) {
|
||||
static void enterPip({
|
||||
int? width,
|
||||
int? height,
|
||||
bool autoEnter = false,
|
||||
required bool isLive,
|
||||
required bool isPlaying,
|
||||
}) {
|
||||
if (width != null &&
|
||||
height != null &&
|
||||
!_fitsInAndroidRequirements(width, height)) {
|
||||
@@ -205,7 +211,13 @@ abstract final class PageUtils {
|
||||
height = 9;
|
||||
}
|
||||
}
|
||||
PiliAndroidHelper.enterPip(width ?? 16, height ?? 9, autoEnter);
|
||||
PiliAndroidHelper.enterPip(
|
||||
width ?? 16,
|
||||
height ?? 9,
|
||||
autoEnter: autoEnter,
|
||||
isLive: isLive,
|
||||
isPlaying: isPlaying,
|
||||
);
|
||||
}
|
||||
|
||||
static Future<void> pushDynDetail(
|
||||
|
||||
Reference in New Issue
Block a user