This commit is contained in:
My-Responsitories
2026-01-07 15:01:13 +08:00
parent 678cc919c7
commit a575fc7627
8 changed files with 52 additions and 47 deletions

View File

@@ -497,13 +497,13 @@ class PlPlayerController {
return _instance != null;
}
static void setPlayCallBack(Function? playCallBack) {
static void setPlayCallBack(VoidCallback? playCallBack) {
_playCallBack = playCallBack;
}
static Function? _playCallBack;
static VoidCallback? _playCallBack;
static void playIfExists({bool repeat = false, bool hideControls = true}) {
static void playIfExists() {
// await _instance?.play(repeat: repeat, hideControls: hideControls);
_playCallBack?.call();
}