add pip backward/forward btns

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-06-01 10:04:11 +08:00
parent 6661332316
commit 350a52510c
7 changed files with 225 additions and 23 deletions

View File

@@ -189,7 +189,12 @@ abstract final class PageUtils {
return (min <= aspectRatio) && (aspectRatio <= max);
}
static void enterPip({int? width, int? height}) {
static void enterPip({
int? width,
int? height,
required bool isLive,
required bool isPlaying,
}) {
if (width != null &&
height != null &&
!_fitsInAndroidRequirements(width, height)) {
@@ -205,6 +210,8 @@ abstract final class PageUtils {
PlatformDispatcher.instance.engineId!,
width ?? 16,
height ?? 9,
isLive,
isPlaying,
);
}