I am using chewie player to play a list of videos in pageview.builder. when i scroll my page below it works fine,but when i scroll my page to view top video it shows me this error.How can i re-initialize the videoplayercontroller.
problem is you have to destroy the container that is using the video player and setting .dipose() after its destroyed. So your kill function should be something like this:
void killVidPlayer() {
yourContainer = Container();
setState(() {
});
_controller.dispose();
_controller = null;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With