fix: 退出后重进,双击不能继续播放 issues #68
This commit is contained in:
@ -88,8 +88,8 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
|
||||
// 双击播放、暂停
|
||||
void onDoubleTapCenter() {
|
||||
final _ = widget.controller;
|
||||
if (_.playerStatus.status.value == PlayerStatus.playing) {
|
||||
_.togglePlay();
|
||||
if (_.videoPlayerController!.state.playing) {
|
||||
_.pause();
|
||||
} else {
|
||||
_.play();
|
||||
}
|
||||
|
Reference in New Issue
Block a user