mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 11:08:03 +08:00
fix #1712
fix #1641 Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -717,8 +717,11 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
|
||||
|
||||
BottomControlType.qa => Obx(
|
||||
() {
|
||||
final VideoQuality currentVideoQa =
|
||||
final VideoQuality? currentVideoQa =
|
||||
videoDetailController.currentVideoQa.value;
|
||||
if (currentVideoQa == null) {
|
||||
return const SizedBox.shrink();
|
||||
}
|
||||
final PlayUrlModel videoInfo = videoDetailController.data;
|
||||
if (videoInfo.dash == null) {
|
||||
return const SizedBox.shrink();
|
||||
|
||||
Reference in New Issue
Block a user