Search code examples
androidcontrolsandroid-videoview

How to stop video playing in VideoView programmatically in android?


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.


Solution

  • using this code u can stop videoplayer

    videoView.stopPlayback();
    

    For further ref link