opt: func

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-05-07 13:07:15 +08:00
parent 6353ecc13e
commit 286193f08f
99 changed files with 204 additions and 270 deletions

View File

@@ -395,8 +395,7 @@ class PlPlayerController {
static Function? _playCallBack;
static Future<void> playIfExists(
{bool repeat = false, bool hideControls = true}) async {
static void playIfExists({bool repeat = false, bool hideControls = true}) {
// await _instance?.play(repeat: repeat, hideControls: hideControls);
_playCallBack?.call();
}
@@ -848,7 +847,7 @@ class PlPlayerController {
// 自动播放
if (_autoPlay) {
await playIfExists();
playIfExists();
// await play(duration: duration);
}
}