I am using VideoView for playing video,I would like to stop the playing video completely.Please help me on this for solving it.Thanks.
Asked
Active
Viewed 3.1k times
4 Answers
0
First Check your video is available or not then stop this video.It's better for you
if(null!=videoView){ videoView.stopPlayback(); }

Md.Tarikul Islam
- 1,241
- 1
- 14
- 16
0
usually used when onBackPressed method like this
@Override
public void onBackPressed() {
if (videoView!=null)
videoView.stopPlayback();
else
super.onBackPressed();
}

zakaria-alshamere
- 33
- 4