mod: 升级播放器依赖、取消buffer遮罩

This commit is contained in:
guozhigq
2023-09-04 13:11:22 +08:00
parent 4036262bed
commit 977bac84c3
3 changed files with 38 additions and 35 deletions

View File

@ -427,23 +427,23 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
),
),
Obx(() {
if (_.buffered.value == Duration.zero) {
return Positioned.fill(
child: Container(
color: Colors.black,
child: Center(
child: Image.asset(
'assets/images/loading.gif',
height: 25,
),
),
),
);
} else {
return Container();
}
}),
// Obx(() {
// if (_.buffered.value == Duration.zero) {
// return Positioned.fill(
// child: Container(
// color: Colors.black,
// child: Center(
// child: Image.asset(
// 'assets/images/loading.gif',
// height: 25,
// ),
// ),
// ),
// );
// } else {
// return Container();
// }
// }),
/// 弹幕面板
if (widget.danmuWidget != null)