fix: 视频跳转画面停留、视频继续进度播放

This commit is contained in:
guozhigq
2023-08-12 22:19:52 +08:00
parent 2149bf25cd
commit 17b02d9ae9
2 changed files with 21 additions and 5 deletions

View File

@ -648,6 +648,23 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
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 (_mountSeekBackwardButton || _mountSeekForwardButton)