fix #1641

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-10-26 20:10:40 +08:00
parent e9dc154642
commit 032dfd69be
14 changed files with 64 additions and 115 deletions

View File

@@ -621,6 +621,9 @@ class PlPlayerController {
return _instance!;
}
bool _processing = false;
bool get processing => _processing;
// 初始化资源
Future<void> setDataSource(
DataSource dataSource, {
@@ -649,6 +652,7 @@ class PlPlayerController {
Volume? volume,
}) async {
try {
_processing = true;
this.isLive = isLive;
_videoType = videoType ?? VideoType.ugc;
this.width = width;
@@ -709,6 +713,8 @@ class PlPlayerController {
debugPrint(stackTrace.toString());
debugPrint('plPlayer err: $err');
}
} finally {
_processing = false;
}
}