fluttercommunity / fluttercommunity/chewie

BufferingBuilder and pauseOnBackgroundTap seems to have no effect

Open
#925 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Dart
Stars
2.1k
Forks
1.1k
Avg merge
6d 8h
Merged PRs (30d)
6

Description

I hope that when showControls is set to false, BufferingBuilder can also be used, but currently it is not available. There is also an issue where there is no response when pauleOnContextTap is set to true, and click anywhere in the video will not pause.

```flutter
_chewieController = ChewieController(
videoPlayerController: _videoPlayerController,
autoInitialize: true,
autoPlay: true,
looping: true,
showControlsOnInitialize: false,
aspectRatio: _videoPlayerController.value.aspectRatio,
// allowMuting: false,
// allowFullScreen: true,
showControls: true,
errorBuilder: (context, errorMessage) {
return const Center(
child: Text("Video Error", style: TextStyle(color: Colors.white)),
);
},
pauseOnBackgroundTap: true,
bufferingBuilder: (BuildContext context) => widget.loading!,
)
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.