chewie icon indicating copy to clipboard operation
chewie copied to clipboard

BufferingBuilder and pauseOnBackgroundTap seems to have no effect

Open Lazydd opened this issue 5 months ago • 0 comments

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.

_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!,
)

Lazydd avatar Jul 14 '25 15:07 Lazydd