mod: 升级播放器依赖、取消buffer遮罩
This commit is contained in:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user