fix: 退出后重进,双击不能继续播放 issues #68
This commit is contained in:
@ -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();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user