I tried to start video inside intiState , but didn't work, then I added it inside the build
function and it worked, but now it cant be paused am wondering why :
Below is how I play the video :
@override
Widget build(BuildContext context) {
controller!.play();
....
}
then , when I try to trigger pause, it no longer pause , is it because of the build method, how best can this be achieved so that the state changes.