I have written these lines of code:
mVideoView = (VideoView) findViewById(R.id.video_view); mVideoView.setOnClickListener(new OnClickListener() { @O
You can solve this issue through cover layout. I used the linearlayout.
and try it in source file.
video1.setOnClickListener { if(Video.isPlaying) { Video.pause() } else { Video.start() } }