fix: 双击播放无声

This commit is contained in:
guozhigq
2024-01-09 23:13:49 +08:00
parent 71bb4b30d2
commit 5fa32f1e2b

View File

@ -89,11 +89,7 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
// 双击播放、暂停
void onDoubleTapCenter() {
final PlPlayerController _ = widget.controller;
if (_.videoPlayerController!.state.playing) {
_.pause();
} else {
_.play();
}
_.videoPlayerController!.playOrPause();
}
void doubleTapFuc(String type) {