How to stop video playing in VideoView programmati

2019-01-20 07:30发布

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.

3条回答
成全新的幸福
2楼-- · 2019-01-20 08:08

Try this

 videoView.stopPlayback();
 videoView.resume();
查看更多
贪生不怕死
3楼-- · 2019-01-20 08:19

using this code u can stop videoplayer

videoView.stopPlayback();

For further ref link

查看更多
smile是对你的礼貌
4楼-- · 2019-01-20 08:26

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

if(null!=videoView){ 
videoView.stopPlayback();  
}
查看更多
登录 后发表回答