chewie icon indicating copy to clipboard operation
chewie copied to clipboard

How do I interact with the overlay widget

Open SampatDixit opened this issue 5 years ago • 2 comments

How do I interact with the overlay widget. It does not seem to respond to any click events. Below is my sample code:

Future initVideoPlayer() async { await _controller.initialize(); setState(() { _chewieController = ChewieController( videoPlayerController: _controller,
aspectRatio: _controller.value.aspectRatio,
autoInitialize: true, fullScreenByDefault: true, overlay: overlayWidget(), showControls: true, placeholder: buildPlaceholderImage());
});
}

overlayWidget() { return IconButton( icon: Icon(Icons.edit), color: Colors.yellow, onPressed: () { //this is never called, how I get this working print('icon clicked'); }, ); }

SampatDixit avatar Oct 05 '20 07:10 SampatDixit

@SampatDixit Did you find any solution? I need this too

tigrenok00 avatar Sep 13 '22 06:09 tigrenok00

Same problem. Also tried to add GestureDetector on top of the Player Widget but all my input is ignored as soon as VideoPlayer is playing. Could only trigger it using an IgnorePointer on Videoplayer which is obviously not what I want.

novas1r1 avatar Sep 13 '22 10:09 novas1r1

Any Update regarding to this?

ameer-nevrontv avatar Jan 03 '23 09:01 ameer-nevrontv