fix: 退出后重进,双击不能继续播放 issues #68

This commit is contained in:
guozhigq
2023-09-06 23:08:02 +08:00
parent 4c938ed8aa
commit 392980f0e8

View File

@ -88,8 +88,8 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
// 双击播放、暂停 // 双击播放、暂停
void onDoubleTapCenter() { void onDoubleTapCenter() {
final _ = widget.controller; final _ = widget.controller;
if (_.playerStatus.status.value == PlayerStatus.playing) { if (_.videoPlayerController!.state.playing) {
_.togglePlay(); _.pause();
} else { } else {
_.play(); _.play();
} }