How to stop video playing in VideoView programmati

2019-01-20 07:41发布

问题:

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.

回答1:

using this code u can stop videoplayer

videoView.stopPlayback();

For further ref link



回答2:

First Check your video is available or not then stop this video.It's better for you

if(null!=videoView){ 
videoView.stopPlayback();  
}


回答3:

Try this

 videoView.stopPlayback();
 videoView.resume();