add pip backward/forward btns

Closes #2251

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-06-01 10:04:11 +08:00
parent fb9568a628
commit 9ac37d6fb3
8 changed files with 247 additions and 26 deletions

View File

@@ -73,13 +73,20 @@ abstract final class PiliAndroidHelper {
}
@pragma('vm:prefer-inline')
static void enterPip(int width, int height, bool autoEnter) =>
AndroidHelper.enterPip(
width,
height,
autoEnter,
PlatformDispatcher.instance.engineId!,
);
static void enterPip(
int width,
int height, {
required bool autoEnter,
required bool isLive,
required bool isPlaying,
}) => AndroidHelper.enterPip(
PlatformDispatcher.instance.engineId!,
width,
height,
autoEnter,
isLive,
isPlaying,
);
@pragma('vm:prefer-inline')
static void disableAutoEnterPip() =>