fix: 双击播放无声
This commit is contained in:
@ -89,11 +89,7 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
|
|||||||
// 双击播放、暂停
|
// 双击播放、暂停
|
||||||
void onDoubleTapCenter() {
|
void onDoubleTapCenter() {
|
||||||
final PlPlayerController _ = widget.controller;
|
final PlPlayerController _ = widget.controller;
|
||||||
if (_.videoPlayerController!.state.playing) {
|
_.videoPlayerController!.playOrPause();
|
||||||
_.pause();
|
|
||||||
} else {
|
|
||||||
_.play();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void doubleTapFuc(String type) {
|
void doubleTapFuc(String type) {
|
||||||
|
|||||||
Reference in New Issue
Block a user